rails_sortable 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/sortable_controller.rb +4 -3
  3. data/lib/rails_sortable/version.rb +1 -1
  4. data/spec/controllers/sortable_controller_spec.rb +2 -2
  5. data/spec/dummy/db/development.sqlite3 +0 -0
  6. data/spec/dummy/log/development.log +835 -0
  7. data/spec/dummy/log/test.log +1025 -0
  8. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/01/01R-s_WCfie5NOUCgzCRAa1HGSgrRGzSWOC_m6QKtDs.cache +0 -0
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0C/0CSZvbvyMRBgG6qOaNyldbOa0BC8Z6Hl-Gsc4eRLOOU.cache +3 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0s/0sKu42gh2vBaPvT4isoyz1C5n3QsEH9XYKbdz33ynp0.cache +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2m/2mYWSxzZ3mr-W-zj_QlMzUVhXAc6K5n_mxuhfVPKeRk.cache +1 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2n/2noyLPdhyYrTOf9E_xx-j1-l2o0D4xIKefkU2_2zuSw.cache +1 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Z/3ZmFVd37_er9xacTdpDVrru3pqqONv7oiLoa5jumXMA.cache +1 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5D/5D4vKn0nXiZFypoQ88UVWACwMPmNEtPoizlnlf5a3KE.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8q/8qL2VWqjLsK-3Th2nChJt0rmn86ayYoXXljxNwr6boA.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/95/95wFhe664F63WUSzEhsVvTZSomnmA29bQqRzCuqUw80.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9oVNtnLWwqQb7TmD8FpMip1dkKF6-5Vv_ZgkxMiCsSg.cache +1 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ac/ACjjatYt7SSchzTFuzSgpHU4aH76Y0BEFicjyejYRRo.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BJ/bjVQEFR5R1N_JWucAuDUty6laM2DRjj0_RMZu9SYDvA.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bq/BqpRHlLIR78Mve0JYwWNBqMMqFDayfalTJQYgjiM9qM.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Br/BrcgfO216aBCp02p1z62HHiagAlHNyLgZJO0x-qFmzY.cache +1 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bz/BzlgWWh3KsQ2JEqmmrJN5zzF2kzeFk6banY43og-jco.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cg/Cg032mB5wsCJc7M9PJYtX8kW2rme7nDs2NfqRMU_Kag.cache +1 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cv/CvnZzjVTprKQs9En8yNOqFZb8PbjTdhGHDTUA759Jdg.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GY/GYPawP__JY6VU09QGlK0uX8tBEMxoF0ruW15q2_urco.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCV17aj9PDQvsltkt1vtlC4Pi97LUK70iUjju-aeY4U.cache +1 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JK/jK6RVDyZCJVp-tGbxpa6CenvbY-RVAZE6JA6fCCBGwY.cache +1 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L4/L4tqqx-yJoztIjoGXHSy-NvkI8VW65QKMxETt-QnRXk.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lu/LuT9MVCevd9cnJyM-rnFODC6fmZlQCo6sbB-oOYo32o.cache +0 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NJ/NJPKulTTVml31dAHvlNlvTSmc67dd1-khPdXxd-BV-g.cache +0 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NO/NOFsgdG9JHvxaTdETOIM03FC4zJSLMNaRYMqzJD-PK0.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ph/PhVnF8dSHdYPZAh-rGDzubSJJQ15B8LYWAmbT_Ayg0I.cache +1 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qi/QiqRtgYYt80Fdiy7_p9KG5epgz0iScb6d3ggvZ9ou8E.cache +1 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qx/Qx762cihrWGbxDFPg0J0Ty3XRyawIkiYNfkOa1rdjvg.cache +3 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Rm/RmvX8mn3Y70pTR3IdOxE8mQsk-o8YnIKsmhxamYuhuA.cache +1 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wf/WfSpDqLVIBRLs7zN4EaLvO5gZwP1gDZ-vhVlSV5Nuzc.cache +0 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xt/Xtbc0qIZ56U3len-pJqUpGyz5orhqIh4f4NCwhIZOM8.cache +1 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zb/ZbaWLp8-uhTLC-bZtsNyzAKzsHNiUMTQ8TR7cm1f2Ts.cache +0 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_u/_ucBCVho_GH8mpAYEMEbO1mdZJA-0utvol1cThSZTRg.cache +0 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/em/emP_P5yEj_Ci8tJ6_ddcLEs7tM8AvTDbABXxxYpMdPw.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gO/gO19bm9njX8eGJ2fzPGIjFDbzQPo1xtL9t8UdNCiFkU.cache +1 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h-/h-paFtnuvuXCitlu9RkKwtd01wTZ85uFXdeuWbAKkfA.cache +1 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h7/h7PdJc7WD_pMR3zsy0unfpLJ5eaQXdEs2-6tZOTDqxo.cache +0 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iV/iV3fh6WxdwfEgGkB2pwMRA_SCCQvc-m2qajISsYI0CA.cache +0 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iq/iq2GtOhe61su4HU3HYmCgHdNZ-oYdbfXcEDLakPZ8rU.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iy/iyfidHeD50i9-agD3MGfxD7S8YHAfdRGFr5ibIu4ut4.cache +1 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lZ/lZgZiiAsBaoL4Jp113upgQKw_CZ-tmIAJ7cwdBkVgA4.cache +3 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ns/nSNxLfPPOsSygihx5Va1O0nHBvrYNBLgAw3mUfS-MiU.cache +1 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oI/oIl3ZhCKx-9NoH-O5mvEaaKJle-PHumtCuLCQxIlK28.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oZ/oZoFF5k22C6pdrJDUhnQZw0Un1VAYs5L3ndYNW3_3nA.cache +3 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ok/ok_mqE9G9QoEC0-Zt5o6oGpAaFsYyKfqMav5MnTsX6I.cache +0 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p4/p4dmucZ_zwAKtbHzWvqAkxxoba_Bj4sGSYK6O88Uc70.cache +0 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qw/qwryXXP-w0d2pH8QRB8kapqCk8848jEsMfAK6Zi2Ch0.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vy/vyLWTgfRnLmx9FzyEV6eZXeJ5tvpiMp-TpRYwiMgmH4.cache +1 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wM/wMbVYWswUofRkOXJoKjSGFmk5Aupumk4F3LxgCivI88.cache +3 -0
  57. data/vendor/assets/javascripts/plugin.js +9 -1
  58. metadata +99 -3
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF
@@ -0,0 +1 @@
1
+ "%���f-�O�D�t� JX��'��j��m�>($
@@ -0,0 +1 @@
1
+ "%+�*�Y�Wf�N�o�>7��?�,�A%�
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/rails_sortable.js?type=application/javascript&pipeline=self&id=0bebc52f461989405f6383621d62ec35aa1f72f345d91b56c16b60e9f06acbeb:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=8fc84d56c8e3055f413704af996d3b92ace1decd7b54a3b0c6bdd2b83b4c0287:ET
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/rails_sortable.js?type=application/javascript&pipeline=self&id=ec0b497ab1b024a710fa97d767f71fd3acecf5f4af086f39cc3bed67c71514d9:ET
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=b496280bd93658300a2aca1c7eceec4a624f5a198af0fc04b7a307d3f94f8b00:ET
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=f3d0797b8d3b4d046fac67277970fe66edb5c5bfb41bd7f2fa0195503135382b:ET
@@ -0,0 +1 @@
1
+ "%'��RIv��VϷ �� �ݪ��x�T���V
@@ -0,0 +1 @@
1
+ "%�-�� �n�+Mr!� �pbq}������5U
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=2709c60b31b3ce1f5cec00cf1cf895e5b0a737a029f2f9b04a53efbf84876c4a:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=0e170ed84e873abac7bad991d8c8cd862d12e28c4f5c983dc998205b052afda0:ET
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=16b90e182b0914ef87617a28f1c6f3332e89d0f3ddf2dd5db08a0f3847de3e35:ET
@@ -0,0 +1 @@
1
+ "%�U�#)��i��- �w��2�����kb��L
@@ -0,0 +1 @@
1
+ "%K1D��O�y���8�L�EyĜ3xM���Y�����
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=a3e5761d73c1ec7d8029f420bc1479d986abf1d216518b17dd1db0a84d81a523:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=027e2c7abd07d522e8940adb47be56cfaccfd28d72acac81ba7fe084f37f2192:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/rails_sortable.js?type=application/javascript&pipeline=self&id=be936224640b98bfb789504231eb1b10b55b3ea0e9ab27442cf143c61264728f:ET
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/rails_sortable.js?type=application/javascript&pipeline=self&id=8401f51e098530657e6d9a9db83b6591363835a39470cda3c148556048403a7a:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=0c78f6109e9a51144abde5000021b5f55e339df92a1da0ede828cabce014999e:ET
@@ -0,0 +1 @@
1
+ "%P��%��r�N�/�a�FFa�Z���� �!ޜo
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=68ba1cecf42f3c2fa4df0deec405a9d18563cc445371413d4883f792f908f66e:ET
@@ -0,0 +1 @@
1
+ "%�U�#)��i��- �w��2�����kb��L
@@ -0,0 +1 @@
1
+ "%�ۯ��)�[� ��lo�`J�R�R�Q%L�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=fd4077cf59512de0beba8f365c61c04d468bdbc38543dbab4176ea322f17137a:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/rails_sortable.js?type=application/javascript&pipeline=self&id=cf0f2e10758c7d6c29dedccd5e343ef9a9701c0d24a9bc5cc89f5ae2eb81e63f:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF
@@ -11,10 +11,18 @@
11
11
  if (typeof options.update === 'function') {
12
12
  options.update(event, ui);
13
13
  }
14
- $.post("/sortable/reorder", $(this).sortable('serialize'));
14
+ $.post("/sortable/reorder", makePostData($(this)));
15
15
  }
16
16
 
17
17
  this.sortable(setting);
18
18
  };
19
19
 
20
+ var makePostData = function($sortable) {
21
+ var data = {}, klass, id;
22
+ $sortable.sortable('toArray').forEach(function(sortableId) {
23
+ [klass, id] = sortableId.split(/[-=_]/);
24
+ (data[klass] || (data[klass] = [])).push(id);
25
+ });
26
+ return { rails_sortable: data };
27
+ };
20
28
  })(jQuery);