compass-jquery-plugin 0.3.0.beta.24 → 0.3.0.beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. data/README.textile +10 -9
  2. data/VERSION.yml +1 -1
  3. data/compass-jquery-plugin.gemspec +292 -288
  4. data/gem_tasks/ical.rake +85 -0
  5. data/gem_tasks/jqtouch.rake +1 -25
  6. data/gem_tasks/jrails.rake +127 -94
  7. data/gem_tasks/jstree.rake +2 -1
  8. data/gem_tasks/mobile.rake +33 -2
  9. data/gem_tasks/rubygems.rake +1 -1
  10. data/gem_tasks/tools.rake +66 -0
  11. data/lib/{compiler.jar → google-compiler-20100917.jar} +0 -0
  12. data/lib/handle_js_files.rb +27 -30
  13. data/lib/jquery/ical.rb +7 -0
  14. data/lib/jquery/{jqical → ical}/calendar.rb +5 -5
  15. data/lib/jquery/{jqical → ical}/event.rb +117 -117
  16. data/lib/jquery/{jqical → ical}/helpers/ui_event_helper.rb +1 -1
  17. data/lib/jquery/tools.rb +2 -0
  18. data/lib/js.jar +0 -0
  19. data/lib/jslint-check.js +36 -0
  20. data/lib/jslint.js +5500 -0
  21. data/templates/dynatree/jquery.dynatree.js +1170 -784
  22. data/templates/dynatree/jquery.dynatree.min.js +77 -67
  23. data/templates/emulators/emulators/blackberry.landscape.scss +1 -0
  24. data/templates/emulators/emulators/blackberry.portrait.scss +2 -2
  25. data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
  26. data/templates/emulators/emulators/iphone.landscape.scss +1 -0
  27. data/templates/emulators/emulators/iphone.portrait.png +0 -0
  28. data/templates/emulators/emulators/iphone.portrait.scss +2 -1
  29. data/templates/emulators/emulators/palm.landscape.scss +1 -0
  30. data/templates/emulators/emulators/palm.portrait.scss +3 -2
  31. data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
  32. data/templates/{jqical → ical}/app/views/shared/_ui_event_for.js.haml +0 -0
  33. data/templates/ical/config/initializers/ical.rb +7 -0
  34. data/templates/{jqical/jquery.jqical.js → ical/jquery.ical.js} +0 -0
  35. data/templates/{jqical/jquery.jqical.min.js → ical/jquery.ical.min.js} +0 -0
  36. data/templates/{jqical/jquery/jqical.scss → ical/jquery/ical.scss} +1 -1
  37. data/templates/{jqical/jquery/jqical → ical/jquery/ical}/calendar.png +0 -0
  38. data/templates/{jqical/jquery/jqical → ical/jquery/ical}/clock.png +0 -0
  39. data/templates/ical/manifest.rb +10 -0
  40. data/templates/jqtouch/config/initializers/jqtouch.rb +1 -1
  41. data/templates/jqtouch/manifest.rb +0 -261
  42. data/templates/jrails/config/initializers/jrails.rb +3 -3
  43. data/templates/jrails/{jquery-1.4.3.js → jquery-1.4.4.js} +102 -47
  44. data/templates/jrails/jquery-1.4.4.min.js +152 -0
  45. data/templates/jrails/lib/tasks/haml.rake +55 -0
  46. data/templates/jrails/manifest.rb +4 -2
  47. data/templates/jstree/jquery.jstree.js +148 -64
  48. data/templates/jstree/jquery.jstree.min.js +219 -215
  49. data/templates/mobile/config/initializers/mobile.rb +1 -1
  50. data/templates/jqtouch/jquery/touch/glyphish/Read me first - license.txt b/data/templates/mobile/glyphish/Read me first - → license.txt +0 -0
  51. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/01-refresh.png +0 -0
  52. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/02-redo.png +0 -0
  53. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/03-loopback.png +0 -0
  54. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/04-squiggle.png +0 -0
  55. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/05-shuffle.png +0 -0
  56. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/06-magnifying-glass.png +0 -0
  57. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/07-map-marker.png +0 -0
  58. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/08-chat.png +0 -0
  59. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/09-chat2.png +0 -0
  60. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/10-medical.png +0 -0
  61. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/100-coffee.png +0 -0
  62. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/101-gameplan.png +0 -0
  63. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/102-walk.png +0 -0
  64. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/103-map.png +0 -0
  65. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/104-index-cards.png +0 -0
  66. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/105-piano.png +0 -0
  67. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/106-sliders.png +0 -0
  68. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/107-widescreen.png +0 -0
  69. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/108-badge.png +0 -0
  70. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/109-chicken.png +0 -0
  71. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/11-clock.png +0 -0
  72. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/110-bug.png +0 -0
  73. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/111-user.png +0 -0
  74. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/112-group.png +0 -0
  75. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/113-navigation.png +0 -0
  76. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/114-balloon.png +0 -0
  77. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/115-bow-and-arrow.png +0 -0
  78. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/116-controller.png +0 -0
  79. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/117-todo.png +0 -0
  80. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/118-coathanger.png +0 -0
  81. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/119-piggybank.png +0 -0
  82. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/12-eye.png +0 -0
  83. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/120-headphones.png +0 -0
  84. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/121-lanscape.png +0 -0
  85. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/122-stats.png +0 -0
  86. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/123-id-card.png +0 -0
  87. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/124-bullhorn.png +0 -0
  88. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/125-food.png +0 -0
  89. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/126-moon.png +0 -0
  90. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/127-sock.png +0 -0
  91. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/128-bone.png +0 -0
  92. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/129-golf.png +0 -0
  93. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/13-target.png +0 -0
  94. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/130-dice.png +0 -0
  95. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/14-tag.png +0 -0
  96. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/15-tags.png +0 -0
  97. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/16-line-chart.png +0 -0
  98. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/17-bar-chart.png +0 -0
  99. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/18-envelope.png +0 -0
  100. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/19-gear.png +0 -0
  101. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/20-gear2.png +0 -0
  102. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/21-skull.png +0 -0
  103. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/22-skull-n-crossbones.png +0 -0
  104. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/23-bird.png +0 -0
  105. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/24-gift.png +0 -0
  106. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/25-weather.png +0 -0
  107. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/26-bandaid.png +0 -0
  108. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/27-planet.png +0 -0
  109. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/28-star.png +0 -0
  110. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/29-heart.png +0 -0
  111. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/30-key.png +0 -0
  112. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/31-ipod.png +0 -0
  113. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/32-iphone.png +0 -0
  114. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/33-cabinet.png +0 -0
  115. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/34-coffee.png +0 -0
  116. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/35-shopping-bag.png +0 -0
  117. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/36-toolbox.png +0 -0
  118. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/37-suitcase.png +0 -0
  119. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/38-airplane.png +0 -0
  120. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/39-spraycan.png +0 -0
  121. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/40-inbox.png +0 -0
  122. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/41-picture-frame.png +0 -0
  123. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/42-photos.png +0 -0
  124. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/43-film-roll.png +0 -0
  125. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/44-shoebox.png +0 -0
  126. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/45-movie1.png +0 -0
  127. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/46-movie2.png +0 -0
  128. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/47-fuel.png +0 -0
  129. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/48-fork-and-knife.png +0 -0
  130. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/49-battery.png +0 -0
  131. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/50-beaker.png +0 -0
  132. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/51-outlet.png +0 -0
  133. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/52-pinetree.png +0 -0
  134. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/53-house.png +0 -0
  135. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/54-lock.png +0 -0
  136. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/55-network.png +0 -0
  137. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/56-cloud.png +0 -0
  138. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/57-download.png +0 -0
  139. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/58-bookmark.png +0 -0
  140. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/59-flag.png +0 -0
  141. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/60-signpost.png +0 -0
  142. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/61-brightness.png +0 -0
  143. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/62-contrast.png +0 -0
  144. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/63-runner.png +0 -0
  145. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/64-zap.png +0 -0
  146. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/65-note.png +0 -0
  147. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/66-microphone.png +0 -0
  148. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/67-tshirt.png +0 -0
  149. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/68-paperclip.png +0 -0
  150. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/69-display.png +0 -0
  151. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/70-tv.png +0 -0
  152. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/71-compass.png +0 -0
  153. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/72-pin.png +0 -0
  154. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/73-radar.png +0 -0
  155. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/74-location.png +0 -0
  156. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/75-phone.png +0 -0
  157. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/76-baby.png +0 -0
  158. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/77-ekg.png +0 -0
  159. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/78-stopwatch.png +0 -0
  160. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/79-medical-bag.png +0 -0
  161. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/80-shopping-cart.png +0 -0
  162. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/81-dashboard.png +0 -0
  163. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/82-dogpaw.png +0 -0
  164. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/83-calendar.png +0 -0
  165. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/84-lightbulb.png +0 -0
  166. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/85-trophy.png +0 -0
  167. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/86-camera.png +0 -0
  168. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/87-wineglass.png +0 -0
  169. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/88-beermug.png +0 -0
  170. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/89-dumbbell.png +0 -0
  171. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/90-lifebuoy.png +0 -0
  172. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/91-beaker2.png +0 -0
  173. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/92-testtube.png +0 -0
  174. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/93-thermometer.png +0 -0
  175. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/94-pill.png +0 -0
  176. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/95-equalizer.png +0 -0
  177. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/96-book.png +0 -0
  178. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/97-puzzle.png +0 -0
  179. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/98-palette.png +0 -0
  180. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/99-umbrella.png +0 -0
  181. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/01-refresh.png +0 -0
  182. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/02-redo.png +0 -0
  183. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/03-loopback.png +0 -0
  184. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/04-squiggle.png +0 -0
  185. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/05-shuffle.png +0 -0
  186. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  187. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/07-map-marker.png +0 -0
  188. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/08-chat.png +0 -0
  189. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/09-chat2.png +0 -0
  190. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/10-medical.png +0 -0
  191. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/100-coffee.png +0 -0
  192. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/101-gameplan.png +0 -0
  193. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/102-walk.png +0 -0
  194. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/103-map.png +0 -0
  195. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/104-index-cards.png +0 -0
  196. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/105-piano.png +0 -0
  197. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/106-sliders.png +0 -0
  198. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/107-widescreen.png +0 -0
  199. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/108-badge.png +0 -0
  200. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/109-chicken.png +0 -0
  201. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/11-clock.png +0 -0
  202. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/110-bug.png +0 -0
  203. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/111-user.png +0 -0
  204. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/112-group.png +0 -0
  205. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/113-navigation.png +0 -0
  206. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/114-balloon.png +0 -0
  207. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  208. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/116-controller.png +0 -0
  209. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/117-todo.png +0 -0
  210. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/118-coathanger.png +0 -0
  211. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/119-piggybank.png +0 -0
  212. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/12-eye.png +0 -0
  213. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/120-headphones.png +0 -0
  214. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/121-lanscape.png +0 -0
  215. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/122-stats.png +0 -0
  216. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/123-id-card.png +0 -0
  217. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/124-bullhorn.png +0 -0
  218. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/125-food.png +0 -0
  219. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/126-moon.png +0 -0
  220. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/127-sock.png +0 -0
  221. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/128-bone.png +0 -0
  222. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/129-golf.png +0 -0
  223. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/13-target.png +0 -0
  224. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/130-dice.png +0 -0
  225. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/14-tag.png +0 -0
  226. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/15-tags.png +0 -0
  227. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/16-line-chart.png +0 -0
  228. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/17-bar-chart.png +0 -0
  229. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/18-envelope.png +0 -0
  230. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/19-gear.png +0 -0
  231. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/20-gear2.png +0 -0
  232. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/21-skull.png +0 -0
  233. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  234. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/23-bird.png +0 -0
  235. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/24-gift.png +0 -0
  236. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/25-weather.png +0 -0
  237. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/26-bandaid.png +0 -0
  238. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/27-planet.png +0 -0
  239. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/28-star.png +0 -0
  240. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/29-heart.png +0 -0
  241. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/30-key.png +0 -0
  242. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/31-ipod.png +0 -0
  243. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/32-iphone.png +0 -0
  244. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/33-cabinet.png +0 -0
  245. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/34-coffee.png +0 -0
  246. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/35-shopping-bag.png +0 -0
  247. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/36-toolbox.png +0 -0
  248. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/37-suitcase.png +0 -0
  249. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/38-airplane.png +0 -0
  250. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/39-spraycan.png +0 -0
  251. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/40-inbox.png +0 -0
  252. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/41-picture-frame.png +0 -0
  253. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/42-photos.png +0 -0
  254. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/43-film-roll.png +0 -0
  255. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/44-shoebox.png +0 -0
  256. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/45-movie1.png +0 -0
  257. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/46-movie2.png +0 -0
  258. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/47-fuel.png +0 -0
  259. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  260. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/49-battery.png +0 -0
  261. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/50-beaker.png +0 -0
  262. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/51-outlet.png +0 -0
  263. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/52-pinetree.png +0 -0
  264. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/53-house.png +0 -0
  265. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/54-lock.png +0 -0
  266. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/55-network.png +0 -0
  267. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/56-cloud.png +0 -0
  268. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/57-download.png +0 -0
  269. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/58-bookmark.png +0 -0
  270. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/59-flag.png +0 -0
  271. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/60-signpost.png +0 -0
  272. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/61-brightness.png +0 -0
  273. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/62-contrast.png +0 -0
  274. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/63-runner.png +0 -0
  275. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/64-zap.png +0 -0
  276. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/65-note.png +0 -0
  277. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/66-microphone.png +0 -0
  278. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/67-tshirt.png +0 -0
  279. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/68-paperclip.png +0 -0
  280. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/69-display.png +0 -0
  281. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/70-tv.png +0 -0
  282. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/71-compass.png +0 -0
  283. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/72-pin.png +0 -0
  284. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/73-radar.png +0 -0
  285. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/74-location.png +0 -0
  286. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/75-phone.png +0 -0
  287. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/76-baby.png +0 -0
  288. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/77-ekg.png +0 -0
  289. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/78-stopwatch.png +0 -0
  290. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/79-medical-bag.png +0 -0
  291. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/80-shopping-cart.png +0 -0
  292. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/81-dashboard.png +0 -0
  293. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/82-dogpaw.png +0 -0
  294. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/83-calendar.png +0 -0
  295. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/84-lightbulb.png +0 -0
  296. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/85-trophy.png +0 -0
  297. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/86-camera.png +0 -0
  298. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/87-wineglass.png +0 -0
  299. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/88-beermug.png +0 -0
  300. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/89-dumbbell.png +0 -0
  301. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/90-lifebuoy.png +0 -0
  302. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/91-beaker2.png +0 -0
  303. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/92-testtube.png +0 -0
  304. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/93-thermometer.png +0 -0
  305. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/94-pill.png +0 -0
  306. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/95-equalizer.png +0 -0
  307. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/96-book.png +0 -0
  308. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/97-puzzle.png +0 -0
  309. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/98-palette.png +0 -0
  310. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/99-umbrella.png +0 -0
  311. data/templates/mobile/jquery.mobile.js +380 -179
  312. data/templates/mobile/jquery.mobile.min.js +3 -3
  313. data/templates/mobile/jquery/mobile/_base.scss +9 -10
  314. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  315. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  316. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  317. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  318. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  319. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  320. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  321. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  322. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  323. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  324. data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
  325. data/templates/mobile/manifest.rb +262 -2
  326. data/templates/{jqtools/config/initializers/jqtools.rb → tools/config/initializers/tools.rb} +2 -2
  327. data/templates/{jqtools → tools}/jquery.tools.js +0 -0
  328. data/templates/{jqtools → tools}/jquery.tools.min.js +0 -0
  329. data/templates/tools/lib/tasks/jquery.tools.rake +43 -0
  330. data/templates/tools/manifest.rb +7 -0
  331. metadata +293 -289
  332. data/gem_tasks/jqical.rake +0 -86
  333. data/gem_tasks/jqtools.rake +0 -60
  334. data/lib/jquery/jqical.rb +0 -7
  335. data/lib/jquery/jqtools.rb +0 -2
  336. data/templates/jqical/config/initializers/jqical.rb +0 -7
  337. data/templates/jqical/manifest.rb +0 -10
  338. data/templates/jqtools/manifest.rb +0 -6
  339. data/templates/jrails/jquery-1.4.3.min.js +0 -152
  340. data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
  341. data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
@@ -0,0 +1,55 @@
1
+ require 'fileutils'
2
+
3
+ namespace :haml do
4
+ desc "Convert .erb views to haml and stylesheets to sass"
5
+ task :from_erb do
6
+ puts ".erb to .haml started"
7
+ path = File.join(RAILS_ROOT, 'app', 'views')
8
+ puts path
9
+ Dir["#{path}/**/*.erb"].each do |file|
10
+ system "html2haml -x #{file} #{file.gsub(/\.erb$/, '.haml')}"
11
+ puts "Converted: #{file}"
12
+ end
13
+ path = File.join(RAILS_ROOT, 'public', 'stylesheets')
14
+ puts path
15
+ Dir["#{path}/**/*.css"].each do |file|
16
+ next unless /\/compiled\/$/ =~ file
17
+ system "css2sass #{file} #{file.gsub(/\.css$/, '.sass')}"
18
+ puts "Converted: #{file}"
19
+ end
20
+ puts ".erb to .haml finished"
21
+ end
22
+
23
+ desc "Convert .html views to haml and stylesheets to sass"
24
+ task :from_html do
25
+ puts ".html to .haml started"
26
+ path = File.join(RAILS_ROOT, 'app', 'views')
27
+ puts path
28
+ Dir["#{path}/**/*.html"].each do |file|
29
+ system "html2haml -x #{file} #{file.gsub(/\.html$/, '.html.haml')}"
30
+ puts "Converted: #{file}"
31
+ end
32
+ Dir["#{path}/**/*.css"].each do |file|
33
+ system "sass-convert -F scss -T scss #{file} #{file.gsub(/\.css$/, '.scss')}"
34
+ puts "Converted: #{file}"
35
+ end
36
+ puts ".html to .haml finished"
37
+ end
38
+
39
+ desc "Convert .html views to .html.haml and .js.haml and stylesheets to sass"
40
+ task :from_demo do
41
+ puts "Demo to .haml started"
42
+ path = File.join(RAILS_ROOT, 'app', 'views')
43
+ puts path
44
+ Dir["#{path}/**/*.html"].each do |file|
45
+ system "html2haml -x #{file} #{file.gsub(/\.html$/, '.html.haml')}"
46
+ system "html2haml -x #{file} #{file.gsub(/\.html$/, '.js.haml')}"
47
+ puts "Converted: #{file}"
48
+ end
49
+ Dir["#{path}/**/*.css"].each do |file|
50
+ system "sass-convert -F scss -T scss #{file} #{file.gsub(/\.css$/, '.scss')}"
51
+ puts "Converted: #{file}"
52
+ end
53
+ puts "Demo to .haml finished"
54
+ end
55
+ end
@@ -2,10 +2,12 @@
2
2
  # Install with: compass install jquery/jrails . --force
3
3
 
4
4
  file 'config/initializers/jrails.rb'
5
+ file 'lib/tasks/haml.rake'
6
+ file 'lib/tasks/haml.rake'
5
7
  javascript 'jrails.js'
6
8
  javascript 'jrails.min.js'
7
- javascript 'jquery-1.4.3.js'
8
- javascript 'jquery-1.4.3.min.js'
9
+ javascript 'jquery-1.4.4.js'
10
+ javascript 'jquery-1.4.4.min.js'
9
11
  javascript 'jquery.compat-1.3.js'
10
12
  javascript 'jquery.compat-1.3.min.js'
11
13
  javascript 'jquery.bgiframe.js'
@@ -8,8 +8,8 @@
8
8
  * http://www.opensource.org/licenses/mit-license.php
9
9
  * http://www.gnu.org/licenses/gpl.html
10
10
  *
11
- * $Date: 2010-10-19 17:28:14 +0200 (Di, 19. Okt 2010) $
12
- * $Revision: 226 $
11
+ * $Date: 2010-11-04 11:27:14 +0100 (Do, 04. Nov 2010) $
12
+ * $Revision: 232 $
13
13
  */
14
14
 
15
15
  /*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */
@@ -19,11 +19,17 @@
19
19
 
20
20
  // top wrapper to prevent multiple inclusion (is this OK?)
21
21
  (function () { if(jQuery && jQuery.jstree) { return; }
22
- var is_ie6 = false, is_ie7 = false, is_ff2 = false;
22
+ var is_ie6 = false, is_ie7 = false, is_ff2 = false;
23
+
23
24
 
24
- // Common functions not related to jsTree
25
- // decided to move them to a `vakata` "namespace"
25
+
26
+
27
+ /*
28
+ * jsTree core
29
+ */
26
30
  (function ($) {
31
+ // Common functions not related to jsTree
32
+ // decided to move them to a `vakata` "namespace"
27
33
  $.vakata = {};
28
34
  // CSS related functions
29
35
  $.vakata.css = {
@@ -94,13 +100,7 @@
94
100
  }
95
101
  }
96
102
  };
97
- })(jQuery);
98
-
99
103
 
100
- /*
101
- * jsTree core
102
- */
103
- (function ($) {
104
104
  // private variables
105
105
  var instances = [], // instance array (used by $.jstree.reference/create/focused)
106
106
  focused_instance = -1, // the index in the instance array of the currently focused instance
@@ -268,8 +268,6 @@
268
268
  // set the prototype for all instances
269
269
  $.jstree._fn = $.jstree._instance.prototype = {};
270
270
 
271
- // css functions - used internally
272
-
273
271
  // load the css when DOM is ready
274
272
  $(function() {
275
273
  // code is copied from jQuery ($.browser is deprecated + there is a bug in IE)
@@ -983,6 +981,16 @@
983
981
  * This plugins handles selecting/deselecting/hovering/dehovering nodes
984
982
  */
985
983
  (function ($) {
984
+ /*
985
+ DESELECT ON OUTSIDE CLICK
986
+ var _this = this;
987
+ $(document).bind("click", function (e) {
988
+ if(!$(e.target).parents(".jstree:eq(0)").length) {
989
+ // $.jstree._focused().deselect_all();
990
+ _this.deselect_all();
991
+ }
992
+ });
993
+ */
986
994
  var scrollbar_width, e1, e2;
987
995
  $(function() {
988
996
  if (/msie/.test(navigator.userAgent.toLowerCase())) {
@@ -1052,7 +1060,7 @@
1052
1060
  clk.each(function () { _this.deselect_node(this); });
1053
1061
  if(s && clk.length) {
1054
1062
  data.rslt.prev.each(function () {
1055
- if(this.parentNode) { _this.select_node(this); }
1063
+ if(this.parentNode) { _this.select_node(this); return false; /* if return false is removed all prev nodes will be selected */}
1056
1064
  });
1057
1065
  }
1058
1066
  }, this))
@@ -1097,6 +1105,7 @@
1097
1105
  s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\."); });
1098
1106
  // this.deselect_all(); WHY deselect, breaks plugin state notifier?
1099
1107
  $.each(s, function (i, val) { if(val && val !== "#") { _this.select_node(val); } });
1108
+ this.data.ui.selected = this.data.ui.selected.filter(function () { return this.parentNode; });
1100
1109
  this.__callback();
1101
1110
  },
1102
1111
  refresh : function (obj) {
@@ -1234,7 +1243,7 @@
1234
1243
  })(jQuery);
1235
1244
 
1236
1245
 
1237
- /*
1246
+ /*
1238
1247
  * jsTree CRRM plugin
1239
1248
  * Handles creating/renaming/removing/moving nodes by user interaction.
1240
1249
  */
@@ -1628,7 +1637,7 @@
1628
1637
 
1629
1638
 
1630
1639
  /*
1631
- * jsTree JSON 1.0
1640
+ * jsTree JSON plugin
1632
1641
  * The JSON data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
1633
1642
  */
1634
1643
  (function ($) {
@@ -1662,7 +1671,7 @@
1662
1671
  obj = this._get_node(obj);
1663
1672
  var s = this._get_settings().json_data;
1664
1673
  if(obj && obj !== -1 && s.progressive_unload && ($.isFunction(s.data) || !!s.ajax)) {
1665
- $.removeData(obj, "jstree-children");
1674
+ obj.removeData("jstree-children");
1666
1675
  }
1667
1676
  return this.__call_old();
1668
1677
  },
@@ -1676,7 +1685,7 @@
1676
1685
  d = this._parse_json(obj.data("jstree-children"), obj);
1677
1686
  if(d) {
1678
1687
  obj.append(d);
1679
- if(!s.progressive_unload) { $.removeData(obj, "jstree-children"); }
1688
+ if(!s.progressive_unload) { obj.removeData("jstree-children"); }
1680
1689
  }
1681
1690
  this.clean_node(obj);
1682
1691
  if(s_call) { s_call.call(this); }
@@ -1699,14 +1708,14 @@
1699
1708
  }
1700
1709
  else {
1701
1710
  obj.children("a.jstree-loading").removeClass("jstree-loading");
1702
- $.removeData(obj, "jstree-is-loading");
1711
+ obj.removeData("jstree-is-loading");
1703
1712
  if(s.correct_state) { this.correct_state(obj); }
1704
1713
  }
1705
1714
  if(e_call) { e_call.call(this); }
1706
1715
  }
1707
1716
  else {
1708
1717
  if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
1709
- else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); $.removeData(obj, "jstree-is-loading"); }
1718
+ else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree-is-loading"); }
1710
1719
  this.clean_node(obj);
1711
1720
  if(s_call) { s_call.call(this); }
1712
1721
  }
@@ -1731,7 +1740,7 @@
1731
1740
  if(ef) { ef.call(this, x, t, e); }
1732
1741
  if(obj != -1 && obj.length) {
1733
1742
  obj.children("a.jstree-loading").removeClass("jstree-loading");
1734
- $.removeData(obj, "jstree-is-loading");
1743
+ obj.removeData("jstree-is-loading");
1735
1744
  if(t === "success" && s.correct_state) { this.correct_state(obj); }
1736
1745
  }
1737
1746
  else {
@@ -1748,7 +1757,7 @@
1748
1757
  d = this._parse_json(d, obj);
1749
1758
  if(d) {
1750
1759
  if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
1751
- else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); $.removeData(obj, "jstree-is-loading"); }
1760
+ else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree-is-loading"); }
1752
1761
  this.clean_node(obj);
1753
1762
  if(s_call) { s_call.call(this); }
1754
1763
  }
@@ -1761,7 +1770,7 @@
1761
1770
  }
1762
1771
  else {
1763
1772
  obj.children("a.jstree-loading").removeClass("jstree-loading");
1764
- $.removeData(obj, "jstree-is-loading");
1773
+ obj.removeData("jstree-is-loading");
1765
1774
  if(s.correct_state) {
1766
1775
  this.correct_state(obj);
1767
1776
  if(s_call) { s_call.call(this); }
@@ -2046,7 +2055,6 @@
2046
2055
  })(jQuery);
2047
2056
 
2048
2057
 
2049
-
2050
2058
  /*
2051
2059
  * jsTree cookies plugin
2052
2060
  * Stores the currently opened/selected nodes in a cookie and then restores them
@@ -2344,6 +2352,8 @@
2344
2352
  if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
2345
2353
  if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
2346
2354
  if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
2355
+ if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); }
2356
+ if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); }
2347
2357
  if($.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
2348
2358
  $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
2349
2359
  }
@@ -2520,7 +2530,7 @@
2520
2530
  },
2521
2531
  defaults : {
2522
2532
  copy_modifier : "ctrl",
2523
- check_timeout : 200,
2533
+ check_timeout : 100,
2524
2534
  open_timeout : 500,
2525
2535
  drop_target : ".jstree-drop",
2526
2536
  drop_check : function (data) { return true; },
@@ -2757,7 +2767,7 @@
2757
2767
  }
2758
2768
 
2759
2769
  this.get_container()
2760
- .bind("open_node.jstree create_node.jstree clean_node.jstree", $.proxy(function (e, data) {
2770
+ .bind("open_node.jstree create_node.jstree clean_node.jstree refresh.jstree", $.proxy(function (e, data) {
2761
2771
  this._prepare_checkboxes(data.rslt.obj);
2762
2772
  }, this))
2763
2773
  .bind("loaded.jstree", $.proxy(function (e) {
@@ -2813,14 +2823,20 @@
2813
2823
  else {
2814
2824
  $t.children(":checkbox").addClass("jstree-real-checkbox");
2815
2825
  }
2816
- if(c === "jstree-checked") { $t.children(":checkbox").attr("checked","checked"); }
2826
+ if(c === "jstree-checked") {
2827
+ $t.children(":checkbox").attr("checked","checked");
2828
+ }
2829
+ }
2830
+ if(c === "jstree-checked" && !ts) {
2831
+ $t.find("li").addClass("jstree-checked");
2817
2832
  }
2818
2833
  });
2819
2834
  });
2820
2835
  if(!ts) {
2821
2836
  if(obj.length === 1 && obj.is("li")) { this._repair_state(obj); }
2822
- else if(obj.is("li")) { obj.each(function () { _this._repair_state(this); }); }
2837
+ if(obj.is("li")) { obj.each(function () { _this._repair_state(this); }); }
2823
2838
  else { obj.find("> ul > li").each(function () { _this._repair_state(this); }); }
2839
+ obj.find(".jstree-checked").parent().parent().each(function () { _this._repair_state(this); });
2824
2840
  }
2825
2841
  },
2826
2842
  change_state : function (obj, state) {
@@ -2906,7 +2922,7 @@
2906
2922
  },
2907
2923
  uncheck_all : function () {
2908
2924
  var _this = this,
2909
- coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container().children("li");
2925
+ coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
2910
2926
  coll.each(function () {
2911
2927
  _this.change_state(this, true);
2912
2928
  });
@@ -2974,7 +2990,7 @@
2974
2990
 
2975
2991
 
2976
2992
  /*
2977
- * jsTree XML 1.0
2993
+ * jsTree XML plugin
2978
2994
  * The XML data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
2979
2995
  */
2980
2996
  (function ($) {
@@ -3068,7 +3084,7 @@
3068
3084
  ' <xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' +
3069
3085
  ' <xsl:text>&#xa0;</xsl:text>' +
3070
3086
  ' </ins>' +
3071
- ' <xsl:copy-of select="./child::node()" />' + // was <xsl:value-of select="current()" />
3087
+ ' <xsl:copy-of select="./child::node()" />' +
3072
3088
  ' </a>' +
3073
3089
  ' </xsl:for-each>' +
3074
3090
  ' <xsl:if test="$children or @hasChildren"><xsl:call-template name="nodes"><xsl:with-param name="node" select="current()" /></xsl:call-template></xsl:if>' +
@@ -3133,7 +3149,7 @@
3133
3149
  ' <xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' +
3134
3150
  ' <xsl:text>&#xa0;</xsl:text>' +
3135
3151
  ' </ins>' +
3136
- ' <xsl:copy-of select="./child::node()" />' + // was <xsl:value-of select="current()" />
3152
+ ' <xsl:copy-of select="./child::node()" />' +
3137
3153
  ' </a>' +
3138
3154
  ' </xsl:for-each>' +
3139
3155
  ' <xsl:if test="$children">' +
@@ -3186,14 +3202,14 @@
3186
3202
  if(d.length > 10) {
3187
3203
  d = $(d);
3188
3204
  if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
3189
- else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); $.removeData(obj, "jstree-is-loading"); }
3205
+ else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree-is-loading"); }
3190
3206
  if(s.clean_node) { this.clean_node(obj); }
3191
3207
  if(s_call) { s_call.call(this); }
3192
3208
  }
3193
3209
  else {
3194
3210
  if(obj && obj !== -1) {
3195
3211
  obj.children("a.jstree-loading").removeClass("jstree-loading");
3196
- $.removeData(obj, "jstree-is-loading");
3212
+ obj.removeData("jstree-is-loading");
3197
3213
  if(s.correct_state) {
3198
3214
  this.correct_state(obj);
3199
3215
  if(s_call) { s_call.call(this); }
@@ -3237,7 +3253,7 @@
3237
3253
  if(ef) { ef.call(this, x, t, e); }
3238
3254
  if(obj !== -1 && obj.length) {
3239
3255
  obj.children("a.jstree-loading").removeClass("jstree-loading");
3240
- $.removeData(obj, "jstree-is-loading");
3256
+ obj.removeData("jstree-is-loading");
3241
3257
  if(t === "success" && s.correct_state) { this.correct_state(obj); }
3242
3258
  }
3243
3259
  else {
@@ -3258,14 +3274,14 @@
3258
3274
  if(d.length > 10) {
3259
3275
  d = $(d);
3260
3276
  if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
3261
- else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); $.removeData(obj, "jstree-is-loading"); }
3277
+ else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree-is-loading"); }
3262
3278
  if(s.clean_node) { this.clean_node(obj); }
3263
3279
  if(s_call) { s_call.call(this); }
3264
3280
  }
3265
3281
  else {
3266
3282
  if(obj && obj !== -1) {
3267
3283
  obj.children("a.jstree-loading").removeClass("jstree-loading");
3268
- $.removeData(obj, "jstree-is-loading");
3284
+ obj.removeData("jstree-is-loading");
3269
3285
  if(s.correct_state) {
3270
3286
  this.correct_state(obj);
3271
3287
  if(s_call) { s_call.call(this); }
@@ -3346,7 +3362,7 @@
3346
3362
  result += ' icon="' + tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"") + '"';
3347
3363
  }
3348
3364
  if(tmp1.children("ins").get(0).style.backgroundImage.length) {
3349
- result += ' icon="' + tmp1.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","") + '"';
3365
+ result += ' icon="' + tmp1.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","").replace(/'/ig,"").replace(/"/ig,"") + '"';
3350
3366
  }
3351
3367
  result += ">";
3352
3368
  result += "<![CDATA[" + _this.get_text(tmp1, lang) + "]]>";
@@ -3580,7 +3596,7 @@
3580
3596
  };
3581
3597
  $(function () {
3582
3598
  var css_string = '' +
3583
- '#vakata-contextmenu { display:block; visibility:hidden; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' +
3599
+ '#vakata-contextmenu { display:block; visibility:hidden; left:0; top:-200px; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' +
3584
3600
  '#vakata-contextmenu ul { min-width:180px; *width:180px; } ' +
3585
3601
  '#vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } ' +
3586
3602
  '#vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } ' +
@@ -3792,6 +3808,7 @@
3792
3808
  d = o && o !== -1 && o.length ? o.data("jstree") : false;
3793
3809
  if(d && d.types && d.types[data.func] === false) { e.stopImmediatePropagation(); return false; }
3794
3810
  if($.inArray(data.func, this.data.types.attach_to) !== -1) {
3811
+ if(!data.args[0] || (!data.args[0].tagName && !data.args[0].jquery)) { return; }
3795
3812
  s = this._get_settings().types.types;
3796
3813
  t = this._get_type(data.args[0]);
3797
3814
  if(
@@ -3963,7 +3980,7 @@
3963
3980
 
3964
3981
 
3965
3982
  /*
3966
- * jsTree HTML data 1.0
3983
+ * jsTree HTML plugin
3967
3984
  * The HTML data store. Datastores are build by replacing the `load_node` and `_is_loaded` functions.
3968
3985
  */
3969
3986
  (function ($) {
@@ -4002,14 +4019,14 @@
4002
4019
  d = $(d);
4003
4020
  if(!d.is("ul")) { d = $("<ul />").append(d); }
4004
4021
  if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
4005
- else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); $.removeData(obj, "jstree-is-loading"); }
4022
+ else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree-is-loading"); }
4006
4023
  this.clean_node(obj);
4007
4024
  if(s_call) { s_call.call(this); }
4008
4025
  }
4009
4026
  else {
4010
4027
  if(obj && obj !== -1) {
4011
4028
  obj.children("a.jstree-loading").removeClass("jstree-loading");
4012
- $.removeData(obj, "jstree-is-loading");
4029
+ obj.removeData("jstree-is-loading");
4013
4030
  if(s.correct_state) {
4014
4031
  this.correct_state(obj);
4015
4032
  if(s_call) { s_call.call(this); }
@@ -4054,7 +4071,7 @@
4054
4071
  if(ef) { ef.call(this, x, t, e); }
4055
4072
  if(obj != -1 && obj.length) {
4056
4073
  obj.children("a.jstree-loading").removeClass("jstree-loading");
4057
- $.removeData(obj, "jstree-is-loading");
4074
+ obj.removeData("jstree-is-loading");
4058
4075
  if(t === "success" && s.correct_state) { this.correct_state(obj); }
4059
4076
  }
4060
4077
  else {
@@ -4072,14 +4089,14 @@
4072
4089
  d = $(d);
4073
4090
  if(!d.is("ul")) { d = $("<ul />").append(d); }
4074
4091
  if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
4075
- else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); $.removeData(obj, "jstree-is-loading"); }
4092
+ else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree-is-loading"); }
4076
4093
  this.clean_node(obj);
4077
4094
  if(s_call) { s_call.call(this); }
4078
4095
  }
4079
4096
  else {
4080
4097
  if(obj && obj !== -1) {
4081
4098
  obj.children("a.jstree-loading").removeClass("jstree-loading");
4082
- $.removeData(obj, "jstree-is-loading");
4099
+ obj.removeData("jstree-is-loading");
4083
4100
  if(s.correct_state) {
4084
4101
  this.correct_state(obj);
4085
4102
  if(s_call) { s_call.call(this); }
@@ -4227,8 +4244,7 @@
4227
4244
  .replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"")
4228
4245
  .indexOf("ui-icon-") === -1;
4229
4246
  }).removeClass(s.item_clsd + " " + s.item_open).addClass(s.item_leaf || "jstree-no-icon");
4230
- }
4231
- },
4247
+ } },
4232
4248
  defaults : {
4233
4249
  "opened" : "ui-icon-triangle-1-se",
4234
4250
  "closed" : "ui-icon-triangle-1-e",
@@ -4250,7 +4266,6 @@
4250
4266
  })(jQuery);
4251
4267
 
4252
4268
 
4253
-
4254
4269
  /*
4255
4270
  * jsTree unique plugin
4256
4271
  * Forces different names amongst siblings (still a bit experimental)
@@ -4330,7 +4345,7 @@
4330
4345
 
4331
4346
  /*
4332
4347
  * jsTree radio plugin
4333
- * Inserts radioes in front of every node
4348
+ * Inserts radios in front of every node
4334
4349
  * Depends on the ui plugin
4335
4350
  * DOES NOT WORK NICELY WITH MULTITREE DRAG'N'DROP
4336
4351
  */
@@ -4344,11 +4359,11 @@
4344
4359
  }
4345
4360
 
4346
4361
  this.get_container()
4347
- .bind("open_node.jstree create_node.jstree clean_node.jstree", $.proxy(function (e, data) {
4348
- this._prepare_radioes(data.rslt.obj);
4362
+ .bind("open_node.jstree create_node.jstree clean_node.jstree refresh.jstree", $.proxy(function (e, data) {
4363
+ this._prepare_radios(data.rslt.obj);
4349
4364
  }, this))
4350
4365
  .bind("loaded.jstree", $.proxy(function (e) {
4351
- this._prepare_radioes();
4366
+ this._prepare_radios();
4352
4367
  }, this))
4353
4368
  .delegate( (this.data.ui && this.data.radio.noui ? "a" : "ins.jstree-radio") , "click.jstree", $.proxy(function (e) {
4354
4369
  e.preventDefault();
@@ -4367,9 +4382,9 @@
4367
4382
  defaults : {
4368
4383
  override_ui : false,
4369
4384
  two_state : false,
4370
- real_radioes : false,
4385
+ real_radios : false,
4371
4386
  checked_parent_open : true,
4372
- real_radioes_names : function (n) { return [ ("check_" + (n[0].id || Math.ceil(Math.random() * 10000))) , 1]; }
4387
+ real_radios_names : function (n) { return [ ("check_" + (n[0].id || Math.ceil(Math.random() * 10000))) , 1]; }
4373
4388
  },
4374
4389
  __destroy : function () {
4375
4390
  this.get_container()
@@ -4382,10 +4397,10 @@
4382
4397
  this.check_node(n, false);
4383
4398
  }
4384
4399
  },
4385
- _prepare_radioes : function (obj) {
4400
+ _prepare_radios : function (obj) {
4386
4401
  obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
4387
4402
  if(obj === false) { return; } // added for removing root nodes
4388
- var c, _this = this, t, ts = this._get_settings().radio.two_state, rc = this._get_settings().radio.real_radioes, rcn = this._get_settings().radio.real_radioes_names;
4403
+ var c, _this = this, t, ts = this._get_settings().radio.two_state, rc = this._get_settings().radio.real_radios, rcn = this._get_settings().radio.real_radios_names;
4389
4404
  obj.each(function () {
4390
4405
  t = $(this);
4391
4406
  c = t.is("li") && (t.hasClass("jstree-checked") || (rc && t.children(":checked").length)) ? "jstree-checked" : "jstree-unchecked";
@@ -4400,19 +4415,25 @@
4400
4415
  else {
4401
4416
  $t.children(":radio").addClass("jstree-real-radio");
4402
4417
  }
4403
- if(c === "jstree-checked") { $t.children(":radio").attr("checked","checked"); }
4418
+ if(c === "jstree-checked") {
4419
+ $t.children(":radio").attr("checked","checked");
4420
+ }
4421
+ }
4422
+ if(c === "jstree-checked" && !ts) {
4423
+ $t.find("li").addClass("jstree-checked");
4404
4424
  }
4405
4425
  });
4406
4426
  });
4407
4427
  if(!ts) {
4408
4428
  if(obj.length === 1 && obj.is("li")) { this._repair_state(obj); }
4409
- else if(obj.is("li")) { obj.each(function () { _this._repair_state(this); }); }
4429
+ if(obj.is("li")) { obj.each(function () { _this._repair_state(this); }); }
4410
4430
  else { obj.find("> ul > li").each(function () { _this._repair_state(this); }); }
4431
+ obj.find(".jstree-checked").parent().parent().each(function () { _this._repair_state(this); });
4411
4432
  }
4412
4433
  },
4413
4434
  change_state : function (obj, state) {
4414
4435
  obj = this._get_node(obj);
4415
- var coll = false, rc = this._get_settings().radio.real_radioes;
4436
+ var coll = false, rc = this._get_settings().radio.real_radios;
4416
4437
  if(!obj || obj === -1) { return false; }
4417
4438
  state = (state === false || state === true) ? state : obj.hasClass("jstree-checked");
4418
4439
  if(this._get_settings().radio.two_state) {
@@ -4493,7 +4514,7 @@
4493
4514
  },
4494
4515
  uncheck_all : function () {
4495
4516
  var _this = this,
4496
- coll = this._get_settings().radio.two_state ? this.get_container_ul().find("li") : this.get_container().children("li");
4517
+ coll = this._get_settings().radio.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
4497
4518
  coll.each(function () {
4498
4519
  _this.change_state(this, true);
4499
4520
  });
@@ -4513,13 +4534,13 @@
4513
4534
  return get_all || this._get_settings().radio.two_state ? obj.find(".jstree-unchecked") : obj.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked");
4514
4535
  },
4515
4536
 
4516
- show_radioes : function () { this.get_container().children("ul").removeClass("jstree-no-radioes"); },
4517
- hide_radioes : function () { this.get_container().children("ul").addClass("jstree-no-radioes"); },
4537
+ show_radios : function () { this.get_container().children("ul").removeClass("jstree-no-radios"); },
4538
+ hide_radios : function () { this.get_container().children("ul").addClass("jstree-no-radios"); },
4518
4539
 
4519
4540
  _repair_state : function (obj) {
4520
4541
  obj = this._get_node(obj);
4521
4542
  if(!obj.length) { return; }
4522
- var rc = this._get_settings().radio.real_radioes,
4543
+ var rc = this._get_settings().radio.real_radios,
4523
4544
  a = obj.find("> ul > .jstree-checked").length,
4524
4545
  b = obj.find("> ul > .jstree-undetermined").length,
4525
4546
  c = obj.find("> ul > li").length;
@@ -4682,4 +4703,67 @@
4682
4703
  })(jQuery);
4683
4704
 
4684
4705
 
4685
- })();
4706
+ /*
4707
+ * jsTree model plugin
4708
+ * This plugin gets jstree to use a class model to retrieve data, creating great dynamism
4709
+ */
4710
+ (function ($) {
4711
+ var nodeInterface = ["getChildren","getChildrenCount","getAttr","getName","getProps"],
4712
+ validateInterface = function(obj, inter) {
4713
+ var valid = true;
4714
+ obj = obj || {};
4715
+ inter = [].concat(inter);
4716
+ $.each(inter, function (i, v) {
4717
+ if(!$.isFunction(obj[v])) { valid = false; return false; }
4718
+ });
4719
+ return valid;
4720
+ };
4721
+ $.jstree.plugin("model", {
4722
+ __init : function () {
4723
+ if(!this.data.json_data) { throw "jsTree model: jsTree json_data plugin not included."; }
4724
+ this._get_settings().json_data.data = function (n, b) {
4725
+ var obj = (n == -1) ? this._get_settings().model.object : n.data("jstree_model");
4726
+ if(!validateInterface(obj, nodeInterface)) { return b.call(null, false); }
4727
+ if(this._get_settings().model.async) {
4728
+ obj.getChildren($.proxy(function (data) {
4729
+ this.model_done(data, b);
4730
+ }, this));
4731
+ }
4732
+ else {
4733
+ this.model_done(obj.getChildren(), b);
4734
+ }
4735
+ };
4736
+ },
4737
+ defaults : {
4738
+ object : false,
4739
+ id_prefix : false,
4740
+ async : false
4741
+ },
4742
+ _fn : {
4743
+ model_done : function (data, callback) {
4744
+ var ret = [],
4745
+ s = this._get_settings(),
4746
+ _this = this;
4747
+
4748
+ if(!$.isArray(data)) { data = [data]; }
4749
+ $.each(data, function (i, nd) {
4750
+ var r = nd.getProps() || {};
4751
+ r.attr = nd.getAttr() || {};
4752
+ if(nd.getChildrenCount()) { r.state = "closed"; }
4753
+ r.data = nd.getName();
4754
+ if(!$.isArray(r.data)) { r.data = [r.data]; }
4755
+ if(_this.data.types && $.isFunction(nd.getType)) {
4756
+ r.attr[s.types.type_attr] = nd.getType();
4757
+ }
4758
+ if(r.attr.id && s.model.id_prefix) { r.attr.id = s.model.id_prefix + r.attr.id; }
4759
+ if(!r.metadata) { r.metadata = { }; }
4760
+ r.metadata.jstree_model = nd;
4761
+ ret.push(r);
4762
+ });
4763
+ callback.call(null, ret);
4764
+ }
4765
+ }
4766
+ });
4767
+ })(jQuery);
4768
+
4769
+ })();