jqr-helpers 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/jqr-helpers.js +10 -1
- data/doc/JqrHelpers/Generators/InstallGenerator.html +1 -1
- data/doc/JqrHelpers/Generators.html +1 -1
- data/doc/JqrHelpers/Helpers/PanelRenderer.html +1 -1
- data/doc/JqrHelpers/Helpers.html +16 -8
- data/doc/JqrHelpers/Rails.html +2 -2
- data/doc/JqrHelpers/Railtie.html +1 -1
- data/doc/JqrHelpers.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/jqr-helpers.gemspec +1 -1
- data/lib/jqr-helpers/version.rb +1 -1
- metadata +1 -1
@@ -109,7 +109,16 @@
|
|
109
109
|
}
|
110
110
|
|
111
111
|
function ujsAjaxBeforeSend() {
|
112
|
-
|
112
|
+
if ($j(this).is('form')) {
|
113
|
+
var submit = $j('input[type=submit]', this);
|
114
|
+
if (submit.length)
|
115
|
+
showThrobber(submit);
|
116
|
+
else
|
117
|
+
showThrobber(this);
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
showThrobber(this);
|
121
|
+
}
|
113
122
|
var disableElement = $(this);
|
114
123
|
if ($(this).is('form'))
|
115
124
|
disableElement = $('button, input[type=submit]', this).first();
|
@@ -201,7 +201,7 @@
|
|
201
201
|
</div>
|
202
202
|
|
203
203
|
<div id="footer">
|
204
|
-
Generated on
|
204
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
205
205
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
206
206
|
0.8.7.3 (ruby-1.9.3).
|
207
207
|
</div>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
</div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.8.7.3 (ruby-1.9.3).
|
112
112
|
</div>
|
@@ -452,7 +452,7 @@ be passed as is into the HTML <li> tag.</p>
|
|
452
452
|
</div>
|
453
453
|
|
454
454
|
<div id="footer">
|
455
|
-
Generated on
|
455
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
456
456
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
457
457
|
0.8.7.3 (ruby-1.9.3).
|
458
458
|
</div>
|
data/doc/JqrHelpers/Helpers.html
CHANGED
@@ -210,7 +210,7 @@ nicer-looking than the default window.confirm() which is used by Rails.</p>
|
|
210
210
|
<li class="public ">
|
211
211
|
<span class="summary_signature">
|
212
212
|
|
213
|
-
<a href="#date_picker_tag-instance_method" title="#date_picker_tag (instance method)">- (String) <strong>date_picker_tag</strong>(name, value, options = {}, html_options = {}) </a>
|
213
|
+
<a href="#date_picker_tag-instance_method" title="#date_picker_tag (instance method)">- (String) <strong>date_picker_tag</strong>(name, value = Date.today, options = {}, html_options = {}) </a>
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -886,7 +886,7 @@ Done using button_to, so note that a form element will be added.</p>
|
|
886
886
|
<div class="method_details ">
|
887
887
|
<h3 class="signature " id="date_picker_tag-instance_method">
|
888
888
|
|
889
|
-
- (<tt>String</tt>) <strong>date_picker_tag</strong>(name, value, options = {}, html_options = {})
|
889
|
+
- (<tt>String</tt>) <strong>date_picker_tag</strong>(name, value = Date.today, options = {}, html_options = {})
|
890
890
|
|
891
891
|
|
892
892
|
|
@@ -896,9 +896,9 @@ Done using button_to, so note that a form element will be added.</p>
|
|
896
896
|
<div class="discussion">
|
897
897
|
|
898
898
|
<p>Create a date picker field. The attributes given are passed to
|
899
|
-
text_field_tag.
|
900
|
-
|
901
|
-
|
899
|
+
text_field_tag. There is a special option :format - this expects a
|
900
|
+
<b>Ruby</b> style date format. It will format both the initial display of
|
901
|
+
the date and the jQuery date format to be the same.</p>
|
902
902
|
|
903
903
|
|
904
904
|
</div>
|
@@ -931,6 +931,8 @@ passing into the "options" parameter.</p>
|
|
931
931
|
<span class='type'>(<tt>Date</tt>)</span>
|
932
932
|
|
933
933
|
|
934
|
+
<em class="default">(defaults to: <tt>Date.today</tt>)</em>
|
935
|
+
|
934
936
|
|
935
937
|
—
|
936
938
|
<div class='inline'>
|
@@ -1002,12 +1004,18 @@ passing into the "options" parameter.</p>
|
|
1002
1004
|
276
|
1003
1005
|
277
|
1004
1006
|
278
|
1005
|
-
279
|
1007
|
+
279
|
1008
|
+
280
|
1009
|
+
281
|
1010
|
+
282</pre>
|
1006
1011
|
</td>
|
1007
1012
|
<td>
|
1008
1013
|
<pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 274</span>
|
1009
1014
|
|
1010
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_date_picker_tag'>date_picker_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1015
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_date_picker_tag'>date_picker_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>=</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1016
|
+
<span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:format</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%Y-%m-%d</span><span class='tstring_end'>'</span></span>
|
1017
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
|
1018
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:dateFormat</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid__map_date'>_map_date</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
|
1011
1019
|
<span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:data-date-options</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
|
1012
1020
|
<span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1013
1021
|
<span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> ujs-date-picker</span><span class='tstring_end'>'</span></span>
|
@@ -1845,7 +1853,7 @@ URL).</p>
|
|
1845
1853
|
</div>
|
1846
1854
|
|
1847
1855
|
<div id="footer">
|
1848
|
-
Generated on
|
1856
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
1849
1857
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1850
1858
|
0.8.7.3 (ruby-1.9.3).
|
1851
1859
|
</div>
|
data/doc/JqrHelpers/Rails.html
CHANGED
@@ -92,7 +92,7 @@
|
|
92
92
|
<dt id="VERSION-constant" class="">VERSION =
|
93
93
|
|
94
94
|
</dt>
|
95
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.0.
|
95
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.0.6</span><span class='tstring_end'>'</span></span></pre></dd>
|
96
96
|
|
97
97
|
</dl>
|
98
98
|
|
@@ -108,7 +108,7 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
113
|
0.8.7.3 (ruby-1.9.3).
|
114
114
|
</div>
|
data/doc/JqrHelpers/Railtie.html
CHANGED
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.8.7.3 (ruby-1.9.3).
|
120
120
|
</div>
|
data/doc/JqrHelpers.html
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
</div>
|
111
111
|
|
112
112
|
<div id="footer">
|
113
|
-
Generated on
|
113
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
114
114
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
115
115
|
0.8.7.3 (ruby-1.9.3).
|
116
116
|
</div>
|
data/doc/_index.html
CHANGED
@@ -174,7 +174,7 @@
|
|
174
174
|
</div>
|
175
175
|
|
176
176
|
<div id="footer">
|
177
|
-
Generated on
|
177
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
178
178
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
179
179
|
0.8.7.3 (ruby-1.9.3).
|
180
180
|
</div>
|
data/doc/index.html
CHANGED
@@ -174,7 +174,7 @@
|
|
174
174
|
</div>
|
175
175
|
|
176
176
|
<div id="footer">
|
177
|
-
Generated on
|
177
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
178
178
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
179
179
|
0.8.7.3 (ruby-1.9.3).
|
180
180
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Mon Dec 2 10:42:03 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.3 (ruby-1.9.3).
|
109
109
|
</div>
|
data/jqr-helpers.gemspec
CHANGED
data/lib/jqr-helpers/version.rb
CHANGED