jqr-helpers 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,8 +123,8 @@
123
123
  function ujsButtonClick(event) {
124
124
  var element = $(this);
125
125
  element.uniqueId(); // to store for later
126
- element.data('confirm', null); // we've already fired it
127
126
  if ($.rails.allowAction(element)) {
127
+ element.data('confirm', null); // we've already fired it
128
128
  // largely copied from rails_jquery.js
129
129
  var href = element.data('url');
130
130
  var method = element.data('method');
@@ -201,7 +201,7 @@
201
201
  </div>
202
202
 
203
203
  <div id="footer">
204
- Generated on Tue Dec 3 10:46:07 2013 by
204
+ Generated on Wed Dec 18 14:32:39 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 Tue Dec 3 10:46:07 2013 by
109
+ Generated on Wed Dec 18 14:32:39 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>
@@ -430,7 +430,7 @@ be passed as is into the HTML &lt;li&gt; tag.</p>
430
430
  <span class='kw'>else</span>
431
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>
432
432
  <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='kw'>yield</span>
433
- <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='id identifier rubyid__random_string'>_random_string</span>
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>
434
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>
435
435
  <span class='kw'>end</span>
436
436
  <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='symbol'>:id</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
@@ -452,7 +452,7 @@ be passed as is into the HTML &lt;li&gt; tag.</p>
452
452
  </div>
453
453
 
454
454
  <div id="footer">
455
- Generated on Tue Dec 3 10:46:07 2013 by
455
+ Generated on Wed Dec 18 14:32:39 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>
@@ -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>
@@ -406,6 +439,66 @@ using content already on the page.</p>
406
439
 
407
440
 
408
441
 
442
+ <div id="class_method_details" class="method_details_list">
443
+ <h2>Class Method Details</h2>
444
+
445
+
446
+ <div class="method_details first">
447
+ <h3 class="signature first" id="_random_string-class_method">
448
+
449
+ + (<tt>String</tt>) <strong>_random_string</strong>
450
+
451
+
452
+
453
+
454
+
455
+ </h3><div class="docstring">
456
+ <div class="discussion">
457
+
458
+ <p>Generate a random string for IDs.</p>
459
+
460
+
461
+ </div>
462
+ </div>
463
+ <div class="tags">
464
+
465
+ <p class="tag_title">Returns:</p>
466
+ <ul class="return">
467
+
468
+ <li>
469
+
470
+
471
+ <span class='type'>(<tt>String</tt>)</span>
472
+
473
+
474
+
475
+ </li>
476
+
477
+ </ul>
478
+
479
+ </div><table class="source_code">
480
+ <tr>
481
+ <td>
482
+ <pre class="lines">
483
+
484
+
485
+ 310
486
+ 311
487
+ 312</pre>
488
+ </td>
489
+ <td>
490
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 310</span>
491
+
492
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__random_string'>_random_string</span>
493
+ <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>
494
+ <span class='kw'>end</span></pre>
495
+ </td>
496
+ </tr>
497
+ </table>
498
+ </div>
499
+
500
+ </div>
501
+
409
502
  <div id="instance_method_details" class="method_details_list">
410
503
  <h2>Instance Method Details</h2>
411
504
 
@@ -422,8 +515,8 @@ using content already on the page.</p>
422
515
  </h3><div class="docstring">
423
516
  <div class="discussion">
424
517
 
425
- <p>Create a button that fires off a jQuery Ajax request. This is basically a
426
- wrapper around button_to :remote =&gt; true.</p>
518
+ <p>Create a button that fires off a jQuery Ajax request. This does not use
519
+ button_to, so it can be used inside forms.</p>
427
520
 
428
521
 
429
522
  </div>
@@ -504,25 +597,37 @@ wrapper around button_to :remote =&gt; true.</p>
504
597
  <pre class="lines">
505
598
 
506
599
 
507
- 184
508
600
  185
509
601
  186
510
602
  187
511
603
  188
512
604
  189
513
605
  190
514
- 191</pre>
606
+ 191
607
+ 192
608
+ 193
609
+ 194
610
+ 195
611
+ 196
612
+ 197
613
+ 198</pre>
515
614
  </td>
516
615
  <td>
517
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 184</span>
616
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 185</span>
518
617
 
519
618
  <span class='kw'>def</span> <span class='id identifier rubyid_button_to_ajax'>button_to_ajax</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</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>
520
619
 
521
- <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>
522
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:form</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
523
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:form</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</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><span class='rparen'>)</span>
620
+ <span class='comment'># Specifically do not add data-remote
621
+ </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>
622
+ <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>
623
+ <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>
624
+ <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>
625
+ <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>
626
+ <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>
627
+ <span class='kw'>end</span>
628
+ <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</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><span class='rparen'>)</span>
524
629
 
525
- <span class='id identifier rubyid_button_to'>button_to</span> <span class='id identifier rubyid_body'>body</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>
630
+ <span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:button</span><span class='comma'>,</span> <span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
526
631
  <span class='kw'>end</span></pre>
527
632
  </td>
528
633
  </tr>
@@ -613,7 +718,7 @@ wrapper around button_to :remote =&gt; true.</p>
613
718
 
614
719
  &mdash;
615
720
  <div class='inline'>
616
- <p>See above.</p>
721
+ <p>Dialog options as described in the readme.</p>
617
722
  </div>
618
723
 
619
724
  </li>
@@ -726,7 +831,7 @@ using content already on the page.</p>
726
831
 
727
832
  &mdash;
728
833
  <div class='inline'>
729
- <p>See above.</p>
834
+ <p>Dialog options as described in the readme.</p>
730
835
  </div>
731
836
 
732
837
  </li>
@@ -771,14 +876,14 @@ using content already on the page.</p>
771
876
  <pre class="lines">
772
877
 
773
878
 
774
- 151
775
879
  152
776
880
  153
777
881
  154
778
- 155</pre>
882
+ 155
883
+ 156</pre>
779
884
  </td>
780
885
  <td>
781
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 151</span>
886
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 152</span>
782
887
 
783
888
  <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>
784
889
  <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>
@@ -889,18 +994,18 @@ then be passed into jQuery's buttonset() method.</p>
889
994
  <pre class="lines">
890
995
 
891
996
 
892
- 291
893
- 292
894
- 293
895
- 294
896
- 295
897
- 296
898
- 297
899
997
  298
900
- 299</pre>
998
+ 299
999
+ 300
1000
+ 301
1001
+ 302
1002
+ 303
1003
+ 304
1004
+ 305
1005
+ 306</pre>
901
1006
  </td>
902
1007
  <td>
903
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 291</span>
1008
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 298</span>
904
1009
 
905
1010
  <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>
906
1011
  <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>
@@ -1149,18 +1254,18 @@ the date and the jQuery date format to be the same.</p>
1149
1254
  <pre class="lines">
1150
1255
 
1151
1256
 
1152
- 274
1153
- 275
1154
- 276
1155
- 277
1156
- 278
1157
- 279
1158
- 280
1159
1257
  281
1160
- 282</pre>
1258
+ 282
1259
+ 283
1260
+ 284
1261
+ 285
1262
+ 286
1263
+ 287
1264
+ 288
1265
+ 289</pre>
1161
1266
  </td>
1162
1267
  <td>
1163
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 274</span>
1268
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 281</span>
1164
1269
 
1165
1270
  <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>
1166
1271
  <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>
@@ -1244,20 +1349,20 @@ form_for instead of form_tag.</p>
1244
1349
  <pre class="lines">
1245
1350
 
1246
1351
 
1247
- 214
1248
- 215
1249
- 216
1250
- 217
1251
- 218
1252
- 219
1253
- 220
1254
1352
  221
1255
1353
  222
1256
1354
  223
1257
- 224</pre>
1355
+ 224
1356
+ 225
1357
+ 226
1358
+ 227
1359
+ 228
1360
+ 229
1361
+ 230
1362
+ 231</pre>
1258
1363
  </td>
1259
1364
  <td>
1260
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 214</span>
1365
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 221</span>
1261
1366
 
1262
1367
  <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>
1263
1368
  <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>
@@ -1353,19 +1458,19 @@ form_tag with :remote =&gt; true.</p>
1353
1458
  <pre class="lines">
1354
1459
 
1355
1460
 
1356
- 198
1357
- 199
1358
- 200
1359
- 201
1360
- 202
1361
- 203
1362
- 204
1363
1461
  205
1364
1462
  206
1365
- 207</pre>
1463
+ 207
1464
+ 208
1465
+ 209
1466
+ 210
1467
+ 211
1468
+ 212
1469
+ 213
1470
+ 214</pre>
1366
1471
  </td>
1367
1472
  <td>
1368
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 198</span>
1473
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 205</span>
1369
1474
 
1370
1475
  <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>
1371
1476
 
@@ -1478,7 +1583,6 @@ used for the body.</p>
1478
1583
  <pre class="lines">
1479
1584
 
1480
1585
 
1481
- 165
1482
1586
  166
1483
1587
  167
1484
1588
  168
@@ -1489,10 +1593,11 @@ used for the body.</p>
1489
1593
  173
1490
1594
  174
1491
1595
  175
1492
- 176</pre>
1596
+ 176
1597
+ 177</pre>
1493
1598
  </td>
1494
1599
  <td>
1495
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 165</span>
1600
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 166</span>
1496
1601
 
1497
1602
  <span class='kw'>def</span> <span class='id identifier rubyid_link_to_ajax'>link_to_ajax</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</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='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1498
1603
  <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -1581,7 +1686,7 @@ html_content.</p>
1581
1686
 
1582
1687
  &mdash;
1583
1688
  <div class='inline'>
1584
- <p>See above.</p>
1689
+ <p>Dialog options as described in the readme.</p>
1585
1690
  </div>
1586
1691
 
1587
1692
  </li>
@@ -1778,7 +1883,7 @@ html_content.</p>
1778
1883
 
1779
1884
  &mdash;
1780
1885
  <div class='inline'>
1781
- <p>See above.</p>
1886
+ <p>Dialog options as described in the readme.</p>
1782
1887
  </div>
1783
1888
 
1784
1889
  </li>
@@ -1836,7 +1941,8 @@ pass :div, :span, etc.</p>
1836
1941
  139
1837
1942
  140
1838
1943
  141
1839
- 142</pre>
1944
+ 142
1945
+ 143</pre>
1840
1946
  </td>
1841
1947
  <td>
1842
1948
  <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 131</span>
@@ -1851,7 +1957,8 @@ pass :div, :span, etc.</p>
1851
1957
  <span class='kw'>end</span>
1852
1958
 
1853
1959
  <span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:data-dialog-url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
1854
- <span class='id identifier rubyid_link_to_dialog'>link_to_dialog</span><span class='lparen'>(</span><span class='id identifier rubyid__random_string'>_random_string</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> <span class='id identifier rubyid_html_options'>html_options</span><span class='rparen'>)</span>
1960
+ <span class='id identifier rubyid_link_to_dialog'>link_to_dialog</span><span class='lparen'>(</span><span class='const'>Helpers</span><span class='period'>.</span><span class='id identifier rubyid__random_string'>_random_string</span><span class='comma'>,</span> <span class='id identifier rubyid_html_content'>html_content</span><span class='comma'>,</span>
1961
+ <span class='id identifier rubyid_dialog_options'>dialog_options</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='rparen'>)</span>
1855
1962
  <span class='kw'>end</span></pre>
1856
1963
  </td>
1857
1964
  </tr>
@@ -1939,13 +2046,6 @@ URL).</p>
1939
2046
  <pre class="lines">
1940
2047
 
1941
2048
 
1942
- 239
1943
- 240
1944
- 241
1945
- 242
1946
- 243
1947
- 244
1948
- 245
1949
2049
  246
1950
2050
  247
1951
2051
  248
@@ -1963,10 +2063,17 @@ URL).</p>
1963
2063
  260
1964
2064
  261
1965
2065
  262
1966
- 263</pre>
2066
+ 263
2067
+ 264
2068
+ 265
2069
+ 266
2070
+ 267
2071
+ 268
2072
+ 269
2073
+ 270</pre>
1967
2074
  </td>
1968
2075
  <td>
1969
- <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 239</span>
2076
+ <pre class="code"><span class="info file"># File 'lib/jqr-helpers/helpers.rb', line 246</span>
1970
2077
 
1971
2078
  <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>
1972
2079
  <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>
@@ -2003,7 +2110,7 @@ URL).</p>
2003
2110
  </div>
2004
2111
 
2005
2112
  <div id="footer">
2006
- Generated on Tue Dec 3 10:46:07 2013 by
2113
+ Generated on Wed Dec 18 14:32:39 2013 by
2007
2114
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2008
2115
  0.8.7.3 (ruby-1.9.3).
2009
2116
  </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.8</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.15</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 Tue Dec 3 10:46:07 2013 by
111
+ Generated on Wed Dec 18 14:32:39 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>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 3 10:46:07 2013 by
117
+ Generated on Wed Dec 18 14:32:39 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 Tue Dec 3 10:46:06 2013 by
113
+ Generated on Wed Dec 18 14:32:39 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 Tue Dec 3 10:46:06 2013 by
177
+ Generated on Wed Dec 18 14:32:39 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 Tue Dec 3 10:46:06 2013 by
177
+ Generated on Wed Dec 18 14:32:39 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/method_list.html CHANGED
@@ -48,96 +48,102 @@
48
48
 
49
49
 
50
50
  <li class="r1 ">
51
- <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
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#_random_string-class_method" title="JqrHelpers::Helpers._random_string (method)">_random_string</a></span>
52
52
  <small>JqrHelpers::Helpers</small>
53
53
  </li>
54
54
 
55
55
 
56
56
  <li class="r2 ">
57
- <span class='object_link'><a href="JqrHelpers/Helpers.html#button_to_dialog-instance_method" title="JqrHelpers::Helpers#button_to_dialog (method)">#button_to_dialog</a></span>
57
+ <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>
58
58
  <small>JqrHelpers::Helpers</small>
59
59
  </li>
60
60
 
61
61
 
62
62
  <li class="r1 ">
63
- <span class='object_link'><a href="JqrHelpers/Helpers.html#button_to_remote_dialog-instance_method" title="JqrHelpers::Helpers#button_to_remote_dialog (method)">#button_to_remote_dialog</a></span>
63
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#button_to_dialog-instance_method" title="JqrHelpers::Helpers#button_to_dialog (method)">#button_to_dialog</a></span>
64
64
  <small>JqrHelpers::Helpers</small>
65
65
  </li>
66
66
 
67
67
 
68
68
  <li class="r2 ">
69
- <span class='object_link'><a href="JqrHelpers/Helpers.html#buttonset-instance_method" title="JqrHelpers::Helpers#buttonset (method)">#buttonset</a></span>
69
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#button_to_remote_dialog-instance_method" title="JqrHelpers::Helpers#button_to_remote_dialog (method)">#button_to_remote_dialog</a></span>
70
70
  <small>JqrHelpers::Helpers</small>
71
71
  </li>
72
72
 
73
73
 
74
74
  <li class="r1 ">
75
- <span class='object_link'><a href="JqrHelpers/Helpers.html#confirm_button-instance_method" title="JqrHelpers::Helpers#confirm_button (method)">#confirm_button</a></span>
75
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#buttonset-instance_method" title="JqrHelpers::Helpers#buttonset (method)">#buttonset</a></span>
76
76
  <small>JqrHelpers::Helpers</small>
77
77
  </li>
78
78
 
79
79
 
80
80
  <li class="r2 ">
81
+ <span class='object_link'><a href="JqrHelpers/Helpers.html#confirm_button-instance_method" title="JqrHelpers::Helpers#confirm_button (method)">#confirm_button</a></span>
82
+ <small>JqrHelpers::Helpers</small>
83
+ </li>
84
+
85
+
86
+ <li class="r1 ">
81
87
  <span class='object_link'><a href="JqrHelpers/Generators/InstallGenerator.html#copy_files-instance_method" title="JqrHelpers::Generators::InstallGenerator#copy_files (method)">#copy_files</a></span>
82
88
  <small>JqrHelpers::Generators::InstallGenerator</small>
83
89
  </li>
84
90
 
85
91
 
86
- <li class="r1 ">
92
+ <li class="r2 ">
87
93
  <span class='object_link'><a href="JqrHelpers/Helpers.html#date_picker_tag-instance_method" title="JqrHelpers::Helpers#date_picker_tag (method)">#date_picker_tag</a></span>
88
94
  <small>JqrHelpers::Helpers</small>
89
95
  </li>
90
96
 
91
97
 
92
- <li class="r2 ">
98
+ <li class="r1 ">
93
99
  <span class='object_link'><a href="JqrHelpers/Helpers.html#form_for_ajax-instance_method" title="JqrHelpers::Helpers#form_for_ajax (method)">#form_for_ajax</a></span>
94
100
  <small>JqrHelpers::Helpers</small>
95
101
  </li>
96
102
 
97
103
 
98
- <li class="r1 ">
104
+ <li class="r2 ">
99
105
  <span class='object_link'><a href="JqrHelpers/Helpers.html#form_tag_ajax-instance_method" title="JqrHelpers::Helpers#form_tag_ajax (method)">#form_tag_ajax</a></span>
100
106
  <small>JqrHelpers::Helpers</small>
101
107
  </li>
102
108
 
103
109
 
104
- <li class="r2 ">
110
+ <li class="r1 ">
105
111
  <span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html#initialize-instance_method" title="JqrHelpers::Helpers::PanelRenderer#initialize (method)">#initialize</a></span>
106
112
  <small>JqrHelpers::Helpers::PanelRenderer</small>
107
113
  </li>
108
114
 
109
115
 
110
- <li class="r1 ">
116
+ <li class="r2 ">
111
117
  <span class='object_link'><a href="JqrHelpers/Helpers.html#link_to_ajax-instance_method" title="JqrHelpers::Helpers#link_to_ajax (method)">#link_to_ajax</a></span>
112
118
  <small>JqrHelpers::Helpers</small>
113
119
  </li>
114
120
 
115
121
 
116
- <li class="r2 ">
122
+ <li class="r1 ">
117
123
  <span class='object_link'><a href="JqrHelpers/Helpers.html#link_to_dialog-instance_method" title="JqrHelpers::Helpers#link_to_dialog (method)">#link_to_dialog</a></span>
118
124
  <small>JqrHelpers::Helpers</small>
119
125
  </li>
120
126
 
121
127
 
122
- <li class="r1 ">
128
+ <li class="r2 ">
123
129
  <span class='object_link'><a href="JqrHelpers/Helpers.html#link_to_remote_dialog-instance_method" title="JqrHelpers::Helpers#link_to_remote_dialog (method)">#link_to_remote_dialog</a></span>
124
130
  <small>JqrHelpers::Helpers</small>
125
131
  </li>
126
132
 
127
133
 
128
- <li class="r2 ">
134
+ <li class="r1 ">
129
135
  <span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html#panel-instance_method" title="JqrHelpers::Helpers::PanelRenderer#panel (method)">#panel</a></span>
130
136
  <small>JqrHelpers::Helpers::PanelRenderer</small>
131
137
  </li>
132
138
 
133
139
 
134
- <li class="r1 ">
140
+ <li class="r2 ">
135
141
  <span class='object_link'><a href="JqrHelpers/Helpers/PanelRenderer.html#panels-instance_method" title="JqrHelpers::Helpers::PanelRenderer#panels (method)">#panels</a></span>
136
142
  <small>JqrHelpers::Helpers::PanelRenderer</small>
137
143
  </li>
138
144
 
139
145
 
140
- <li class="r2 ">
146
+ <li class="r1 ">
141
147
  <span class='object_link'><a href="JqrHelpers/Helpers.html#tab_container-instance_method" title="JqrHelpers::Helpers#tab_container (method)">#tab_container</a></span>
142
148
  <small>JqrHelpers::Helpers</small>
143
149
  </li>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Tue Dec 3 10:46:06 2013 by
106
+ Generated on Wed Dec 18 14:32:39 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
@@ -1,15 +1,14 @@
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.14'
4
+ s.version = '1.0.15'
5
5
  s.date = '2013-12-18'
6
6
  s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
7
7
  s.description = <<-EOF
8
- This gem allows the use of several helper methods.
9
- The tags output contain classes and data attributes that are grabbed by
10
- unobtrusive JavaScript code and turned into jQuery UI widgets.
11
- Helpers include Ajax requests to update elements on the page, dialogs
12
- (including remote dialogs), and tab containers.
8
+ This gem adds helper methods to create unobtrusive jQuery code. It outputs
9
+ HTML, which is hooked by an included JavaScript file to provide the
10
+ functionality. Helpers include links to Ajax requests to update elements on
11
+ the page, dialogs (including remote dialogs), date pickers and tab containers.
13
12
  EOF
14
13
  s.authors = ['Daniel Orner']
15
14
  s.email = 'daniel.orner@wishabi.com'
@@ -1,5 +1,5 @@
1
1
  module JqrHelpers
2
2
  module Rails
3
- VERSION = '1.0.14'
3
+ VERSION = '1.0.15'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jqr-helpers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.14
5
+ version: 1.0.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Orner
@@ -43,11 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- description: ! " This gem allows the use of several helper methods.\n The tags
47
- output contain classes and data attributes that are grabbed by\n unobtrusive
48
- JavaScript code and turned into jQuery UI widgets.\n Helpers include Ajax requests
49
- to update elements on the page, dialogs\n (including remote dialogs), and tab
50
- containers.\n"
46
+ description: ! " This gem adds helper methods to create unobtrusive jQuery code.
47
+ It outputs\n HTML, which is hooked by an included JavaScript file to provide
48
+ the\n functionality. Helpers include links to Ajax requests to update elements
49
+ on\n the page, dialogs (including remote dialogs), date pickers and tab containers.\n"
51
50
  email: daniel.orner@wishabi.com
52
51
  executables: []
53
52
  extensions: []