rails_sortable 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rails_sortable/version.rb +1 -1
  3. data/spec/dummy/app/assets/javascripts/items.js +6 -1
  4. data/spec/dummy/app/assets/javascripts/sequenced_items.js +1 -1
  5. data/spec/dummy/app/views/items/index.html.erb +1 -1
  6. data/spec/dummy/app/views/sequenced_items/index.html.erb +1 -1
  7. data/spec/dummy/db/development.sqlite3 +0 -0
  8. data/spec/dummy/log/development.log +558 -0
  9. data/spec/dummy/log/test.log +1045 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-n/-n3MR6ZjOaHK_ObpQr3kxPeehgxHJBOXef8KEtXSnzk.cache +1 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0_/0_br0Fu28KevPxgtOSltEECv0T3F8wKP9bAFm1iWjoc.cache +3 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ac/AcPryqPrbsoEfEco2i50EOaS-VbzWm-b2Sd3GcIhjc8.cache +1 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BC/BCgA5HGpgGewn7E8axPYAs4aVL4zvC-AwXzmgtTQ1Bs.cache +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cn/CntFVSN9ycd51iw8JAkrhWU4FqTTMlSoxdEVGDfMDyc.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dv/DvVItwDJ5ICN6OBzcrrxrDiqsRES0Isxq84koIrF3U0.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ef/eF1qMHobSulGvdOrys-5XQ3ixIU2NXiR_RFjBkJzPos.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F2/F2SlPoBworI2L5RUOKhSitL95hVsqy9KivpeemEXt_g.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FB/FBlKyIqlxlA0tOBboFkYFg_u0qqQW2dgPGoZhLoVxg4.cache +0 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/Fqrynqgt37T_Jz0gja64e7NQFd5SzLzcAC4_YMxu3O8.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JE/JEeGFNEKZ7yHGoaCYsjNP9S-VeasZ25_nIPhYMI2X_s.cache +1 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JK/JK0QHCRAZYDJ3NI9w39MDGiqLBTQ5NM-yIWUfyWqphQ.cache +3 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KM/KMcOA-hCfuKtoew9CJP1Ao9tJOdcsHkqLFO84nmRRik.cache +3 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ks/Ksp8vhX3GOFRGspmclaLJsbsfQfOuMLng-PuTXKmHFg.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mr/MrTgaqLx7Tvgt1WzEHIJfis8109OaER_-OXj4XenR5o.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NO/NOuDPNV5bOM9A1JAhr8rqvHIL2xoHktQp8W9kCY-nX4.cache +1 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oa/Oa8ssvN58qLV-PrVzwgyA6P0XDLq6ANV6JwPesHne68.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pd/PDppEJhkeH_7wfDFPnvviIy82OmRp4Z3f5bofhhahG0.cache +1 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UGUKHaW4DiFx1aZgMUpclbzKInIDVBd5f75rfkqDRd4.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/V8/V8lRDMBVYa46ewm0LS2r8_QMQTEfQu5rMz83pWEyEew.cache +0 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VR/VRy2pXlNhDh2oyyqcWbhePZqveOIOtZZg1zxE89-908.cache +0 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vv/Vvxdg4BbDphDHeOZiJmCNQK9QTEYogBkC7LNWoX68FU.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZR/zRPDg3_23PWibnx_w67lHwCKN6r1wBy7NW0yVsbaqa8.cache +1 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_c/_c6vHkRiVSAEPc1e9I0DFUU8AJWTDfe8nY_JZpyJFIw.cache +1 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bP/bPmqNkMb3ITDyy0kHFrRnXGX1L5opVOZS2R7dtWmQiY.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cd/cd3cvAVA3o_f_CbdR0-Za1QaHdwfc-2skbbM7CmGkSg.cache +0 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d8/d8uy9gFpuu6Xd6xKC83h_5-MrHOmswknotnF8R51xDI.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fh/fhO1XaxpZT7qTTVdu7LJ8dDvc6ZtPb53L-yvV4kBfos.cache +0 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gG/gGzYVeIZTKywhMKjVoVSxOfaIYPdQ6IP98oxzH6amAQ.cache +0 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jw/jw4asZ52LHDL7TyozcjjfztW6tODu9EeFxSEIB_xZRQ.cache +1 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kY/kYhYUPoCJkiWK3tdjmuubOGWfCVd3armi1xKwFxB-S0.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o4/o4Y9F2XU_uVXmdHbLHiTSqN0NE0piayqn2EwMN4yDgQ.cache +0 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pM/pMho7L0-5H3OrxKc7DYsqrGwwa6nRk-SfXwHSvO4Q6Y.cache +3 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pS/pSn7_xcBTb9g7zJnqofcijXBpbK5OGhuIyw4u-A5zxU.cache +0 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pf/pfmspwVjkJfo5lX6DyFPXnDSy4xzUGxy_nf5bKhT6EQ.cache +3 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pi/piAFbQFXWNpALwoK80W-ktm0ovkSt4TgggoRZ5IklU4.cache +0 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/qlHQPSJ_cZC4yX65ae_2nr5A275B2NnQEqD7r6Kh5sU.cache +0 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s0/s06U7dTbtH5bbEstUbc5oQKhgEbRWhvafPMvoy_QYpo.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sG/sGN8D1y-i4ZCCgfHs6vcSF99pMpDTsfzIBRbnuqbH2c.cache +0 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/so/sopi103sipEHlE7p3SCV0cekLiA0D8INEUiNrNSoK40.cache +1 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWpRXEIJzFMcsSUwp-Vu5QLS3vWbos65wsNMgWi-9k0.cache +0 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zD/zD3nxsMe3UFxFoV5-gI9RNqYHG3tEj737-irq20e6Fo.cache +1 -0
  53. data/vendor/assets/javascripts/plugin.js +9 -6
  54. metadata +80 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01705f347272f2e9544157f20b53a4f44f37c832e4667b5bcae0ae4f9b22a679
4
- data.tar.gz: e6f53da76738afc329ce03b66a1bf0b8c0ddf173823e539a44f2def4304e346a
3
+ metadata.gz: d820b1106a8cfaf3e2879868ff23ce09269c4f9268ae9a5a4454e3108eca41a8
4
+ data.tar.gz: e6fed46d0f56ee3faf94dda38d0aaf88d74501302e00808c80407a913684e65a
5
5
  SHA512:
6
- metadata.gz: 9ab23e31ad194de437dbef8da948b4cfa9b2a8148e02a1eeaa41bf66dba76f4741c06dfa02b2e56cdd1d6c29c0d4354e6481e1ddf1cf87c508e6803058fe1c22
7
- data.tar.gz: 5cc3196b8b6e00e426ea153f21cef5234e20813c882b9a64e5eea1b4b20347789707529fb3dea204fb875d954129538dbf945ab09f70aea71a9a0d29a3e4fc52
6
+ metadata.gz: f3ec4923f6d55a3cc355a0586be972c82f2ed5a4ea2c4783762e6586e1adf6dba1ccd183efdbb8f22bd40cd44fa098579d4fc4656312f8662efdded22efeb3a4
7
+ data.tar.gz: ffaf158d5f261616c8d645e09a16f5638ddf8aa4801d4b269b04f53cab373dc97686935fe9e49ecb434e44771c973fd274e7bef3619f2a810896376d3307a90a
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -1,5 +1,10 @@
1
1
  (function($) {
2
2
 
3
- $(".sortable").railsSortable();
3
+ $(".sortable-items").railsSortable({
4
+ update: function(event, ui) {
5
+ console.log('Yay! RailsSortable never spoil your implementation for sotable events.');
6
+ console.log(event, ui);
7
+ },
8
+ });
4
9
 
5
10
  })(jQuery);
@@ -1,5 +1,5 @@
1
1
  (function($) {
2
2
 
3
- $(".sortable").railsSortable();
3
+ $(".sortable-sequenced-items").railsSortable();
4
4
 
5
5
  })(jQuery);
@@ -12,7 +12,7 @@
12
12
  </tr>
13
13
  </thead>
14
14
 
15
- <tbody class="sortable">
15
+ <tbody class="sortable-items">
16
16
  <% @items.each_with_sortable_id do |item, sortable_id| %>
17
17
  <tr id="<%= sortable_id %>">
18
18
  <td><%= item.title %></td>
@@ -12,7 +12,7 @@
12
12
  </tr>
13
13
  </thead>
14
14
 
15
- <tbody class="sortable">
15
+ <tbody class="sortable-sequenced-items">
16
16
  <% @sequenced_items.each_with_sortable_id do |sequenced_item, sortable_id| %>
17
17
  <tr id="<%= sortable_id %>">
18
18
  <td><%= sequenced_item.title %></td>
Binary file