scaffold_logic 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.1
1
+ 1.7.2
@@ -30,7 +30,7 @@ module ScaffoldLogic
30
30
  $(tab).toggle();
31
31
  $('show_tab').value = tab
32
32
  }
33
- function sticky_tab() { if (location.hash) { activate_tab(location.hash.gsub('#','')); } }
33
+ function sticky_tab() { if (location.hash) { activate_tab(location.hash.gsub('#','').gsub('-tab','')); } }
34
34
  Event.observe(window, 'load', function() { sticky_tab(); });
35
35
  </script>
36
36
  }.html_safe
@@ -56,8 +56,7 @@ module ScaffoldLogic
56
56
  #
57
57
  def tab_body(args, &proc)
58
58
  concat %{<div id="#{args[:id]}" class="tab_block form_container" style="display: #{args[:display] || 'none'};">}.html_safe
59
- concat %{#{legend_tag(args[:label] || args[:id].titleize, :help => args[:help] )}}.html_safe
60
- concat %{<a name="#{args[:id]}"></a><br />}.html_safe
59
+ concat legend_tag(args[:label] || args[:id].titleize, :help => args[:help], :id => "#{args[:id]}-legend")
61
60
  yield
62
61
  concat %{</div>}.html_safe
63
62
  return ''
@@ -73,7 +72,7 @@ module ScaffoldLogic
73
72
  # <%= tab_tag :id => 'ppc_ads', :label => 'PPC Ads', :state => 'active' %>
74
73
  #
75
74
  def tab_tag(args, *css_class)
76
- %{<li id="show_#{args[:id]}" class="tab_control #{args[:state]}" onclick="activate_tab('#{args[:id]}');"><a href="##{args[:id]}">#{args[:label] || args[:id].to_s.titleize}</a></li>}.html_safe
75
+ %{<li id="show_#{args[:id]}" class="tab_control #{args[:state]}" onclick="activate_tab('#{args[:id]}');"><a href="##{args[:id]}-tab" id="#{args[:id]}-tab">#{args[:label] || args[:id].to_s.titleize}</a></li>}.html_safe
77
76
  end
78
77
 
79
78
  # Create a set of tags for displaying a field label with inline help.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scaffold_logic"
8
- s.version = "1.7.1"
8
+ s.version = "1.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke"]
12
- s.date = "2011-09-22"
12
+ s.date = "2011-09-26"
13
13
  s.description = "Scaffold and UI generator for SEO Logic applications."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 1
10
- version: 1.7.1
9
+ - 2
10
+ version: 1.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Ehmke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-22 00:00:00 Z
18
+ date: 2011-09-26 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Scaffold and UI generator for SEO Logic applications.