jqr-helpers 1.0.41 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDg3YTU0MDE3OGNkNTUyNTllN2IwYmYyNGI5NmZmMjY2NDE5ZDE5Nw==
4
+ M2E1NDcxZGQ0ZDUyNTYwYmRkNWY2YmFjOTI4ZmUyOTIzYzIxZTQ1OA==
5
5
  data.tar.gz: !binary |-
6
- NzY2OWUxNWJmYjY1MzAyNzU0ZjA2NTRkMGZmZmE0ZjY3MzNkOGYyZg==
6
+ NjdlMWI3MmViNDE4OWFjYmZiZDZjY2JkNjUxYTA4NjJhYWQ5MTYyZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjgzZDljNjI5OTBiNWEzMmZhZGYxN2M4NjE5ZGEwNmZkMTZlM2FjYjNlOTAz
10
- YTQyNDVmOTEyM2M2N2RhODM5NzI3MDc0MTE4NDg1YzAxN2Y3NGJkZmZlNWNj
11
- ZjVmZTcyNDEzNzhjYTlmYzQ2ZWIzMzUzOTk3NjNlZjYyNDVmNmM=
9
+ NzQzYzFmMWI0M2E4ZjU5M2Q1ZDc3YWY4MjE5MGM0OTFlYTFjZWQwNWFjNDVh
10
+ YTA1Yzg0ODM5ZmIyYzVjYWY2MWJhYjk2MGEyZDZhMWNiZmFmOGY0MjFhNzZh
11
+ MDUxYjBmMzc2Njc4MzYwMDRmZjQyNmI3NjA3MDkyNGQ0MzJmNmY=
12
12
  data.tar.gz: !binary |-
13
- MWMyNTUzZWQ4ZTA0MTVkZjEyMDY4NDBkNGVmZGQ5Njg4YjRkNzBiOGY4NjFh
14
- ZWIwNThhNzJiYjRmNWNlY2MxNmNjYTAxNDEyYjFjOGU3NjFhNWUxZDRkNWYx
15
- MDc2ZTU3ODgxZWNlYzNhNTgwMjcyMWExYmVhN2MyMWY3NjdlNzg=
13
+ MGRjOTM0ZTcwNTVkMjJkZWE5YjQzZTc5ZmQzM2Q1ZGUzNDlmZTZmMGE2NDYz
14
+ NjYwMjRiMjY1ZDIwMjJlMDQ4N2VlZjc4N2MzYzFiYjA4ZDJkODMyZDgwOTFh
15
+ MTg5ZTc3YzMzMjRlNjQ0MWQ4NjdlY2MzOTBiN2NlNWZlZDEyODY=
data/Readme.md CHANGED
@@ -32,9 +32,6 @@ into your public folders:
32
32
 
33
33
  rails g jqr_helpers:install
34
34
 
35
- Note that after copying, you will need to change the stylesheets from using
36
- `assets/*` to using `/images/*` to reflect the old way of routing static images.
37
-
38
35
  ## Helper Methods ##
39
36
 
40
37
  Full documentation can be found [here](https://rawgithub.com/wishabi/jqr-helpers/master/doc/JqrHelpers/Helpers.html).
@@ -0,0 +1,40 @@
1
+ .ujs-dialog-modal {
2
+ position: fixed !important;
3
+ }
4
+
5
+ .ujs-dialog-x {
6
+ position: absolute;
7
+ top: -14px;
8
+ right: -13px;
9
+ cursor: pointer;
10
+ background-image: url('/images/jqr-helpers/close.png');
11
+ width: 30px;
12
+ height: 30px;
13
+ }
14
+
15
+ .ui-dialog.no-title .ui-dialog-titlebar {
16
+ display: none;
17
+ }
18
+
19
+ .ujs-dialog-hidden {
20
+ display: none;
21
+ }
22
+
23
+ form.ujs-ajax {
24
+ display: inline;
25
+ }
26
+
27
+ #ujs-dialog-throbber {
28
+ background-image: url('/images/jqr-helpers/throbber_large.gif');
29
+ position: fixed;
30
+ top: 48%;
31
+ left: 48%;
32
+ z-index: 200;
33
+ width: 48px;
34
+ height: 48px;
35
+ }
36
+
37
+ .ujs-dialog-title-hidden {
38
+ display: none;
39
+ }
40
+
@@ -163,7 +163,6 @@
163
163
  <pre class="lines">
164
164
 
165
165
 
166
- 11
167
166
  12
168
167
  13
169
168
  14
@@ -174,10 +173,11 @@
174
173
  19
175
174
  20
176
175
  21
177
- 22</pre>
176
+ 22
177
+ 23</pre>
178
178
  </td>
179
179
  <td>
180
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/install_generator.rb', line 11</span>
180
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/install_generator.rb', line 12</span>
181
181
 
182
182
  <span class='kw'>def</span> <span class='id identifier rubyid_copy_files'>copy_files</span>
183
183
  <span class='id identifier rubyid_log'>log</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Copying files...</span><span class='tstring_end'>'</span></span>
@@ -201,7 +201,7 @@
201
201
  </div>
202
202
 
203
203
  <div id="footer">
204
- Generated on Sun Feb 2 15:17:54 2014 by
204
+ Generated on Fri May 16 14:31:13 2014 by
205
205
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
206
206
  0.8.5.2 (ruby-1.9.3).
207
207
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sun Feb 2 15:17:54 2014 by
109
+ Generated on Fri May 16 14:31:13 2014 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.5.2 (ruby-1.9.3).
112
112
  </div>
@@ -114,6 +114,36 @@
114
114
 
115
115
 
116
116
 
117
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#panels-instance_method" title="#panels (instance method)">- (Array&lt;Hash&gt;) <strong>panels</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <span class="summary_desc"><div class='inline'></div></span>
141
+
142
+ </li>
143
+
144
+
145
+ </ul>
146
+
117
147
 
118
148
 
119
149
 
@@ -224,6 +254,65 @@
224
254
 
225
255
  </div>
226
256
 
257
+ <div id="instance_attr_details" class="attr_details">
258
+ <h2>Instance Attribute Details</h2>
259
+
260
+
261
+ <span id="panels=-instance_method"></span>
262
+ <div class="method_details first">
263
+ <h3 class="signature first" id="panels-instance_method">
264
+
265
+ - (<tt>Array&lt;Hash&gt;</tt>) <strong>panels</strong>
266
+
267
+
268
+
269
+
270
+
271
+ </h3><div class="docstring">
272
+ <div class="discussion">
273
+
274
+
275
+ </div>
276
+ </div>
277
+ <div class="tags">
278
+
279
+ <p class="tag_title">Returns:</p>
280
+ <ul class="return">
281
+
282
+ <li>
283
+
284
+
285
+ <span class='type'>(<tt>Array&lt;Hash&gt;</tt>)</span>
286
+
287
+
288
+
289
+ </li>
290
+
291
+ </ul>
292
+
293
+ </div><table class="source_code">
294
+ <tr>
295
+ <td>
296
+ <pre class="lines">
297
+
298
+
299
+ 11
300
+ 12
301
+ 13</pre>
302
+ </td>
303
+ <td>
304
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 11</span>
305
+
306
+ <span class='kw'>def</span> <span class='id identifier rubyid_panels'>panels</span>
307
+ <span class='ivar'>@panels</span>
308
+ <span class='kw'>end</span></pre>
309
+ </td>
310
+ </tr>
311
+ </table>
312
+ </div>
313
+
314
+ </div>
315
+
227
316
 
228
317
  <div id="instance_method_details" class="method_details_list">
229
318
  <h2>Instance Method Details</h2>
@@ -336,11 +425,11 @@ be passed as is into the HTML &lt;li&gt; tag.</p>
336
425
  <span class='kw'>def</span> <span class='id identifier rubyid_panel'>panel</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span> <span class='id identifier rubyid_url_or_options'>url_or_options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</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='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
337
426
  <span class='kw'>if</span> <span class='id identifier rubyid_url_or_options'>url_or_options</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
338
427
  <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='id identifier rubyid_url_or_options'>url_or_options</span>
339
- <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
428
+ <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='kw'>nil</span>
340
429
  <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span>
341
430
  <span class='kw'>else</span>
342
431
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_url_or_options'>url_or_options</span>
343
- <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='kw'>yield</span>
432
+ <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
344
433
  <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='const'>Helpers</span><span class='period'>.</span><span class='id identifier rubyid__random_string'>_random_string</span>
345
434
  <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='id identifier rubyid_id'>id</span>
346
435
  <span class='kw'>end</span>
@@ -363,7 +452,7 @@ be passed as is into the HTML &lt;li&gt; tag.</p>
363
452
  </div>
364
453
 
365
454
  <div id="footer">
366
- Generated on Sun Feb 2 15:18:54 2014 by
455
+ Generated on Fri May 16 14:31:13 2014 by
367
456
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
368
457
  0.8.5.2 (ruby-1.9.3).
369
458
  </div>
@@ -102,6 +102,39 @@
102
102
 
103
103
 
104
104
 
105
+ <h2>
106
+ Class Method Summary
107
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
108
+ </h2>
109
+
110
+ <ul class="summary">
111
+
112
+ <li class="public ">
113
+ <span class="summary_signature">
114
+
115
+ <a href="#_random_string-class_method" title="_random_string (class method)">+ (String) <strong>_random_string</strong> </a>
116
+
117
+
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <span class="summary_desc"><div class='inline'>
130
+ <p>Generate a random string for IDs.</p>
131
+ </div></span>
132
+
133
+ </li>
134
+
135
+
136
+ </ul>
137
+
105
138
  <h2>
106
139
  Instance Method Summary
107
140
  <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
@@ -112,6 +145,30 @@
112
145
  <li class="public ">
113
146
  <span class="summary_signature">
114
147
 
148
+ <a href="#ajax_change-instance_method" title="#ajax_change (instance method)">- (String) <strong>ajax_change</strong>(url, options = {}, &amp;block) </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <span class="summary_desc"><div class='inline'>
163
+ <p>Observe a field for changes.</p>
164
+ </div></span>
165
+
166
+ </li>
167
+
168
+
169
+ <li class="public ">
170
+ <span class="summary_signature">
171
+
115
172
  <a href="#button_to_ajax-instance_method" title="#button_to_ajax (instance method)">- (String) <strong>button_to_ajax</strong>(body, url, options = {}) </a>
116
173
 
117
174
 
@@ -504,12 +561,171 @@ specifically for radio buttons.</p>
504
561
 
505
562
 
506
563
 
564
+ <div id="class_method_details" class="method_details_list">
565
+ <h2>Class Method Details</h2>
566
+
567
+
568
+ <div class="method_details first">
569
+ <h3 class="signature first" id="_random_string-class_method">
570
+
571
+ + (<tt>String</tt>) <strong>_random_string</strong>
572
+
573
+
574
+
575
+
576
+
577
+ </h3><div class="docstring">
578
+ <div class="discussion">
579
+
580
+ <p>Generate a random string for IDs.</p>
581
+
582
+
583
+ </div>
584
+ </div>
585
+ <div class="tags">
586
+
587
+ <p class="tag_title">Returns:</p>
588
+ <ul class="return">
589
+
590
+ <li>
591
+
592
+
593
+ <span class='type'>(<tt>String</tt>)</span>
594
+
595
+
596
+
597
+ </li>
598
+
599
+ </ul>
600
+
601
+ </div><table class="source_code">
602
+ <tr>
603
+ <td>
604
+ <pre class="lines">
605
+
606
+
607
+ 403
608
+ 404
609
+ 405</pre>
610
+ </td>
611
+ <td>
612
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 403</span>
613
+
614
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__random_string'>_random_string</span>
615
+ <span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_hex'>hex</span><span class='lparen'>(</span><span class='int'>16</span><span class='rparen'>)</span>
616
+ <span class='kw'>end</span></pre>
617
+ </td>
618
+ </tr>
619
+ </table>
620
+ </div>
621
+
622
+ </div>
623
+
507
624
  <div id="instance_method_details" class="method_details_list">
508
625
  <h2>Instance Method Details</h2>
509
626
 
510
627
 
511
628
  <div class="method_details first">
512
- <h3 class="signature first" id="button_to_ajax-instance_method">
629
+ <h3 class="signature first" id="ajax_change-instance_method">
630
+
631
+ - (<tt>String</tt>) <strong>ajax_change</strong>(url, options = {}, &amp;block)
632
+
633
+
634
+
635
+
636
+
637
+ </h3><div class="docstring">
638
+ <div class="discussion">
639
+
640
+ <p>Observe a field for changes. On change, post to the Ajax URL and calculate
641
+ callbacks.</p>
642
+
643
+
644
+ </div>
645
+ </div>
646
+ <div class="tags">
647
+ <p class="tag_title">Parameters:</p>
648
+ <ul class="param">
649
+
650
+ <li>
651
+
652
+ <span class='name'>url</span>
653
+
654
+
655
+ <span class='type'>(<tt>String</tt>)</span>
656
+
657
+
658
+
659
+ &mdash;
660
+ <div class='inline'>
661
+ <p>the URL to send to.</p>
662
+ </div>
663
+
664
+ </li>
665
+
666
+ <li>
667
+
668
+ <span class='name'>options</span>
669
+
670
+
671
+ <span class='type'>(<tt>Hash</tt>)</span>
672
+
673
+
674
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
675
+
676
+
677
+ &mdash;
678
+ <div class='inline'>
679
+ <p>Ajax options - see above.</p>
680
+ </div>
681
+
682
+ </li>
683
+
684
+ </ul>
685
+
686
+ <p class="tag_title">Returns:</p>
687
+ <ul class="return">
688
+
689
+ <li>
690
+
691
+
692
+ <span class='type'>(<tt>String</tt>)</span>
693
+
694
+
695
+
696
+ </li>
697
+
698
+ </ul>
699
+
700
+ </div><table class="source_code">
701
+ <tr>
702
+ <td>
703
+ <pre class="lines">
704
+
705
+
706
+ 393
707
+ 394
708
+ 395
709
+ 396
710
+ 397
711
+ 398</pre>
712
+ </td>
713
+ <td>
714
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 393</span>
715
+
716
+ <span class='kw'>def</span> <span class='id identifier rubyid_ajax_change'>ajax_change</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</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='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
717
+ <span class='id identifier rubyid_options'>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-ajax-change</span><span class='tstring_end'>'</span></span>
718
+ <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid__process_ajax_options'>_process_ajax_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
719
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data-url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
720
+ <span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:span</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
721
+ <span class='kw'>end</span></pre>
722
+ </td>
723
+ </tr>
724
+ </table>
725
+ </div>
726
+
727
+ <div class="method_details ">
728
+ <h3 class="signature " id="button_to_ajax-instance_method">
513
729
 
514
730
  - (<tt>String</tt>) <strong>button_to_ajax</strong>(body, url, options = {})
515
731
 
@@ -615,7 +831,8 @@ button_to, so it can be used inside forms.</p>
615
831
  205
616
832
  206
617
833
  207
618
- 208</pre>
834
+ 208
835
+ 209</pre>
619
836
  </td>
620
837
  <td>
621
838
  <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 195</span>
@@ -624,8 +841,9 @@ button_to, so it can be used inside forms.</p>
624
841
 
625
842
  <span class='comment'># Specifically do not add data-remote
626
843
  </span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data-method</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_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:method</span><span class='rparen'>)</span>
627
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
628
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> ujs-ajax-button</span><span class='tstring_end'>'</span></span>
844
+ <span class='id identifier rubyid_options'>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>
845
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> ujs-ajax-button</span><span class='tstring_end'>'</span></span>
846
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span>
629
847
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data-url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
630
848
  <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:confirm</span><span class='rparen'>)</span>
631
849
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data-confirm</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_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:confirm</span><span class='rparen'>)</span>
@@ -762,7 +980,7 @@ button_to, so it can be used inside forms.</p>
762
980
  <span class='kw'>def</span> <span class='id identifier rubyid_button_to_dialog'>button_to_dialog</span><span class='lparen'>(</span><span class='id identifier rubyid_dialog_id'>dialog_id</span><span class='comma'>,</span> <span class='id identifier rubyid_html_content'>html_content</span><span class='comma'>,</span> <span class='id identifier rubyid_dialog_options'>dialog_options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span>
763
981
  <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>
764
982
  <span class='id identifier rubyid_link_to_dialog'>link_to_dialog</span><span class='lparen'>(</span><span class='id identifier rubyid_dialog_id'>dialog_id</span><span class='comma'>,</span> <span class='id identifier rubyid_html_content'>html_content</span><span class='comma'>,</span> <span class='id identifier rubyid_dialog_options'>dialog_options</span><span class='comma'>,</span>
765
- <span class='id identifier rubyid_html_options'>html_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:tag_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
983
+ <span class='id identifier rubyid_html_options'>html_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:tag_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:type</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
766
984
  <span class='kw'>end</span></pre>
767
985
  </td>
768
986
  </tr>
@@ -784,7 +1002,8 @@ button_to, so it can be used inside forms.</p>
784
1002
  <p>This is identical to the built-in Rails button_to() in every way except
785
1003
  that it will work inside an existing form. Instead, it appends a form to
786
1004
  the body, and uses a click handler to submit it. This does not support the
787
- :remote option - instead, use <span class='object_link'><a href="#button_to_ajax-instance_method" title="JqrHelpers::Helpers#button_to_ajax (method)">#button_to_ajax</a></span>.</p>
1005
+ :remote option - instead, use <span class='object_link'><a href="#button_to_ajax-instance_method" title="JqrHelpers::Helpers#button_to_ajax (method)">#button_to_ajax</a></span>. This supports the :target
1006
+ option to pass to the form.</p>
788
1007
 
789
1008
 
790
1009
  </div>
@@ -852,6 +1071,9 @@ the body, and uses a click handler to submit it. This does not support the
852
1071
  <pre class="lines">
853
1072
 
854
1073
 
1074
+ 359
1075
+ 360
1076
+ 361
855
1077
  362
856
1078
  363
857
1079
  364
@@ -876,11 +1098,10 @@ the body, and uses a click handler to submit it. This does not support the
876
1098
  383
877
1099
  384
878
1100
  385
879
- 386
880
- 387</pre>
1101
+ 386</pre>
881
1102
  </td>
882
1103
  <td>
883
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 362</span>
1104
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 359</span>
884
1105
 
885
1106
  <span class='kw'>def</span> <span class='id identifier rubyid_button_to_external'>button_to_external</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</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='rparen'>)</span>
886
1107
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:disabled</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>disabled</span><span class='tstring_end'>'</span></span> <span class='kw'>if</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'>:disabled</span><span class='rparen'>)</span>
@@ -895,10 +1116,12 @@ the body, and uses a click handler to submit it. This does not support the
895
1116
  <span class='kw'>end</span>
896
1117
  <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
897
1118
 
1119
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span>
898
1120
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data-confirm</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_confirm'>confirm</span> <span class='kw'>if</span> <span class='id identifier rubyid_confirm'>confirm</span>
899
1121
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data-disable-with</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_disable_with'>disable_with</span> <span class='kw'>if</span> <span class='id identifier rubyid_disable_with'>disable_with</span>
900
1122
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data-method</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span> <span class='kw'>if</span> <span class='id identifier rubyid_method'>method</span>
901
1123
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>data-url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
1124
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:data-target</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_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:target</span><span class='rparen'>)</span>
902
1125
  <span class='id identifier rubyid_options'>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>
903
1126
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> ujs-external-button</span><span class='tstring_end'>'</span></span>
904
1127
  <span class='kw'>if</span> <span class='id identifier rubyid_token_name'>token_name</span>
@@ -1037,7 +1260,7 @@ using content already on the page.</p>
1037
1260
  <span class='kw'>def</span> <span class='id identifier rubyid_button_to_remote_dialog'>button_to_remote_dialog</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_html_content'>html_content</span><span class='comma'>,</span> <span class='id identifier rubyid_dialog_options'>dialog_options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span>
1038
1261
  <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>
1039
1262
  <span class='id identifier rubyid_link_to_remote_dialog'>link_to_remote_dialog</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_html_content'>html_content</span><span class='comma'>,</span> <span class='id identifier rubyid_dialog_options'>dialog_options</span><span class='comma'>,</span>
1040
- <span class='id identifier rubyid_html_options'>html_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:tag_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
1263
+ <span class='id identifier rubyid_html_options'>html_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:tag_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:type</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>button</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
1041
1264
  <span class='kw'>end</span></pre>
1042
1265
  </td>
1043
1266
  </tr>
@@ -1143,7 +1366,6 @@ then be passed into jQuery's buttonset() method.</p>
1143
1366
  <pre class="lines">
1144
1367
 
1145
1368
 
1146
- 308
1147
1369
  309
1148
1370
  310
1149
1371
  311
@@ -1151,10 +1373,11 @@ then be passed into jQuery's buttonset() method.</p>
1151
1373
  313
1152
1374
  314
1153
1375
  315
1154
- 316</pre>
1376
+ 316
1377
+ 317</pre>
1155
1378
  </td>
1156
1379
  <td>
1157
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 308</span>
1380
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 309</span>
1158
1381
 
1159
1382
  <span class='kw'>def</span> <span class='id identifier rubyid_buttonset'>buttonset</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_selected'>selected</span><span class='op'>=</span><span class='kw'>nil</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>
1160
1383
  <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>
@@ -1405,7 +1628,6 @@ the date and the jQuery date format to be the same.</p>
1405
1628
  <pre class="lines">
1406
1629
 
1407
1630
 
1408
- 291
1409
1631
  292
1410
1632
  293
1411
1633
  294
@@ -1413,14 +1635,15 @@ the date and the jQuery date format to be the same.</p>
1413
1635
  296
1414
1636
  297
1415
1637
  298
1416
- 299</pre>
1638
+ 299
1639
+ 300</pre>
1417
1640
  </td>
1418
1641
  <td>
1419
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 291</span>
1642
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 292</span>
1420
1643
 
1421
1644
  <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>
1422
1645
  <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>
1423
- <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>
1646
+ <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> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
1424
1647
  <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>
1425
1648
  <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>
1426
1649
  <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>
@@ -1542,7 +1765,6 @@ form_for instead of form_tag.</p>
1542
1765
  <pre class="lines">
1543
1766
 
1544
1767
 
1545
- 231
1546
1768
  232
1547
1769
  233
1548
1770
  234
@@ -1552,10 +1774,11 @@ form_for instead of form_tag.</p>
1552
1774
  238
1553
1775
  239
1554
1776
  240
1555
- 241</pre>
1777
+ 241
1778
+ 242</pre>
1556
1779
  </td>
1557
1780
  <td>
1558
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 231</span>
1781
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 232</span>
1559
1782
 
1560
1783
  <span class='kw'>def</span> <span class='id identifier rubyid_form_for_ajax'>form_for_ajax</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</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='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1561
1784
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:remote</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -1651,7 +1874,6 @@ form_tag with :remote =&gt; true.</p>
1651
1874
  <pre class="lines">
1652
1875
 
1653
1876
 
1654
- 215
1655
1877
  216
1656
1878
  217
1657
1879
  218
@@ -1660,10 +1882,11 @@ form_tag with :remote =&gt; true.</p>
1660
1882
  221
1661
1883
  222
1662
1884
  223
1663
- 224</pre>
1885
+ 224
1886
+ 225</pre>
1664
1887
  </td>
1665
1888
  <td>
1666
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 215</span>
1889
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 216</span>
1667
1890
 
1668
1891
  <span class='kw'>def</span> <span class='id identifier rubyid_form_tag_ajax'>form_tag_ajax</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</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='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1669
1892
 
@@ -2266,7 +2489,6 @@ such as allowing disabling.</p>
2266
2489
  <pre class="lines">
2267
2490
 
2268
2491
 
2269
- 328
2270
2492
  329
2271
2493
  330
2272
2494
  331
@@ -2287,22 +2509,13 @@ such as allowing disabling.</p>
2287
2509
  346
2288
2510
  347
2289
2511
  348
2290
- 349
2291
- 350
2292
- 351
2293
- 352
2294
- 353</pre>
2512
+ 349</pre>
2295
2513
  </td>
2296
2514
  <td>
2297
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 328</span>
2515
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 329</span>
2298
2516
 
2299
2517
  <span class='kw'>def</span> <span class='id identifier rubyid_quick_radio_set'>quick_radio_set</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_selected'>selected</span><span class='op'>=</span><span class='kw'>nil</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>
2300
- <span class='comment'># @param name [String] the name of the form element.
2301
- </span><span class='comment'># @param values [Hash&lt;String, String&gt;] a hash of value =&gt; label.
2302
- </span><span class='comment'># @param selected [String] the selected value, if any.
2303
- </span><span class='comment'># @param html_options [Hash] a set of options that will be passed into
2304
- </span><span class='comment'># the parent div tag.
2305
- </span> <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>
2518
+ <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>
2306
2519
  <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'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> ujs-quick-buttonset ui-buttonset</span><span class='tstring_end'>'</span></span>
2307
2520
  <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
2308
2521
  <span class='id identifier rubyid_last_key'>last_key</span> <span class='op'>=</span> <span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>-</span> <span class='int'>1</span>
@@ -2353,10 +2566,10 @@ URL).</p>
2353
2566
 
2354
2567
 
2355
2568
  <pre class="example code"><code>&lt;%= tab_container {:collapsible =&gt; true}, {:class =&gt; 'my-tabs}' do |r| %&gt;
2356
- &lt;%= r.panel 'Tab 1', do %&gt;
2569
+ &lt;% r.panel 'Tab 1' do %&gt;
2357
2570
  My tab content here
2358
2571
  &lt;% end %&gt;
2359
- &lt;%= r.panel 'Tab 2', 'http://www.foobar.com/' %&gt;
2572
+ &lt;% r.panel 'Tab 2', 'http://www.foobar.com/' %&gt;
2360
2573
  &lt;% end %&gt;</code></pre>
2361
2574
 
2362
2575
  </div>
@@ -2408,7 +2621,6 @@ URL).</p>
2408
2621
  <pre class="lines">
2409
2622
 
2410
2623
 
2411
- 256
2412
2624
  257
2413
2625
  258
2414
2626
  259
@@ -2432,10 +2644,11 @@ URL).</p>
2432
2644
  277
2433
2645
  278
2434
2646
  279
2435
- 280</pre>
2647
+ 280
2648
+ 281</pre>
2436
2649
  </td>
2437
2650
  <td>
2438
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 256</span>
2651
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 257</span>
2439
2652
 
2440
2653
  <span class='kw'>def</span> <span class='id identifier rubyid_tab_container'>tab_container</span><span class='lparen'>(</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='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2441
2654
  <span class='id identifier rubyid_renderer'>renderer</span> <span class='op'>=</span> <span class='const'>PanelRenderer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
@@ -2455,7 +2668,7 @@ URL).</p>
2455
2668
  <span class='kw'>end</span>
2456
2669
  <span class='id identifier rubyid_s3'>s3</span> <span class='op'>=</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_panels'>panels</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_sum'>sum</span><span class='comma'>,</span> <span class='id identifier rubyid_panel'>panel</span><span class='op'>|</span>
2457
2670
  <span class='kw'>if</span> <span class='id identifier rubyid_panel'>panel</span><span class='lbracket'>[</span><span class='symbol'>:options</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span>
2458
- <span class='id identifier rubyid_sum'>sum</span> <span class='op'>=</span> <span class='id identifier rubyid_sum'>sum</span> <span class='op'>+</span> <span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:div</span><span class='comma'>,</span> <span class='id identifier rubyid_panel'>panel</span><span class='lbracket'>[</span><span class='symbol'>:content</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_panel'>panel</span><span class='lbracket'>[</span><span class='symbol'>:options</span><span class='rbracket'>]</span><span class='rparen'>)</span>
2671
+ <span class='id identifier rubyid_sum'>sum</span> <span class='op'>=</span> <span class='id identifier rubyid_sum'>sum</span> <span class='op'>+</span> <span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:div</span><span class='comma'>,</span> <span class='id identifier rubyid_panel'>panel</span><span class='lbracket'>[</span><span class='symbol'>:options</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_panel'>panel</span><span class='lbracket'>[</span><span class='symbol'>:content</span><span class='rbracket'>]</span><span class='rparen'>)</span>
2459
2672
  <span class='kw'>end</span>
2460
2673
  <span class='id identifier rubyid_sum'>sum</span>
2461
2674
  <span class='kw'>end</span>
@@ -2563,23 +2776,23 @@ selector.</p>
2563
2776
  <pre class="lines">
2564
2777
 
2565
2778
 
2566
- 464
2567
- 465
2568
- 466
2569
- 467
2570
- 468
2571
- 469
2572
- 470
2573
- 471
2574
- 472
2575
- 473
2576
- 474
2577
2779
  475
2578
2780
  476
2579
- 477</pre>
2781
+ 477
2782
+ 478
2783
+ 479
2784
+ 480
2785
+ 481
2786
+ 482
2787
+ 483
2788
+ 484
2789
+ 485
2790
+ 486
2791
+ 487
2792
+ 488</pre>
2580
2793
  </td>
2581
2794
  <td>
2582
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 464</span>
2795
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 475</span>
2583
2796
 
2584
2797
  <span class='kw'>def</span> <span class='id identifier rubyid_will_paginate_ajax'>will_paginate_ajax</span><span class='lparen'>(</span><span class='id identifier rubyid_collection'>collection</span><span class='comma'>,</span> <span class='id identifier rubyid_to_update'>to_update</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='rparen'>)</span>
2585
2798
  <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>AjaxLinkRenderer</span><span class='rparen'>)</span>
@@ -2605,7 +2818,7 @@ selector.</p>
2605
2818
  </div>
2606
2819
 
2607
2820
  <div id="footer">
2608
- Generated on Sun Feb 2 15:18:54 2014 by
2821
+ Generated on Fri May 16 14:31:13 2014 by
2609
2822
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2610
2823
  0.8.5.2 (ruby-1.9.3).
2611
2824
  </div>
@@ -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.29</span><span class='tstring_end'>'</span></span></pre></dd>
95
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.0.41</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 Sun Feb 2 15:18:39 2014 by
111
+ Generated on Fri May 16 14:31:13 2014 by
112
112
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
113
  0.8.5.2 (ruby-1.9.3).
114
114
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Feb 2 15:18:18 2014 by
117
+ Generated on Fri May 16 14:31:13 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.8.5.2 (ruby-1.9.3).
120
120
  </div>
data/doc/JqrHelpers.html CHANGED
@@ -79,8 +79,8 @@
79
79
 
80
80
 
81
81
  <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/jqr-helpers/railtie.rb<span class="defines">,<br />
83
- lib/jqr-helpers/helpers.rb,<br /> lib/jqr-helpers/version.rb,<br /> lib/jqr-helpers/install_generator.rb</span>
82
+ <dd class="r1 last">lib/jqr-helpers/engine.rb<span class="defines">,<br />
83
+ lib/jqr-helpers/railtie.rb,<br /> lib/jqr-helpers/helpers.rb,<br /> lib/jqr-helpers/version.rb,<br /> lib/jqr-helpers/install_generator.rb</span>
84
84
  </dd>
85
85
 
86
86
  </dl>
@@ -90,10 +90,12 @@
90
90
  <p class="children">
91
91
 
92
92
 
93
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="JqrHelpers/Helpers.html" title="JqrHelpers::Helpers (module)">Helpers</a></span>
93
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="JqrHelpers/Generators.html" title="JqrHelpers::Generators (module)">Generators</a></span>, <span class='object_link'><a href="JqrHelpers/Helpers.html" title="JqrHelpers::Helpers (module)">Helpers</a></span>, <span class='object_link'><a href="JqrHelpers/Rails.html" title="JqrHelpers::Rails (module)">Rails</a></span>
94
94
 
95
95
 
96
96
 
97
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="JqrHelpers/Engine.html" title="JqrHelpers::Engine (class)">Engine</a></span>, <span class='object_link'><a href="JqrHelpers/Railtie.html" title="JqrHelpers::Railtie (class)">Railtie</a></span>
98
+
97
99
 
98
100
  </p>
99
101
 
@@ -108,7 +110,7 @@
108
110
  </div>
109
111
 
110
112
  <div id="footer">
111
- Generated on Sun Feb 2 15:18:53 2014 by
113
+ Generated on Fri May 16 14:31:13 2014 by
112
114
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
115
  0.8.5.2 (ruby-1.9.3).
114
116
  </div>
data/doc/_index.html CHANGED
@@ -71,6 +71,36 @@
71
71
  <td valign='top' width="33%">
72
72
 
73
73
 
74
+ <ul id="alpha_E" class="alpha">
75
+ <li class="letter">E</li>
76
+ <ul>
77
+
78
+ <li>
79
+ <span class='object_link'><a href="JqrHelpers/Engine.html" title="JqrHelpers::Engine (class)">Engine</a></span>
80
+
81
+ <small>(JqrHelpers)</small>
82
+
83
+ </li>
84
+
85
+ </ul>
86
+ </ul>
87
+
88
+
89
+ <ul id="alpha_G" class="alpha">
90
+ <li class="letter">G</li>
91
+ <ul>
92
+
93
+ <li>
94
+ <span class='object_link'><a href="JqrHelpers/Generators.html" title="JqrHelpers::Generators (module)">Generators</a></span>
95
+
96
+ <small>(JqrHelpers)</small>
97
+
98
+ </li>
99
+
100
+ </ul>
101
+ </ul>
102
+
103
+
74
104
  <ul id="alpha_H" class="alpha">
75
105
  <li class="letter">H</li>
76
106
  <ul>
@@ -86,6 +116,21 @@
86
116
  </ul>
87
117
 
88
118
 
119
+ <ul id="alpha_I" class="alpha">
120
+ <li class="letter">I</li>
121
+ <ul>
122
+
123
+ <li>
124
+ <span class='object_link'><a href="JqrHelpers/Generators/InstallGenerator.html" title="JqrHelpers::Generators::InstallGenerator (class)">InstallGenerator</a></span>
125
+
126
+ <small>(JqrHelpers::Generators)</small>
127
+
128
+ </li>
129
+
130
+ </ul>
131
+ </ul>
132
+
133
+
89
134
  <ul id="alpha_J" class="alpha">
90
135
  <li class="letter">J</li>
91
136
  <ul>
@@ -113,6 +158,28 @@
113
158
  </ul>
114
159
  </ul>
115
160
 
161
+
162
+ <ul id="alpha_R" class="alpha">
163
+ <li class="letter">R</li>
164
+ <ul>
165
+
166
+ <li>
167
+ <span class='object_link'><a href="JqrHelpers/Rails.html" title="JqrHelpers::Rails (module)">Rails</a></span>
168
+
169
+ <small>(JqrHelpers)</small>
170
+
171
+ </li>
172
+
173
+ <li>
174
+ <span class='object_link'><a href="JqrHelpers/Railtie.html" title="JqrHelpers::Railtie (class)">Railtie</a></span>
175
+
176
+ <small>(JqrHelpers)</small>
177
+
178
+ </li>
179
+
180
+ </ul>
181
+ </ul>
182
+
116
183
  </td>
117
184
  </tr>
118
185
  </table>
@@ -122,7 +189,7 @@
122
189
  </div>
123
190
 
124
191
  <div id="footer">
125
- Generated on Sun Feb 2 15:18:53 2014 by
192
+ Generated on Fri May 16 14:31:13 2014 by
126
193
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
194
  0.8.5.2 (ruby-1.9.3).
128
195
  </div>
data/doc/class_list.html CHANGED
@@ -45,7 +45,7 @@
45
45
 
46
46
  <ul id="full_list" class="class">
47
47
  <li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
48
- <li><a class='toggle'></a> <span class='object_link'><a href="JqrHelpers.html" title="JqrHelpers (module)">JqrHelpers</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="JqrHelpers/Helpers.html" title="JqrHelpers::Helpers (module)">Helpers</a></span><small class='search_info'>JqrHelpers</small></li><ul><li><span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html" title="JqrHelpers::Helpers::PanelRenderer (class)">PanelRenderer</a></span> &lt; Object<small class='search_info'>JqrHelpers::Helpers</small></li></ul></ul>
48
+ <li><a class='toggle'></a> <span class='object_link'><a href="JqrHelpers.html" title="JqrHelpers (module)">JqrHelpers</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="JqrHelpers/Engine.html" title="JqrHelpers::Engine (class)">Engine</a></span> &lt; Engine<small class='search_info'>JqrHelpers</small></li><li><a class='toggle'></a> <span class='object_link'><a href="JqrHelpers/Generators.html" title="JqrHelpers::Generators (module)">Generators</a></span><small class='search_info'>JqrHelpers</small></li><ul><li><span class='object_link'><a href="JqrHelpers/Generators/InstallGenerator.html" title="JqrHelpers::Generators::InstallGenerator (class)">InstallGenerator</a></span> &lt; Base<small class='search_info'>JqrHelpers::Generators</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="JqrHelpers/Helpers.html" title="JqrHelpers::Helpers (module)">Helpers</a></span><small class='search_info'>JqrHelpers</small></li><ul><li><span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html" title="JqrHelpers::Helpers::PanelRenderer (class)">PanelRenderer</a></span> &lt; Object<small class='search_info'>JqrHelpers::Helpers</small></li></ul><li><span class='object_link'><a href="JqrHelpers/Rails.html" title="JqrHelpers::Rails (module)">Rails</a></span><small class='search_info'>JqrHelpers</small></li><li><span class='object_link'><a href="JqrHelpers/Railtie.html" title="JqrHelpers::Railtie (class)">Railtie</a></span> &lt; Railtie<small class='search_info'>JqrHelpers</small></li></ul>
49
49
 
50
50
  </ul>
51
51
  </div>
data/doc/index.html CHANGED
@@ -71,6 +71,36 @@
71
71
  <td valign='top' width="33%">
72
72
 
73
73
 
74
+ <ul id="alpha_E" class="alpha">
75
+ <li class="letter">E</li>
76
+ <ul>
77
+
78
+ <li>
79
+ <span class='object_link'><a href="JqrHelpers/Engine.html" title="JqrHelpers::Engine (class)">Engine</a></span>
80
+
81
+ <small>(JqrHelpers)</small>
82
+
83
+ </li>
84
+
85
+ </ul>
86
+ </ul>
87
+
88
+
89
+ <ul id="alpha_G" class="alpha">
90
+ <li class="letter">G</li>
91
+ <ul>
92
+
93
+ <li>
94
+ <span class='object_link'><a href="JqrHelpers/Generators.html" title="JqrHelpers::Generators (module)">Generators</a></span>
95
+
96
+ <small>(JqrHelpers)</small>
97
+
98
+ </li>
99
+
100
+ </ul>
101
+ </ul>
102
+
103
+
74
104
  <ul id="alpha_H" class="alpha">
75
105
  <li class="letter">H</li>
76
106
  <ul>
@@ -86,6 +116,21 @@
86
116
  </ul>
87
117
 
88
118
 
119
+ <ul id="alpha_I" class="alpha">
120
+ <li class="letter">I</li>
121
+ <ul>
122
+
123
+ <li>
124
+ <span class='object_link'><a href="JqrHelpers/Generators/InstallGenerator.html" title="JqrHelpers::Generators::InstallGenerator (class)">InstallGenerator</a></span>
125
+
126
+ <small>(JqrHelpers::Generators)</small>
127
+
128
+ </li>
129
+
130
+ </ul>
131
+ </ul>
132
+
133
+
89
134
  <ul id="alpha_J" class="alpha">
90
135
  <li class="letter">J</li>
91
136
  <ul>
@@ -113,6 +158,28 @@
113
158
  </ul>
114
159
  </ul>
115
160
 
161
+
162
+ <ul id="alpha_R" class="alpha">
163
+ <li class="letter">R</li>
164
+ <ul>
165
+
166
+ <li>
167
+ <span class='object_link'><a href="JqrHelpers/Rails.html" title="JqrHelpers::Rails (module)">Rails</a></span>
168
+
169
+ <small>(JqrHelpers)</small>
170
+
171
+ </li>
172
+
173
+ <li>
174
+ <span class='object_link'><a href="JqrHelpers/Railtie.html" title="JqrHelpers::Railtie (class)">Railtie</a></span>
175
+
176
+ <small>(JqrHelpers)</small>
177
+
178
+ </li>
179
+
180
+ </ul>
181
+ </ul>
182
+
116
183
  </td>
117
184
  </tr>
118
185
  </table>
@@ -122,7 +189,7 @@
122
189
  </div>
123
190
 
124
191
  <div id="footer">
125
- Generated on Sun Feb 2 15:18:53 2014 by
192
+ Generated on Fri May 16 14:31:13 2014 by
126
193
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
194
  0.8.5.2 (ruby-1.9.3).
128
195
  </div>
data/doc/method_list.html CHANGED
@@ -46,6 +46,22 @@
46
46
  <ul id="full_list" class="method">
47
47
 
48
48
 
49
+ <li class="r1 ">
50
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#_random_string-class_method" title="JqrHelpers::Helpers._random_string (method)">_random_string</a></span>
51
+
52
+ <small>JqrHelpers::Helpers</small>
53
+
54
+ </li>
55
+
56
+
57
+ <li class="r2 ">
58
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#ajax_change-instance_method" title="JqrHelpers::Helpers#ajax_change (method)">#ajax_change</a></span>
59
+
60
+ <small>JqrHelpers::Helpers</small>
61
+
62
+ </li>
63
+
64
+
49
65
  <li class="r1 ">
50
66
  <span class='object_link'><a href="JqrHelpers/Helpers.html#button_to_ajax-instance_method" title="JqrHelpers::Helpers#button_to_ajax (method)">#button_to_ajax</a></span>
51
67
 
@@ -175,6 +191,14 @@
175
191
 
176
192
 
177
193
  <li class="r1 ">
194
+ <span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html#panels-instance_method" title="JqrHelpers::Helpers::PanelRenderer#panels (method)">#panels</a></span>
195
+
196
+ <small>JqrHelpers::Helpers::PanelRenderer</small>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="r2 ">
178
202
  <span class='object_link'><a href="JqrHelpers/Helpers.html#quick_radio_set-instance_method" title="JqrHelpers::Helpers#quick_radio_set (method)">#quick_radio_set</a></span>
179
203
 
180
204
  <small>JqrHelpers::Helpers</small>
@@ -182,7 +206,7 @@
182
206
  </li>
183
207
 
184
208
 
185
- <li class="r2 ">
209
+ <li class="r1 ">
186
210
  <span class='object_link'><a href="JqrHelpers/Helpers.html#tab_container-instance_method" title="JqrHelpers::Helpers#tab_container (method)">#tab_container</a></span>
187
211
 
188
212
  <small>JqrHelpers::Helpers</small>
@@ -190,7 +214,7 @@
190
214
  </li>
191
215
 
192
216
 
193
- <li class="r1 ">
217
+ <li class="r2 ">
194
218
  <span class='object_link'><a href="JqrHelpers/Helpers.html#will_paginate_ajax-instance_method" title="JqrHelpers::Helpers#will_paginate_ajax (method)">#will_paginate_ajax</a></span>
195
219
 
196
220
  <small>JqrHelpers::Helpers</small>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun Feb 2 15:18:53 2014 by
106
+ Generated on Fri May 16 14:31:13 2014 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.5.2 (ruby-1.9.3).
109
109
  </div>
data/jqr-helpers.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jqr-helpers'
3
3
  s.require_paths = %w(. lib lib/jqr-helpers)
4
- s.version = '1.0.41'
5
- s.date = '2014-05-16'
4
+ s.version = '1.0.42'
5
+ s.date = '2014-05-28'
6
6
  s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
7
7
  s.description = <<-EOF
8
8
  This gem adds helper methods to create unobtrusive jQuery code. It outputs
@@ -13,13 +13,19 @@ module JqrHelpers
13
13
  log 'Copying files...'
14
14
  files = [
15
15
  'javascripts/jqr-helpers.js',
16
- 'stylesheets/jqr-helpers.css',
17
16
  'images/jqr-helpers/close.png',
18
17
  'images/jqr-helpers/throbber.gif'
19
18
  ]
19
+ if Rails.version.to_i >= 3.2
20
+ files << 'stylesheets/jqr-helpers.css'
21
+ end
20
22
  files.each do |file|
21
23
  copy_file file, "public/#{file}"
22
24
  end
25
+ if Rails.version.to_i < 3.2
26
+ copy_file 'stylesheets/jqr-helpers-legacy.css',
27
+ 'public/stylesheets/jqr-helpers.css'
28
+ end
23
29
  end
24
30
  end
25
31
  end
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.41'
4
+ VERSION = '1.0.42'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jqr-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.41
4
+ version: 1.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-16 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +53,7 @@ files:
53
53
  - app/assets/images/jqr-helpers/throbber.gif
54
54
  - app/assets/images/jqr-helpers/throbber_large.gif
55
55
  - app/assets/javascripts/jqr-helpers.js
56
+ - app/assets/stylesheets/jqr-helpers-legacy.css
56
57
  - app/assets/stylesheets/jqr-helpers.css
57
58
  - doc/JqrHelpers.html
58
59
  - doc/JqrHelpers/Generators.html