scaffold_logic 1.7.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/generators/scaffold_logic/layout/templates/layout.html.erb +2 -2
- data/lib/scaffold_logic.rb +1 -1
- data/lib/scaffold_logic/form_helper.rb +6 -6
- data/lib/scaffold_logic/menu_helper.rb +1 -1
- data/lib/scaffold_logic/tab_interface_helper.rb +1 -1
- data/scaffold_logic.gemspec +3 -3
- metadata +7 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<%- if name == :notice -%>
|
32
32
|
<%= content_tag :div, msg, :id => "flash_#{name}", :class => "flash_#{name}", :style => "display:none;" -%>
|
33
33
|
<script type="text/javascript">
|
34
|
-
$('washout').toggle();
|
35
|
-
$('flash_notice').toggle();
|
34
|
+
$('#washout').toggle();
|
35
|
+
$('#flash_notice').toggle();
|
36
36
|
<%= visual_effect(:fade, 'flash_notice', :duration => 1.0, :delay => 1.0).html_safe -%>
|
37
37
|
<%= visual_effect(:fade, 'washout', :duration => 1.0, :delay => 1.0).html_safe -%>
|
38
38
|
</script>
|
data/lib/scaffold_logic.rb
CHANGED
@@ -55,7 +55,7 @@ include ScaffoldLogic::FormHelper
|
|
55
55
|
#
|
56
56
|
# <fieldset>
|
57
57
|
# <label for="password">Password: <img src="/images/icons/help_icon.png"
|
58
|
-
# onclick="$('password_help').toggle();" class='inline_icon' /></label>
|
58
|
+
# onclick="$('#password_help').toggle();" class='inline_icon' /></label>
|
59
59
|
# <div class="inline_help" id="password_help" style="display: none;">
|
60
60
|
# <p>Here are some detailed instructions on valid passwords.</p>
|
61
61
|
# </div>
|
@@ -12,19 +12,19 @@ module ScaffoldLogic
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def countdown_field(field_id,update_id,max,options = {})
|
15
|
-
function = "$('
|
15
|
+
function = "$('##{update_id}').innerHTML = (#{max} - $('##{field_id}').val().length);"
|
16
16
|
count_field_tag(field_id,function,options)
|
17
17
|
end
|
18
18
|
|
19
19
|
def count_field(field_id,update_id,options = {})
|
20
|
-
function = "$('
|
20
|
+
function = "$('##{update_id}').innerHTML = $('##{field_id}').val().length;"
|
21
21
|
count_field_tag(field_id,function,options)
|
22
22
|
end
|
23
23
|
|
24
24
|
def count_field_tag(field_id,function,options = {})
|
25
25
|
%{
|
26
26
|
<script type="text/javascript">
|
27
|
-
Event.observe($('
|
27
|
+
Event.observe($('##{field_id}'), 'keydown', function (){ #{function} });
|
28
28
|
</script>
|
29
29
|
}.html_safe
|
30
30
|
end
|
@@ -80,7 +80,7 @@ module ScaffoldLogic
|
|
80
80
|
def legend_tag(text, options={})
|
81
81
|
options[:id] ||= "#{text.downcase.gsub(' ', '-')}-legend"
|
82
82
|
if options[:help]
|
83
|
-
_html = %{<div id="#{options[:id]}" class="faux_legend">#{text}<span class="help_icon" onclick="$('
|
83
|
+
_html = %{<div id="#{options[:id]}" class="faux_legend">#{text}<span class="help_icon" onclick="$('##{options[:id]}-help').toggle();">?</span></div>\r}
|
84
84
|
_html << %{<div id="#{options[:id]}-help" class="popup_help" style="display: none;">#{options[:help]}<br /></div>\r}
|
85
85
|
else
|
86
86
|
_html = %{<div id="#{options[:id]}" class="faux_legend">#{text}</div>\r}
|
@@ -100,14 +100,14 @@ module ScaffoldLogic
|
|
100
100
|
#
|
101
101
|
# Yields:
|
102
102
|
#
|
103
|
-
# <label for="rel_frequency">Relative Frequency: <%= image_tag "/images/help_icon.png", :onclick => "$('rel_frequency_help').toggle();", :class => 'inline_icon' %></label>
|
103
|
+
# <label for="rel_frequency">Relative Frequency: <%= image_tag "/images/help_icon.png", :onclick => "$('#rel_frequency_help').toggle();", :class => 'inline_icon' %></label>
|
104
104
|
# <div class="inline_help" id="rel_frequency_help" style="display: none;">
|
105
105
|
# <p>Relative frequency of search traffic for this keyword across multiple search engines, as measured by WordTracker.</p>
|
106
106
|
# </div>
|
107
107
|
def tag_for_label_with_inline_help( label_text, field_id, help_text )
|
108
108
|
_html = ""
|
109
109
|
_html << %{<label for="#{field_id}">#{label_text}}
|
110
|
-
_html << %{<img alt="Help Icon" class="inline_icon" src="/images/icons/help_icon.png" width="14" height="12" onclick="$('
|
110
|
+
_html << %{<img alt="Help Icon" class="inline_icon" src="/images/icons/help_icon.png" width="14" height="12" onclick="$('##{field_id}_help').toggle();" />}
|
111
111
|
_html << %{</label>}
|
112
112
|
_html << %{<div class="inline_help" id="#{field_id}_help" style="display: none;">}
|
113
113
|
_html << %{<p>#{help_text}</p>}
|
@@ -17,7 +17,7 @@ module ScaffoldLogic
|
|
17
17
|
<h2><a href="#{args[:url]}" title="#{args[:heading]}">#{args[:heading]}</a></h2>
|
18
18
|
#{args[:description]}
|
19
19
|
<script type="text/javascript">
|
20
|
-
Event.observe($('
|
20
|
+
Event.observe($('##{_id}'), 'click', function (){ window.location = '#{args[:url]}'; });
|
21
21
|
</script>
|
22
22
|
</div>
|
23
23
|
}.html_safe
|
@@ -92,7 +92,7 @@ module ScaffoldLogic
|
|
92
92
|
def tag_for_label_with_inline_help( label_text, field_id, help_text )
|
93
93
|
_html = ""
|
94
94
|
_html << %{<label for="#{field_id}">#{label_text}}
|
95
|
-
_html << %{<img src="/images/icons/help_icon.png" onclick="$('
|
95
|
+
_html << %{<img src="/images/icons/help_icon.png" onclick="$('##{field_id}_help').toggle();" class='inline_icon' />}
|
96
96
|
_html << %{</label><br />}
|
97
97
|
_html << %{<div class="inline_help" id="#{field_id}_help" style="display: none;">}
|
98
98
|
_html << %{<p>#{help_text}</p>}
|
data/scaffold_logic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "scaffold_logic"
|
8
|
-
s.version = "
|
8
|
+
s.version = "2.0.0"
|
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 = "
|
12
|
+
s.date = "2012-03-13"
|
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 = [
|
@@ -133,7 +133,7 @@ Gem::Specification.new do |s|
|
|
133
133
|
]
|
134
134
|
s.homepage = "http://github.com/ivanoblomov/scaffold_logic"
|
135
135
|
s.require_paths = ["lib"]
|
136
|
-
s.rubygems_version = "1.8.
|
136
|
+
s.rubygems_version = "1.8.10"
|
137
137
|
s.summary = "Scaffold and UI generator for SEO Logic applications."
|
138
138
|
|
139
139
|
if s.respond_to? :specification_version then
|
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:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 2.0.0
|
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:
|
18
|
+
date: 2012-03-13 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Scaffold and UI generator for SEO Logic applications.
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
requirements: []
|
171
171
|
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.
|
173
|
+
rubygems_version: 1.8.10
|
174
174
|
signing_key:
|
175
175
|
specification_version: 3
|
176
176
|
summary: Scaffold and UI generator for SEO Logic applications.
|