mongoid_sortable_tree 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/mongoid_sortable_tree.coffee +11 -11
  4. data/lib/mongoid_sortable_tree/version.rb +1 -1
  5. data/test/dummy/app/assets/javascripts/tags.js +5 -1
  6. data/test/dummy/app/views/tags/index.html.erb +3 -1
  7. data/test/dummy/config/mongoid.yml +1 -1
  8. data/test/dummy/config/routes.rb +1 -1
  9. data/test/dummy/log/development.log +963 -0
  10. data/test/dummy/log/test.log +139 -0
  11. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-0HV0GSNwH4zG0knvIdhLteFlXREeE_o5kfNtAfcCdA.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-MOdNHU2iRqcLebfVgOtmm6Op-CBJkX7_9izvnk8-OI.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-WRT6rp5M7Vc4NoEEBpAUTiBRkOveF33n_Yhn470Vyk.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-ega40oPpR1k1z7UY-d0fwDgqUxW_lZ6Zgoxm-4USqs.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-pVx3gPojknu0AbxKwaR3Wae2FIQaBa-AexVO4SgzGw.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/0IybqBnS1jCY3gEYF2NmoSaIFp6QONpSMpicjTdYiQU.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/0syabnX8JNY965zZBjpZZhDzDKGJ3Sr4NobxC_nqx4M.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1TvcBiC8LC-bv0Q04KB2kgnFNjygkoxZFouL5m2Pzbo.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1lWHyPuxBbGEfZcnMATWvLOM7Rr5DebvZH25L8qfHQo.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1spSyD3OikScWv9J-BHxLwoIyoc50Ie4Wod4p2Li1x0.cache +2 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1z1VgvxpJbSMoVKPmi9aN9Weh6dswrnfv7QVlae8bJ8.cache +2 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/21LeFUk9TibRVQjHiT-8TRt67IESeBJRilh27NziMEA.cache +1 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/23R09nxlbuxYg-T5f8Pqz4G-gw59CYH0Z1Q2z8Dx4Rg.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2T6B2h37fWsL-7qQrh8yknozIYkSaTWlk0pgaooOpQ4.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2lcbWDtv9nIFoQG9Wo5y7ekmEnLADJ__j0GBLSCrA2g.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2y1Ro-xGCx4gLVceeTGeOleTnkKwTCByAWsVW1U4WfE.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/32dRrIsG64YyQaZMsIdvCtN6jSWMwifph9_D9dfal1g.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/37XRcH_p7zS-g1DBFtUbX4yQm7HCFgHIECYIVJOKxt4.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/39-6OUBF4YcnvVjFEGiblZr5ACe_-H6Z2BuAv2JYZ6w.cache +1 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/3cQMtZ1UFA7egJzJLiuA8wl5toaJQ7K7hrugObYYT7c.cache +2 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/3swldWQY1il2Y3d2G2MDHf-Md2PP121Qf4JOImhy5bQ.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/48HD9p8-cfOWznNNoi3zIbziLAa6_4GEyuTVwLC9obo.cache +1 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/4900aRfymwPYuHlrLaeTIQVm8RWk-EOYcYAgKdOOOwg.cache +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/4ac57j3KQHBp1y__tjbwnl0p8zbzzpvbh1dIApEEhyQ.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5L_QNqpgf1zrFbUihKEK_CmV_noxJSNz-t4K-gr0tm8.cache +3 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5WJltI7ryhkRfkUSosU9k7TqhzV2gcc9J748UrIx2ZQ.cache +1 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5Wlpx2-4ERa0FIQ2Zjdp6mQ9OC__H33SBvSBCvd1kZY.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5dwH57t4G1f3AjO-KHJaoIFi0EJkRkBH_whufzp2zyI.cache +2 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6-HYV4Je9iJkrW5tXQ4XXeMcE5nw6HqkFQ8lOFCPr08.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6L938BXMHrCxtQ-oomkliXYYqLdlGLM_0TfHV7j3zuw.cache +1 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6YB9Qem46KIN6c49prHt1J074vY_ixYhKzNiOIUL9sk.cache +96 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6_YMAF2Pe24TfDwR_dnjexDszjqIAm-8_8XDmMKSc9o.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6j14PziGP5Jhmtuk-3QSm98CbeGbcvV3PDSkDK7juZY.cache +2 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6qra6k98bkRDlZAfwlIwhJhWYfpslFLS6XkP0saIqhs.cache +1 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6zZYgtEEaAwH7JoY_2HFyp09ZIcxAdZxbN5FbczWhKU.cache +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7ZDe_ZWIuNNq_anrL61geXVF-RkYxpDaautJZ4PNRMU.cache +2 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7y4cMutUjvsRajuUH6chMkJxl_la57dX9JvdC419Hr8.cache +105 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/85OekZBZpa1yg03Fh-PPxjAmzNk4P-yd68m4Z86SnwE.cache +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/86wiUre96bScYh_FF1yzAas_gs1i59A33CuIF77tQlQ.cache +1 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8ATlRvc4bXB0cqab7YPr3824Tr__uGAOayc5YtvwcD0.cache +1 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8H6c2YzcMe7c0MRIvdecRx33es3zbve7WMn2wzbj698.cache +1 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8OuJKUXRDikNqR50Ya6IJuFjNu21xIiMlgehWBAvsi4.cache +2 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8eTlBYICdcBY2GZUyZosTlAPJ0BC-Ba2tFs-PWtX0HY.cache +1 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8kEZI4lIDr6hjtQb7g6kvXS2ktuV6N8JSJiUbj-dgx8.cache +1 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8la3CJts912md9oInRCOFZvw0KeRqnA4dpLNfFngDj8.cache +3 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/9sXB5T_AgQXak0PUrcp_mHVdDx1EH0hxVkFeqoqxyTE.cache +1 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/AluDS_0a78wiZR_Rkza4gIrfo_Mz2Yg2SXu_8R_h_M8.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/AxjixA6-9f4n8ME-cf9gJjeMmnC-Kxg5_nA4U1_hUfE.cache +1 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Be7YJLsrpsBNqxYahS_PJFm0qGwTlSCCgpLykubfT8E.cache +1 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Bo9sDc_-3C0NalWh9nO34IHUU0NKyyPXEv5LUgHiKBw.cache +1 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/C3-GmW_WSqr8Rjx_iv5TGEwbf5prtzzuNlmveOKM_bM.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/C7z4b6BoY-tVwJ00DC_F0XBEDP7aTPQKOVG245huh4o.cache +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Cv5EJ0VCocnwBh5hL4zQaEhXRI72stxzeryQ2xF32GQ.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DKzQtJDLcn9QpPRHLiBLT3ZFbU4TZyGwMjmHwUCBZkI.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DUAXEuuuw2IZVL8j_htt4re-g2f9asusn7DYyoEyCSk.cache +98 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DwXSTidHRczPUY0YP37TUqg4nJbMtiph46SE8zWFcec.cache +1 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DwyxZ7qJNPURvI7d9BwICZBS7LzE50wz9Z5LN5eo4CA.cache +2 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EN-_m7R7Fc0K7oqVD8qoKg83ReaQU8dgDLcfzLRCuRo.cache +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EQQd7fUflplFn1GAGyoOzIoS_FT3RxN2rNxyTW6pTfY.cache +1 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EVwSpiVM_Ou6acLUeBjY9goEOwTWQh64dwrz048_lck.cache +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EgKNg2d89Qs7wM_qilPe_LGvM41z1HPhiWTuPOFTVb8.cache +2 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Erjwjh9QeU2h6_Ckv-yQvmk08PpbPgFz019pqX7aVIs.cache +1 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/F1RpGZ90fbOvKy_PW9pw4yG5uBQyddUJkIOUTDuKcus.cache +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FPdQ-3txBt97XRBOks_axbLuL18RZ4NEKxdDJuSTU6Q.cache +2 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/F_56ccMcf3YRrclSzw6bLN-2HINrsuFKo92hoFYF888.cache +1 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Gun9qY1U39VFdzoML2EYrwOtzYuZeAQBxSTAcTTQxKg.cache +1 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/H7HBhMBhJ0PjB_eOK0UQBWAaEvhpESC2XOfKNKBTpkI.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HBXso8z4ZhVd1xH5KCjF-tMl1c3gUH1prIRsZPwzpjc.cache +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HIvhcEcy8kGdJxLanpidekvcJGeTNz6nbB87r08jnCA.cache +103 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HJcmchPkNmkMPoUh-mqXkh5YyouW3m6nSCo6W4JXZP8.cache +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/IPGXQQCD2AnwsjikA5a5l5AAhkqpO1FD9zVl5Eukdqk.cache +1 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/J4UKAv4K7j2WBMPxThZSJilhG9ZoTZXiRuRuIM4vKMY.cache +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JA9Gf1aBVqM66P-tc29_DKqifQUoJdSHDuPYTuLBV7U.cache +1 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JOaeOEkP615RFZqkkkbGmKPMivNPIfMFYeHm2qqGnmk.cache +2 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JSoC1HeWSCYOuGh0MeBLxv3Fh--RAOK-ZJqI2RnNNKc.cache +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JrCD0LQr5otr5iuVYvy94N2Ro20LLEqYhJ9R_0jwKf4.cache +1 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/K1SgUqnmoyX-dAmKrf38OaQEjXzHOkLTNrN3Wc6FeV8.cache +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/KQ8uO644HKTaoZ0kTmo2NfPmW_wQTPUjeMZSsgoy8x4.cache +1 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/KcaaHNmDMcnY45bm-6mpz0xIpCd59JodtgtEjJTqpcg.cache +1 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/KltXsy5Zh6r4nzw5qTO_7IjFM_RkArZXVA-2ktS4A4s.cache +3 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LJzDjyjymoPCmmbRIVvFnNj7L8vhCVKKogLc9GVyKYY.cache +2 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/M0Sa0psrHpkL0dIiCYtzW2bSH_XMbpzAW3u50Jxnz10.cache +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MPhOQixX32IGMHOJ-77q_w85-Ucr7TE0TstY8UJaCQ8.cache +1 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MQQW_Y6p-cACsqzoiLnX-IJfgPl4lKTMrObDFf_WmBg.cache +1 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/N-_1aBMWWrovDFoafhaGQjAkVzFq7YE5XGdqD7IoNCw.cache +2 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NCJG9F7gI-hlavcsxx4jeFTMbpN-99G1GN9QfeLU8tM.cache +1 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NJnXGgxUrlLHlC_8oqzTYaoIiHK3iqYuHXEGO3PMlEw.cache +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ne99CW1BmLLHeSJzz_xdEDIBmW8GC-8nA4af42obWqg.cache +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/PgRDRUnIqn2kfUXXt2E3_HA9uNsMc4DEzjsBKFplIQ4.cache +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QLSWeYxJjNFKY7Ru-Jb8GzTRcqw5HSbTmiu-tujZsvM.cache +2 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QTw2XjdtDxva6ofmQisCpMd3HLAysJ9WMcmN4gG1Efg.cache +1 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QVLqMgYzcF_yYZ2tLM221vVIL3ny01x6QPL1tm_uwMM.cache +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/R4c54fjgGChqD3yrcxNdJyy30-Fy7yrvkvsSPCPYgDI.cache +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RGZ1khl1M7d5zBTcua5ojzaDsaN4OiVhFHagrh4Xayc.cache +1 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RUfxq8D3oaH4bu_031Dz2Fb82fPH6imfY3HWCjGY90c.cache +2 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RcP_-JS5lUax56DITOimJJWyryrf9_AqIA31XKecNTQ.cache +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/S1PivaNFawelFjnmH0FnwvNqCUqB6hpN3PfZ6UZgr7Q.cache +1 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/SG6rjcj6LRXrPgwKr95B68IeHKnsiWBfLTYL2wN6LjE.cache +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/SfmJuOWJ1Enw48Nsib_oLzSvrbtwMkqygFlA-Z59EHE.cache +1 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/SnzY-_CRaRon_Lfmh0b6z_zOjBhvHfyCUlbGE1xW_hs.cache +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/TOUQkNZACmIqM2aaB31Tc3A7n6RB40E2uxnU4sRtgtA.cache +1 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VgQcvFtqYGDvZdYQYaGGKdmIPQBtleLpWo2vYW9WXOI.cache +2 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VtZtWDrWMHCbXqPA1j2dA_UlLdmNfsiJ7ipqqMjrctg.cache +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Vwc7D4WHaufErGsIeBBuA5c7tj2TjoUBdNokl3ksJgs.cache +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/W18YCk5hZnF_xtDGoJkriz1Ywb--fRvclATs8s-0eo4.cache +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/WVY64BVM_WSwMHlVbymmEhnVblfqTBq9gXSZws9bj7w.cache +99 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/WnTL8vAY4iSVQY2-OC5mTg3e6xH6KXAJLbuwPA-USV0.cache +1 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/WuFoBKQ-5EAQ4qW9p-Iiz4Iu8gbyoFn8kKAFvnYo0U0.cache +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/XE4vOvs4udVwnDTR80Uxmj8E-91ylNERM2EU0vF5QSQ.cache +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Y-_h6jGIGVTJtZSvyS6fANLACrl-m3WVnMomVDENGuI.cache +1 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Y1l1FE62hwAh8HcAOjmqYo-JsV03iVGpsjWjVUuexjI.cache +1 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YcFSD3aZf3HYL24-NaqYwrzz9cMW1jmUmG4Muqgz-U0.cache +2 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ycl1W3bSHE9zjTulbRUpNUxuCs_Ftm2DUbWVDtgsYN8.cache +2 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ypa_WEDy6Sp47Mo5rAeENYcbZdVgMtMfUgpcyp8m53E.cache +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZGsw7IZElLbT8HzLBYrAqNeb81JQ9Vkpx-0y3BpiwWo.cache +1 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_3KcouaHTpiwPrd2ktuUC-EqEbk79ut3NGMuReUX0a8.cache +101 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_Ug7le1NTNs_XHr-NBRJMXH2S_XOxvwRAfu7x1laGME.cache +1 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_lWoKL4VmFI3HPxrTGLKXwv6f9My9u5zJqL990j2hPE.cache +1 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_rw2s46VzILFWqa4gPD6AYo_RqLmPfQFCWYqYr5DgcA.cache +2 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_sIu05bZKrQs8BPymiitKvp6_ckxZRukaS7mqH50xw4.cache +2 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/b6QDTv-tnB42TBgho04O2sHCYsd3flNufaMIUZE1Iso.cache +2 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bOmywW1-7LErAcJUpFLZpBXDSFApkBXj45jWVZQY1Ag.cache +1 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/cNvHu4em4H9CNeEFoz2lOObbbsvXAQszojzu0s1kp1s.cache +1 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/cbAiNkExRCpgYNOmJNYuMWICW7wKt2_eS9YjVuUYlGY.cache +1 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ccJvdi4CLTIP6AICydDIANYpqR8AYPrAA9aNjwmVhyw.cache +1 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/cyYEgXu1E5u1b74wuQ3kijGfNe0TVcxhOu3-nx4U8-U.cache +1 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dDJluOvx-tdwKcmaxAge8jNnnCfNSjaIV7MI0n55wnk.cache +1 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/do_tNJOj7nX7B4yKv8IozRKZXKAfp9PH8gz73Ji0y-A.cache +1 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/eHTNaWizKMR3YaAJTyeN3V43u14wi5OmY_ixp1Y1RiU.cache +1 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/eK3O6QqMxLmjPHOvbd94y5CguH-sDz5orNgbYdBDsl0.cache +2 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/eY0pT6SQkSeJK63rGs5DluuJcMJyoPvu8Sfee4FcIv4.cache +105 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/edDOzOyDBdL-ILT2D3epERWQHdNaBzyn_rx4xatHmdU.cache +1 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fK8xKwPwmbU37gxgXP1VN0cY9g0xm_mrS3oj-UWaRiU.cache +1 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fVFpKVXbA25ytjL6Zp23HmLBiDlBxfN1qbP_D8AIqSw.cache +1 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fjJQqpcEfELzcB6V0ieXnjY2zc_Yse1-2XWK8pbSqr8.cache +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hDGwXC_rUK8hV5lgUsqH3DsnhD5tBm2OA1feaYhbsi8.cache +1 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i3LW2N_jAlSkZzz4TZLKTrsYWSD6F2gbwzSp1vlcg_k.cache +1 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/iZVQRrkdYA-2EK1p4IcEttC47bzph4qgevoFZg6ZxZc.cache +1 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i_to4G0G_oLDWXN1hTi6VV-pguaAkfSN87vC3IvX7Z0.cache +2 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/jUhlMAc-5531Vu74p-fOQrFgBLfa6oaM9TKhxIUE_KI.cache +1 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kFKVh36Zz6rg_Jnmgi9VS_GipUrXM2lX72L1AtSLKZg.cache +1 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kLIrMBvxyPY6fxho7jns90Rc34SdZKG2kXuywK85B_c.cache +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mW4iWNEi6BN-Zt7xgfxUR-qUCHS4YEc4SqSTd1DiPrg.cache +1 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mWp1yiCCzfbdq7gp9hQo3qstkWdPk6kYk5TDurBXkTI.cache +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mzm2XZ02YYvQl31USNjOfyaxbmogWSpMIEvK-13MwLg.cache +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/n0FmIYEiL_H4Rdn9FJ7Hcm9oq7QfD2Qvqvxbz9mCNhY.cache +1 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/nKwbk0oYwVhudFkWF78EmO8yDLeJHo7gQ0X7lbFUIlM.cache +2 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/njIIKID3PibQ9wz4jAbQmPWXHWez9iB4H4qxZRTpMUk.cache +1 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/o8U4w00lQIw6hEJgSInTKb5l3ci_mlvJWKpXO_uS9pw.cache +2 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/oIaF-n7uYcXkx0lCV5y1Mv2JY6RRNFoB8v1Y9vufb3k.cache +2 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/p4G53SBBATb1l4--kAIYVORg3F_et7YSgmT2zwbFd0E.cache +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/pbf5AUeJF2GdFvp3ILI0-Z0Cq7BjpmBeVU9_eq7DU-Y.cache +1 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ph17nHPguZgYv0qjLjMq7Gnd_tR40PvlfBCNuD5S1kA.cache +97 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/porN9V0r8lpJZ2WAeboTYa1bnG2pMG1trKvMF7sYXRA.cache +1 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qt1aaanK4dep1l54QxeZW7dzsUwA1ZdYAxJ2LaJaPdQ.cache +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/rhxK59rrB67ynokQoxFeoWzBfVRujzwDjvLSD1UShB0.cache +1 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/rm7HNGWld6oB04TRTNF671PvXdyxrQKFSt9u0OSPYTs.cache +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/s-vnUnMz7GAPKwIaRezBlDIhnt-t_Yc2IOwtusiQO7k.cache +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sQiYEjAezegATe9aZicB5CdpDDk2-ei2_fY1-O5PiMQ.cache +1 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sXJ8wWZ4bGTlsaoapKHbDI9SuiPNmSiNeQxPyG5Gdzw.cache +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sl2Obo6SjYpa7REmpUGhyxH1T5Kaih0iS1EaN_XnBJc.cache +1 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tBBb6EHZ17CdPorvaw9HA5Isp5emKHyv4w6dVYNeA64.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tQjX4I4pwnrtknPpWsTOQ92b-I_rJFmkRmniVx-Aoww.cache +1 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tjVhZOvCOx0_nP9jBKjtfs7Lo6UJmx9cS7UZnO3VEI0.cache +1 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ttqajwO8HhrZ3Fa6huTMcLeXhAoRC3ROR4ZoHdq_51s.cache +2 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/txJ5VztVP4qSat5UB0vEcVL7jOSE5BkJpwjDu7s8jbQ.cache +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/u3zehXrT4vrHpY9Na0G4uGcHpd26EmsR69bbOT57PJQ.cache +1 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uSlIbsDBVMA1-ybp92d1Mx0AGR0wwoTRrpvBClR60Rw.cache +1 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/v65ncv-yxOZGeX_dKSz6aehJ6biAGaPqRaQR2wqjaG0.cache +1 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/viajYuU3hp-5shHzTNi8RM9XBSWQaHG58pJgiT1uzVk.cache +105 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vp1yBAsKQLUdoAZkEqoqCfIAhxY6e2Kd8uxSyk8qsMI.cache +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/w9EkEUBZGRDqKYLNebGOrA-1bIh8tCBvfZDJXYqHiT0.cache +1 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/wGGGcuFWnjoSVpTUFjeSXxfHFi4_deeSD9B2JxVUDH4.cache +1 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xSZLzk7FQLPkSlRkQ9Ib_UQ5EXsTC_FHOarZGp9cSfs.cache +1 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xdK6V43TFhV2h7UcTH5epqOvX_n8lWYjlm3fgvk51Ks.cache +2 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xpuYNFnGpiO5oSjKMKSjR3vFw9DUfvH0IOB1VU3Vfz8.cache +1 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/yiEwDpZEeoKR8e7b0CVy5V-f1AACU2qQBMQmukydyEk.cache +105 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zZMsLSRwvUA0p8xE9xuNT2tTyP50CuiVOFXG3T2p3rQ.cache +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zcDz5_FBRqd16eHPpoOzr4B4tf6diKggoeqFpvdnYUg.cache +0 -0
  190. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/3fQQbFIWOutp36r9z4oL8-mHbCDi_drlTdlQbxn6f08.cache +1 -0
  191. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6YB9Qem46KIN6c49prHt1J074vY_ixYhKzNiOIUL9sk.cache +96 -0
  192. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9JkCqcFkns8hoM-neIac4qlFpaTdmkNvnXcG7xK2suk.cache +0 -0
  193. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FF5Y0nqJRIt1YvgSMFi4DPDynC44-4V-u_7nZdcaU-U.cache +1 -0
  194. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FduFXT5_i0OBuLusaqQAzZIRyPRcjVp1MXexGCYdSwY.cache +1 -0
  195. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/HqQVEDQDQEaNad9-ecE8DbJY61a2AzOFLnjGepIr8lg.cache +0 -0
  196. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IvlF7ZH65VdvTVLjx5tPDTUOhSqbcZoAmknBu_kp83c.cache +0 -0
  197. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ne99CW1BmLLHeSJzz_xdEDIBmW8GC-8nA4af42obWqg.cache +0 -0
  198. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UqIAfFjoURWFuuiXljXwCGwA8UzQdDIF_cpTriwH6Us.cache +0 -0
  199. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_sIu05bZKrQs8BPymiitKvp6_ckxZRukaS7mqH50xw4.cache +2 -0
  200. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/g_NuQ1_5SRRq3PhZmkMbV8xX3Tbx4iMnQ40_e2ICN9Q.cache +1 -0
  201. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/sGflhkdCCceChPsjy4PRmlrX795UDyhVifoTECTPYrA.cache +1 -0
  202. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tQjX4I4pwnrtknPpWsTOQ92b-I_rJFmkRmniVx-Aoww.cache +1 -0
  203. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yLDr6LmcQrVeFWkDOTbZlqPX7Ja0a-u5mANdUcd222Y.cache +2 -0
  204. data/test/features/can_crud_test.rb +8 -0
  205. metadata +388 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0d0b62424845c6976a125c591e60dc87865327
4
- data.tar.gz: 6eac520710d71a3b356e068bb712ad8d1796d6a2
3
+ metadata.gz: 43a9942e4150cca6be93fa0e51a3f4e90d597e53
4
+ data.tar.gz: 48b01476a8531fc8bad7119ddaedd7ef729fdce5
5
5
  SHA512:
6
- metadata.gz: b4a422a2285d2d69ea76edbb8fc2b03b96014e1424235442bf966474f6df3b49bb51b6e1624833eee1ddd3fd9f0c1d9fda543ee5189d810c93355447b26f0b47
7
- data.tar.gz: dded03a1b34e41273b2bb303c230c18b13e4a8a66a5cc4e6cd17696c6f287180b354cca4b85ff2178f1d822a001bb383569053c6d6e2dffe6b53844f0e8d2bf2
6
+ metadata.gz: a4e8d664b3cb914fbd3a8b029cfbdae5b02574f20fa0eaa984771e0b2a6472ccbd911be7006666fe9159714edb6c376f296aaf469990f5a3e000c156223f1e0e
7
+ data.tar.gz: b002db26c78134cc5699a007b9e2b978f0fea4ed96e535f21c1303e798575302e9198cec102fee8ef7b936e3141ce697059f4c8a6ba26ef31166dc7574bd870e
data/README.md CHANGED
@@ -110,7 +110,7 @@ Add these lines to `config/routes.rb`
110
110
  ```ruby
111
111
  resources :tags do
112
112
  collection do
113
- get 'check'
113
+ post 'check'
114
114
  end
115
115
  end
116
116
  ```
@@ -9,6 +9,8 @@ jQuery ->
9
9
  destroy_url: '/tags'
10
10
  index_url: '/tags'
11
11
  check_url: '/tags/check'
12
+ _new_node_id: ''
13
+ _target: ''
12
14
 
13
15
  mregeSettings: (optsArr) ->
14
16
  setting = @default_setting
@@ -25,14 +27,12 @@ jQuery ->
25
27
  idx++
26
28
  setting
27
29
 
28
- create: (parent_id,text) ->
29
- $.ajax
30
- url: @default_setting.create_url
31
- data: { "text": data, "parent_id": parent_id}
32
- type: 'POST'
33
-
30
+ create_node: (parent_node,node,position,callback,is_loaded) ->
31
+ $.jstree.reference(this.default_setting._target).create_node(parent_node,node,position,callback,is_loaded)
32
+
34
33
  init: (target,args) ->
35
34
  settings = @mregeSettings(args)
35
+ settings._target = target
36
36
  $(target).jstree
37
37
  'core':
38
38
  'animation': 0
@@ -43,19 +43,17 @@ jQuery ->
43
43
  $.ajax
44
44
  url: settings.check_url
45
45
  data: { "operation": operation, "node": node, "node_parent": node_parent, "info": info}
46
- type: 'GET'
46
+ type: 'POST'
47
47
  target: target
48
48
  node: node
49
49
  node_parent: node_parent
50
50
  ).then((data, textStatus, jqXHR) ->
51
51
  if textStatus == 'success'
52
52
  if data.operation == 'create_node'
53
- new_node_id = $('#'+this.node_parent.id).find("input[value='"+this.node.text+"']").closest('li').attr('id')
53
+ new_node_id = $('#'+settings._new_node_id)
54
54
  $.jstree.reference(this.target).set_id(new_node_id,data.id)
55
55
  if data.operation == 'copy_node'
56
56
  location.reload()
57
- # new_node_id = $('#'+this.node_parent.id).find("a:contains('"+ this.node.text+"')").closest('li').attr('id')
58
- # $.jstree.reference(this.target).set_id(new_node_id,data.id)
59
57
  true
60
58
  ).fail ->
61
59
  $.jstree.reference(this.target).refresh()
@@ -70,4 +68,6 @@ jQuery ->
70
68
  'state'
71
69
  'wholerow'
72
70
  'changed'
73
- ]
71
+ ]
72
+ $(target).on 'create_node.jstree', (event,data) ->
73
+ settings._new_node_id = data.node.id
@@ -1,3 +1,3 @@
1
1
  module MongoidSortableTree
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,5 +1,9 @@
1
1
  // Place all the behaviors and hooks related to the matching controller here.
2
2
  // All this logic will automatically be available in application.js.
3
3
  $(document).on('ready page:load', function() {
4
- return jstree_helper.init('#mongoid-sorable-js-tree');
4
+ jstree_helper.init('#mongoid-sorable-js-tree');
5
+
6
+ $('#add-root-node').on('click', function(){
7
+ jstree_helper.create_node('#',{text: 'test_add_root'})
8
+ })
5
9
  });
@@ -1,3 +1,5 @@
1
1
  <div id='mongoid-sorable-js-tree'>
2
2
  <%= build_server_tree @tags %>
3
- </div>
3
+ </div>
4
+
5
+ <a id='add-root-node' href='#'>AddRoot</a>
@@ -6,7 +6,7 @@ development:
6
6
  # Defines the name of the default database that Mongoid can connect to.
7
7
  # (required).
8
8
  # database: urcosme_recording # production
9
- database: mongoid_sortable_tree_development
9
+ database: urcosme_recording_development
10
10
  # Provides the hosts the default session can connect to. Must be an array
11
11
  # of host:port pairs. (required)
12
12
  hosts:
@@ -1,7 +1,7 @@
1
1
  Rails.application.routes.draw do
2
2
  resources :tags do
3
3
  collection do
4
- get 'check'
4
+ post 'check'
5
5
  end
6
6
  end
7
7
  # The priority is based upon order of creation: first created -> highest priority.