compass-jquery-plugin 0.3.0.0 → 0.3.1.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. data/README.textile +69 -13
  2. data/Rakefile +1 -1
  3. data/VERSION.yml +2 -2
  4. data/gem_tasks/jqgrid.rake +119 -0
  5. data/gem_tasks/jrails.rake +78 -77
  6. data/gem_tasks/mobile.rake +156 -0
  7. data/gem_tasks/rubygems.rake +5 -1
  8. data/gem_tasks/secret_sauce.rake +64 -0
  9. data/lib/jquery/gridify.rb +42 -0
  10. data/lib/jquery/gridify/assertions.rb +37 -0
  11. data/lib/jquery/gridify/grid.rb +210 -0
  12. data/lib/jquery/gridify/grid_column.rb +134 -0
  13. data/lib/jquery/gridify/grid_finder.rb +223 -0
  14. data/lib/jquery/gridify/grid_options.rb +279 -0
  15. data/lib/jquery/gridify/grid_view.rb +435 -0
  16. data/lib/jquery/jqgrid.rb +5 -0
  17. data/lib/jquery/jqgrid/jqgrid.rb +438 -0
  18. data/lib/jquery/mobile.rb +3 -0
  19. data/lib/jquery/secret_sauce.rb +9 -0
  20. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +14 -0
  21. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -0
  22. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +6 -0
  23. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +118 -0
  24. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +226 -0
  25. data/lib/jquery/secret_sauce/model/find_for_grid.rb +42 -0
  26. data/templates/dynatree/jquery.dynatree.js +258 -147
  27. data/templates/dynatree/jquery.dynatree.min.js +81 -79
  28. data/templates/dynatree/jquery/dynatree/aero.scss +35 -18
  29. data/templates/dynatree/jquery/dynatree/aero/drop_sibling_here.png +0 -0
  30. data/templates/dynatree/jquery/dynatree/aqua.scss +36 -19
  31. data/templates/dynatree/jquery/dynatree/aqua/drop_sibling_here.png +0 -0
  32. data/templates/dynatree/jquery/dynatree/crystal.scss +38 -21
  33. data/templates/dynatree/jquery/dynatree/crystal/drop_sibling_here.png +0 -0
  34. data/templates/dynatree/jquery/dynatree/xp.scss +59 -42
  35. data/templates/dynatree/jquery/dynatree/xp/drop_sibling_here.png +0 -0
  36. data/templates/dynatree/manifest.rb +4 -0
  37. data/templates/jqgrid/config/initializers/jqgrid.rb +4 -0
  38. data/templates/jqgrid/config/locales/jquery/jqgrid/de.yml +7 -0
  39. data/templates/jqgrid/config/locales/jquery/jqgrid/en.yml +7 -0
  40. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +132 -0
  41. data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -0
  42. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +132 -0
  43. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -0
  44. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -0
  45. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +6 -0
  46. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -0
  47. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -0
  48. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +128 -0
  49. data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -0
  50. data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -0
  51. data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -0
  52. data/templates/jqgrid/i18n/jqgrid/locale-de.js +133 -0
  53. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -0
  54. data/templates/jqgrid/i18n/jqgrid/locale-el.js +126 -0
  55. data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -0
  56. data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -0
  57. data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +6 -0
  58. data/templates/jqgrid/i18n/jqgrid/locale-es.js +128 -0
  59. data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -0
  60. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +125 -0
  61. data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -0
  62. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +130 -0
  63. data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -0
  64. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +126 -0
  65. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -0
  66. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
  67. data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
  68. data/templates/jqgrid/i18n/jqgrid/locale-he.js +127 -0
  69. data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -0
  70. data/templates/jqgrid/i18n/jqgrid/locale-hu.js +129 -0
  71. data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -0
  72. data/templates/jqgrid/i18n/jqgrid/locale-is.js +126 -0
  73. data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -0
  74. data/templates/jqgrid/i18n/jqgrid/locale-it.js +1 -0
  75. data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +7 -0
  76. data/templates/jqgrid/i18n/jqgrid/locale-ja.js +155 -0
  77. data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -0
  78. data/templates/jqgrid/i18n/jqgrid/locale-nl.js +149 -0
  79. data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +6 -0
  80. data/templates/jqgrid/i18n/jqgrid/locale-no.js +1 -0
  81. data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -0
  82. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +127 -0
  83. data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -0
  84. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +127 -0
  85. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -0
  86. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +125 -0
  87. data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +6 -0
  88. data/templates/jqgrid/i18n/jqgrid/locale-ro.js +139 -0
  89. data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -0
  90. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +127 -0
  91. data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -0
  92. data/templates/jqgrid/i18n/jqgrid/locale-sk.js +127 -0
  93. data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -0
  94. data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -0
  95. data/templates/jqgrid/i18n/jqgrid/locale-sr.min.js +6 -0
  96. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +127 -0
  97. data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -0
  98. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +126 -0
  99. data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -0
  100. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +127 -0
  101. data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -0
  102. data/templates/jqgrid/jquery.jqGrid.js +11604 -0
  103. data/templates/jqgrid/jquery.jqGrid.min.js +472 -0
  104. data/templates/jqgrid/jquery/jqGrid.scss +692 -0
  105. data/templates/jqgrid/manifest.rb +72 -0
  106. data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +13 -0
  107. data/templates/jqtouch/jquery/touch/apple.scss +5 -5
  108. data/templates/jqtouch/jquery/touch/default.scss +5 -5
  109. data/templates/jqtouch/jquery/touch/jqt.scss +5 -5
  110. data/templates/jrails/config/initializers/jrails.rb +3 -0
  111. data/templates/jrails/jquery-ui.js +45 -62
  112. data/templates/jrails/jquery-ui.min.js +22 -22
  113. data/templates/jrails/jquery.js +340 -206
  114. data/templates/jrails/jquery.min.js +152 -151
  115. data/templates/jrails/jquery.tmpl.js +489 -0
  116. data/templates/jrails/jquery.tmpl.min.js +12 -0
  117. data/templates/jrails/jquery.tmplPlus.js +98 -0
  118. data/templates/jrails/jquery.tmplPlus.min.js +3 -0
  119. data/templates/jrails/jquery/ui/_theme.scss +3 -1
  120. data/templates/jrails/manifest.rb +4 -0
  121. data/templates/jstree/jquery.jstree.js +4479 -4468
  122. data/templates/jstree/jquery.jstree.min.js +4 -3
  123. data/templates/mobile/config/initializers/mobile.rb +6 -0
  124. data/templates/mobile/glyphish/Read me first - license.txt +14 -0
  125. data/templates/mobile/glyphish/icons-black/01-refresh.png +0 -0
  126. data/templates/mobile/glyphish/icons-black/02-redo.png +0 -0
  127. data/templates/mobile/glyphish/icons-black/03-loopback.png +0 -0
  128. data/templates/mobile/glyphish/icons-black/04-squiggle.png +0 -0
  129. data/templates/mobile/glyphish/icons-black/05-shuffle.png +0 -0
  130. data/templates/mobile/glyphish/icons-black/06-magnifying-glass.png +0 -0
  131. data/templates/mobile/glyphish/icons-black/07-map-marker.png +0 -0
  132. data/templates/mobile/glyphish/icons-black/08-chat.png +0 -0
  133. data/templates/mobile/glyphish/icons-black/09-chat2.png +0 -0
  134. data/templates/mobile/glyphish/icons-black/10-medical.png +0 -0
  135. data/templates/mobile/glyphish/icons-black/100-coffee.png +0 -0
  136. data/templates/mobile/glyphish/icons-black/101-gameplan.png +0 -0
  137. data/templates/mobile/glyphish/icons-black/102-walk.png +0 -0
  138. data/templates/mobile/glyphish/icons-black/103-map.png +0 -0
  139. data/templates/mobile/glyphish/icons-black/104-index-cards.png +0 -0
  140. data/templates/mobile/glyphish/icons-black/105-piano.png +0 -0
  141. data/templates/mobile/glyphish/icons-black/106-sliders.png +0 -0
  142. data/templates/mobile/glyphish/icons-black/107-widescreen.png +0 -0
  143. data/templates/mobile/glyphish/icons-black/108-badge.png +0 -0
  144. data/templates/mobile/glyphish/icons-black/109-chicken.png +0 -0
  145. data/templates/mobile/glyphish/icons-black/11-clock.png +0 -0
  146. data/templates/mobile/glyphish/icons-black/110-bug.png +0 -0
  147. data/templates/mobile/glyphish/icons-black/111-user.png +0 -0
  148. data/templates/mobile/glyphish/icons-black/112-group.png +0 -0
  149. data/templates/mobile/glyphish/icons-black/113-navigation.png +0 -0
  150. data/templates/mobile/glyphish/icons-black/114-balloon.png +0 -0
  151. data/templates/mobile/glyphish/icons-black/115-bow-and-arrow.png +0 -0
  152. data/templates/mobile/glyphish/icons-black/116-controller.png +0 -0
  153. data/templates/mobile/glyphish/icons-black/117-todo.png +0 -0
  154. data/templates/mobile/glyphish/icons-black/118-coathanger.png +0 -0
  155. data/templates/mobile/glyphish/icons-black/119-piggybank.png +0 -0
  156. data/templates/mobile/glyphish/icons-black/12-eye.png +0 -0
  157. data/templates/mobile/glyphish/icons-black/120-headphones.png +0 -0
  158. data/templates/mobile/glyphish/icons-black/121-lanscape.png +0 -0
  159. data/templates/mobile/glyphish/icons-black/122-stats.png +0 -0
  160. data/templates/mobile/glyphish/icons-black/123-id-card.png +0 -0
  161. data/templates/mobile/glyphish/icons-black/124-bullhorn.png +0 -0
  162. data/templates/mobile/glyphish/icons-black/125-food.png +0 -0
  163. data/templates/mobile/glyphish/icons-black/126-moon.png +0 -0
  164. data/templates/mobile/glyphish/icons-black/127-sock.png +0 -0
  165. data/templates/mobile/glyphish/icons-black/128-bone.png +0 -0
  166. data/templates/mobile/glyphish/icons-black/129-golf.png +0 -0
  167. data/templates/mobile/glyphish/icons-black/13-target.png +0 -0
  168. data/templates/mobile/glyphish/icons-black/130-dice.png +0 -0
  169. data/templates/mobile/glyphish/icons-black/14-tag.png +0 -0
  170. data/templates/mobile/glyphish/icons-black/15-tags.png +0 -0
  171. data/templates/mobile/glyphish/icons-black/16-line-chart.png +0 -0
  172. data/templates/mobile/glyphish/icons-black/17-bar-chart.png +0 -0
  173. data/templates/mobile/glyphish/icons-black/18-envelope.png +0 -0
  174. data/templates/mobile/glyphish/icons-black/19-gear.png +0 -0
  175. data/templates/mobile/glyphish/icons-black/20-gear2.png +0 -0
  176. data/templates/mobile/glyphish/icons-black/21-skull.png +0 -0
  177. data/templates/mobile/glyphish/icons-black/22-skull-n-crossbones.png +0 -0
  178. data/templates/mobile/glyphish/icons-black/23-bird.png +0 -0
  179. data/templates/mobile/glyphish/icons-black/24-gift.png +0 -0
  180. data/templates/mobile/glyphish/icons-black/25-weather.png +0 -0
  181. data/templates/mobile/glyphish/icons-black/26-bandaid.png +0 -0
  182. data/templates/mobile/glyphish/icons-black/27-planet.png +0 -0
  183. data/templates/mobile/glyphish/icons-black/28-star.png +0 -0
  184. data/templates/mobile/glyphish/icons-black/29-heart.png +0 -0
  185. data/templates/mobile/glyphish/icons-black/30-key.png +0 -0
  186. data/templates/mobile/glyphish/icons-black/31-ipod.png +0 -0
  187. data/templates/mobile/glyphish/icons-black/32-iphone.png +0 -0
  188. data/templates/mobile/glyphish/icons-black/33-cabinet.png +0 -0
  189. data/templates/mobile/glyphish/icons-black/34-coffee.png +0 -0
  190. data/templates/mobile/glyphish/icons-black/35-shopping-bag.png +0 -0
  191. data/templates/mobile/glyphish/icons-black/36-toolbox.png +0 -0
  192. data/templates/mobile/glyphish/icons-black/37-suitcase.png +0 -0
  193. data/templates/mobile/glyphish/icons-black/38-airplane.png +0 -0
  194. data/templates/mobile/glyphish/icons-black/39-spraycan.png +0 -0
  195. data/templates/mobile/glyphish/icons-black/40-inbox.png +0 -0
  196. data/templates/mobile/glyphish/icons-black/41-picture-frame.png +0 -0
  197. data/templates/mobile/glyphish/icons-black/42-photos.png +0 -0
  198. data/templates/mobile/glyphish/icons-black/43-film-roll.png +0 -0
  199. data/templates/mobile/glyphish/icons-black/44-shoebox.png +0 -0
  200. data/templates/mobile/glyphish/icons-black/45-movie1.png +0 -0
  201. data/templates/mobile/glyphish/icons-black/46-movie2.png +0 -0
  202. data/templates/mobile/glyphish/icons-black/47-fuel.png +0 -0
  203. data/templates/mobile/glyphish/icons-black/48-fork-and-knife.png +0 -0
  204. data/templates/mobile/glyphish/icons-black/49-battery.png +0 -0
  205. data/templates/mobile/glyphish/icons-black/50-beaker.png +0 -0
  206. data/templates/mobile/glyphish/icons-black/51-outlet.png +0 -0
  207. data/templates/mobile/glyphish/icons-black/52-pinetree.png +0 -0
  208. data/templates/mobile/glyphish/icons-black/53-house.png +0 -0
  209. data/templates/mobile/glyphish/icons-black/54-lock.png +0 -0
  210. data/templates/mobile/glyphish/icons-black/55-network.png +0 -0
  211. data/templates/mobile/glyphish/icons-black/56-cloud.png +0 -0
  212. data/templates/mobile/glyphish/icons-black/57-download.png +0 -0
  213. data/templates/mobile/glyphish/icons-black/58-bookmark.png +0 -0
  214. data/templates/mobile/glyphish/icons-black/59-flag.png +0 -0
  215. data/templates/mobile/glyphish/icons-black/60-signpost.png +0 -0
  216. data/templates/mobile/glyphish/icons-black/61-brightness.png +0 -0
  217. data/templates/mobile/glyphish/icons-black/62-contrast.png +0 -0
  218. data/templates/mobile/glyphish/icons-black/63-runner.png +0 -0
  219. data/templates/mobile/glyphish/icons-black/64-zap.png +0 -0
  220. data/templates/mobile/glyphish/icons-black/65-note.png +0 -0
  221. data/templates/mobile/glyphish/icons-black/66-microphone.png +0 -0
  222. data/templates/mobile/glyphish/icons-black/67-tshirt.png +0 -0
  223. data/templates/mobile/glyphish/icons-black/68-paperclip.png +0 -0
  224. data/templates/mobile/glyphish/icons-black/69-display.png +0 -0
  225. data/templates/mobile/glyphish/icons-black/70-tv.png +0 -0
  226. data/templates/mobile/glyphish/icons-black/71-compass.png +0 -0
  227. data/templates/mobile/glyphish/icons-black/72-pin.png +0 -0
  228. data/templates/mobile/glyphish/icons-black/73-radar.png +0 -0
  229. data/templates/mobile/glyphish/icons-black/74-location.png +0 -0
  230. data/templates/mobile/glyphish/icons-black/75-phone.png +0 -0
  231. data/templates/mobile/glyphish/icons-black/76-baby.png +0 -0
  232. data/templates/mobile/glyphish/icons-black/77-ekg.png +0 -0
  233. data/templates/mobile/glyphish/icons-black/78-stopwatch.png +0 -0
  234. data/templates/mobile/glyphish/icons-black/79-medical-bag.png +0 -0
  235. data/templates/mobile/glyphish/icons-black/80-shopping-cart.png +0 -0
  236. data/templates/mobile/glyphish/icons-black/81-dashboard.png +0 -0
  237. data/templates/mobile/glyphish/icons-black/82-dogpaw.png +0 -0
  238. data/templates/mobile/glyphish/icons-black/83-calendar.png +0 -0
  239. data/templates/mobile/glyphish/icons-black/84-lightbulb.png +0 -0
  240. data/templates/mobile/glyphish/icons-black/85-trophy.png +0 -0
  241. data/templates/mobile/glyphish/icons-black/86-camera.png +0 -0
  242. data/templates/mobile/glyphish/icons-black/87-wineglass.png +0 -0
  243. data/templates/mobile/glyphish/icons-black/88-beermug.png +0 -0
  244. data/templates/mobile/glyphish/icons-black/89-dumbbell.png +0 -0
  245. data/templates/mobile/glyphish/icons-black/90-lifebuoy.png +0 -0
  246. data/templates/mobile/glyphish/icons-black/91-beaker2.png +0 -0
  247. data/templates/mobile/glyphish/icons-black/92-testtube.png +0 -0
  248. data/templates/mobile/glyphish/icons-black/93-thermometer.png +0 -0
  249. data/templates/mobile/glyphish/icons-black/94-pill.png +0 -0
  250. data/templates/mobile/glyphish/icons-black/95-equalizer.png +0 -0
  251. data/templates/mobile/glyphish/icons-black/96-book.png +0 -0
  252. data/templates/mobile/glyphish/icons-black/97-puzzle.png +0 -0
  253. data/templates/mobile/glyphish/icons-black/98-palette.png +0 -0
  254. data/templates/mobile/glyphish/icons-black/99-umbrella.png +0 -0
  255. data/templates/mobile/glyphish/icons-white/09-chat2.png +0 -0
  256. data/templates/mobile/glyphish/icons-white/100-coffee.png +0 -0
  257. data/templates/mobile/glyphish/icons-white/18-envelope.png +0 -0
  258. data/templates/mobile/glyphish/icons-white/19-gear.png +0 -0
  259. data/templates/mobile/glyphish/icons-white/21-skull.png +0 -0
  260. data/templates/mobile/glyphish/icons-white/30-key.png +0 -0
  261. data/templates/mobile/glyphish/icons-white/34-coffee.png +0 -0
  262. data/templates/mobile/glyphish/icons-white/88-beermug.png +0 -0
  263. data/templates/mobile/glyphish/mini-icons-black/band-aid.png +0 -0
  264. data/templates/mobile/glyphish/mini-icons-black/chat.png +0 -0
  265. data/templates/mobile/glyphish/mini-icons-black/clock.png +0 -0
  266. data/templates/mobile/glyphish/mini-icons-black/eye.png +0 -0
  267. data/templates/mobile/glyphish/mini-icons-black/flag.png +0 -0
  268. data/templates/mobile/glyphish/mini-icons-black/fork-and-knife.png +0 -0
  269. data/templates/mobile/glyphish/mini-icons-black/gear.png +0 -0
  270. data/templates/mobile/glyphish/mini-icons-black/heart.png +0 -0
  271. data/templates/mobile/glyphish/mini-icons-black/lightning-bolt.png +0 -0
  272. data/templates/mobile/glyphish/mini-icons-black/magnifying-glass.png +0 -0
  273. data/templates/mobile/glyphish/mini-icons-black/map-marker.png +0 -0
  274. data/templates/mobile/glyphish/mini-icons-black/map-pin.png +0 -0
  275. data/templates/mobile/glyphish/mini-icons-black/microphone.png +0 -0
  276. data/templates/mobile/glyphish/mini-icons-black/music-note.png +0 -0
  277. data/templates/mobile/glyphish/mini-icons-black/paw.png +0 -0
  278. data/templates/mobile/glyphish/mini-icons-black/plus.png +0 -0
  279. data/templates/mobile/glyphish/mini-icons-black/puzzle.png +0 -0
  280. data/templates/mobile/glyphish/mini-icons-black/star.png +0 -0
  281. data/templates/mobile/glyphish/mini-icons-black/tag.png +0 -0
  282. data/templates/mobile/glyphish/mini-icons-black/tshirt.png +0 -0
  283. data/templates/mobile/jquery.mobile.js +3995 -0
  284. data/templates/mobile/jquery.mobile.min.js +28 -0
  285. data/templates/mobile/jquery/mobile/_base.scss +1344 -0
  286. data/templates/mobile/jquery/mobile/default.scss +745 -0
  287. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  288. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  289. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  290. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  291. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  292. data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
  293. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  294. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  295. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  296. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  297. data/templates/mobile/jquery/mobile/valencia.scss +807 -0
  298. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  299. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  300. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  301. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  302. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
  303. data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
  304. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  305. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  306. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  307. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  308. data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
  309. data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
  310. data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
  311. data/templates/mobile/manifest.rb +191 -0
  312. data/templates/secret_sauce/app/views/shared/_ui_form_error_messages.html.haml +6 -0
  313. data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +144 -0
  314. data/templates/secret_sauce/app/views/shared/_ui_static_dialog.html.haml +6 -0
  315. data/templates/secret_sauce/config/initializers/secret_sauce.rb +8 -0
  316. data/templates/secret_sauce/jquery/secret_sauce.scss +33 -0
  317. data/templates/secret_sauce/manifest.rb +10 -0
  318. data/templates/secret_sauce/secret_sauce.js +12 -0
  319. data/templates/secret_sauce/secret_sauce.min.js +1 -0
  320. metadata +313 -17
  321. data/.gitignore +0 -22
  322. data/compass-jquery-plugin.gemspec +0 -1064
@@ -1,82 +1,84 @@
1
- var _canLog=true;function _log(g){if(_canLog){var k=Array.prototype.slice.apply(arguments,[1]),l=new Date;l=l.getHours()+":"+l.getMinutes()+":"+l.getSeconds()+"."+l.getMilliseconds();k[0]=l+" - "+k[0];try{switch(g){case "info":window.console.info.apply(window.console,k);break;case "warn":window.console.warn.apply(window.console,k);break;default:window.console.log.apply(window.console,k)}}catch(o){window.console||(_canLog=false)}}}
2
- function logMsg(){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}var getDynaTreePersistData=undefined,DTNodeStatus_Error=-1,DTNodeStatus_Loading=1,DTNodeStatus_Ok=0;
3
- (function(g){function k(a){for(var b=5;a&&b--;){if(a.dtnode)return a.dtnode;a=a.parentNode}return null}function l(a){var b=a.options.dnd||null;if(b&&(b.onDragStart||b.onDrop))s();b&&b.onDragStart&&a.$tree.draggable({addClasses:false,appendTo:"body",containment:false,delay:0,distance:4,revert:false,connectToDynatree:true,helper:function(c){var d=k(c.target);return d.tree._onDragEvent("helper",d,null,c,null,null)},_last:null});b&&b.onDrop&&a.$tree.droppable({addClasses:false,tolerance:"intersect",greedy:false,
4
- _last:null})}var o={create:function(){return function(){this.initialize.apply(this,arguments)}}},p=o.create();p.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;if(typeof c==="string")c={title:c};if(c.key===undefined)c.key="_"+b._nodeCount++;this.data=g.extend({},g.ui.dynatree.nodedatadefaults,c);this.childList=this.ul=this.span=this.li=null;this.hasSubSel=this.isLoading=false},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+"'"},toDict:function(a,b){var c=
5
- g.extend({},this.data);c.activate=this.tree.activeNode===this;c.focus=this.tree.focusNode===this;c.expand=this.bExpanded;c.select=this.bSelected;b&&b(c);if(a&&this.childList){c.children=[];for(var d=0;d<this.childList.length;d++)c.children.push(this.childList[d].toDict(true,b))}else delete c.children;return c},fromDict:function(a){var b=a.children;if(b===undefined){this.data=g.extend(this.data,a);this.render()}else{a=g.extend({},a);a.children=undefined;this.data=g.extend(this.data,a);this.removeChildren();
6
- this.addChild(b)}},_getInnerHtml:function(){var a=this.tree.options,b=this.tree.cache,c=this.getLevel(),d="";if(c<a.minExpandLevel){if(c>1)d+=b.tagConnector}else d+=this.hasChildren()!==false?b.tagExpander:b.tagConnector;if(a.checkbox&&this.data.hideCheckbox!==true&&!this.data.isStatusNode)d+=b.tagCheckbox;if(this.data.icon)d+="<img src='"+a.imagePath+this.data.icon+"' alt='' />";else if(this.data.icon!==false)d+=b.tagNodeIcon;b=this.data.tooltip?" title='"+this.data.tooltip+"'":"";d+=a.noLink||this.data.noLink?
7
- "<span style='display: inline-block;' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</span>":"<a href='#' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</a>";return d},_fixOrder:function(){var a=this.childList;if(a)for(var b=this.ul.firstChild,c=0;c<a.length-1;c++){var d=a[c],e=b.dtnode;if(d!==e){this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+d+" != "+e);this.ul.insertBefore(d.li,e.li)}else b=b.nextSibling}},render:function(a){var b=this.tree.options,c=b.classNames,d=
8
- this.isLastSibling();if(!this.parent&&!this.ul){this.li=this.span=null;this.ul=document.createElement("ul");this.ul.className=b.minExpandLevel>1?c.container+" "+c.noConnector:c.container}else if(this.parent){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(this.data.key&&b.generateIds)this.li.id=b.idPrefix+this.data.key;this.span=document.createElement("span");this.span.className=c.title;this.li.appendChild(this.span);if(!this.parent.ul){this.parent.ul=document.createElement("ul");
9
- this.parent.ul.style.display="none";this.parent.li.appendChild(this.parent.ul)}this.parent.ul.appendChild(this.li)}this.span.innerHTML=this._getInnerHtml();var e=[];e.push(c.node);this.data.isFolder&&e.push(c.folder);this.bExpanded&&e.push(c.expanded);this.hasChildren()!==false&&e.push(c.hasChildren);this.data.isLazy&&this.childList===null&&e.push(c.lazy);d&&e.push(c.lastsib);this.bSelected&&e.push(c.selected);this.hasSubSel&&e.push(c.partsel);this.tree.activeNode===this&&e.push(c.active);this.data.addClass&&
10
- e.push(this.data.addClass);e.push(c.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(this.data.isLazy&&this.childList===null?"d":"")+(d?"l":""));e.push(c.combinedIconPrefix+(this.bExpanded?"e":"c")+(this.data.isFolder?"f":""));this.span.className=e.join(" ");this.li.className=d?c.lastsib:""}if(this.bExpanded&&this.childList){for(c=0;c<this.childList.length;c++)this.childList[c].render();this._fixOrder()}if(this.ul){c=this.ul.style.display==="none";if(a&&b.fx&&!!c===!!this.bExpanded){a=b.fx.duration||
11
- 200;g(this.ul).animate(b.fx,a)}else this.ul.style.display=this.bExpanded||!this.parent?"":"none"}},getKeyPath:function(a){var b=[];this.visitParents(function(c){c.parent&&b.unshift(c.data.key)},!a);return"/"+b.join(this.tree.options.keyPathSeparator)},getParent:function(){return this.parent},getChildren:function(){return this.childList},hasChildren:function(){if(this.data.isLazy){if(this.childList===null||this.childList===undefined)return;else if(this.childList.length===0)return false;else if(this.childList.length===
12
- 1&&this.childList[0].isStatusNode())return;return true}return!!this.childList},isFirstSibling:function(){var a=this.parent;return!a||a.childList[0]===this},isLastSibling:function(){var a=this.parent;return!a||a.childList[a.childList.length-1]===this},getPrevSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=1;b<a.length;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=0;b<a.length-1;b++)if(a[b]===
13
- this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===true},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return false;for(var b=this.parent;b;){if(b===a)return true;b=b.parent}return false},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(e,f){return e.data.title===f.data.title?0:e.data.title>f.data.title};c.sort(a);if(b)for(var d=0;d<c.length;d++)c[d].childList&&c[d].sortChildren(a,"$norender$");b!==
14
- "$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)if(b){a.isStatusNode=true;b.data=a;b.render()}else{a.isStatusNode=true;this.addChild(a)}else if(b){try{this.ul.removeChild(b.li)}catch(c){}if(this.childList.length===1)this.childList=null;else this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);this.isLoading=false;this.render();
15
- if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;this._setStatusNode({title:this.tree.options.strings.loading+d,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=false;this._setStatusNode({title:this.tree.options.strings.loadError+d,tooltip:c,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+
16
- a+"'.";}},_parentList:function(a,b){for(var c=[],d=b?this:this.parent;d;){if(a||d.parent)c.unshift(d);d=d.parent}return c},getLevel:function(){for(var a=0,b=this.parent;b;){a++;b=b.parent}return a},_getTypeForOuterNodeEvent:function(a){var b=this.tree.options.classNames,c=a.target;if(c.className.indexOf(b.node)<0)return null;var d=a.pageX-c.offsetLeft;a=a.pageY-c.offsetTop;for(var e=0;e<c.childNodes.length;e++){var f=c.childNodes[e],h=f.offsetLeft-c.offsetLeft,i=f.offsetTop-c.offsetTop,j=f.clientWidth,
17
- m=f.clientHeight;if(d>=h&&d<=h+j&&a>=i&&a<=i+m)if(f.className==b.title)return"title";else if(f.className==b.expander)return"expander";else if(f.className==b.checkbox)return"checkbox";else if(f.className==b.nodeIcon)return"icon"}return"prefix"},getEventTargetType:function(a){var b=a&&a.target?a.target.className:"",c=this.tree.options.classNames;if(b===c.title)return"title";else if(b===c.expander)return"expander";else if(b===c.checkbox)return"checkbox";else if(b===c.nodeIcon)return"icon";else if(b===
18
- c.empty||b===c.vline||b===c.connector)return"prefix";else if(b.indexOf(c.node)>=0)return this._getTypeForOuterNodeEvent(a);return null},isVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)if(!a[b].bExpanded)return false;return true},makeVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)a[b]._expand(true)},focus:function(){this.makeVisible();try{g(this.span).find(">a").focus()}catch(a){}},_activate:function(a,b){this.tree.logDebug("dtnode._activate(%o, fireEvents=%o) - %o",
19
- a,b,this);var c=this.tree.options;if(!this.data.isStatusNode)if(!(b&&c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===false))if(a){if(this.tree.activeNode){if(this.tree.activeNode===this)return;this.tree.activeNode.deactivate()}c.activeVisible&&this.makeVisible();this.tree.activeNode=this;c.persist&&g.cookie(c.cookieId+"-active",this.data.key,c.cookie);this.tree.persistence.activeKey=this.data.key;g(this.span).addClass(c.classNames.active);b&&c.onActivate&&c.onActivate.call(this.tree,
20
- this)}else if(this.tree.activeNode===this){c=this.tree.options;if(!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,false,this)===false)){g(this.span).removeClass(c.classNames.active);c.persist&&g.cookie(c.cookieId+"-active","",c.cookie);this.tree.persistence.activeKey=null;this.tree.activeNode=null;b&&c.onDeactivate&&c.onDeactivate.call(this.tree,this)}}},activate:function(){this._activate(true,true)},deactivate:function(){this._activate(false,true)},isActive:function(){return this.tree.activeNode===
21
- this},_userActivate:function(){var a=true,b=false;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=false;b=true;break;case 3:a=b=true}if(this.parent===null)b=false;if(b){this.toggleExpand();this.focus()}a&&this.activate()},_setSubSel:function(a){if(a){this.hasSubSel=true;g(this.span).addClass(this.tree.options.classNames.partsel)}else{this.hasSubSel=false;g(this.span).removeClass(this.tree.options.classNames.partsel)}},_fixSelectionState:function(){if(this.bSelected){this.visit(function(e){e.parent._setSubSel(true);
22
- e._select(true,false,false)});for(var a=this.parent;a;){a._setSubSel(true);for(var b=true,c=0;c<a.childList.length;c++){var d=a.childList[c];if(!d.bSelected&&!d.data.isStatusNode){b=false;break}}b&&a._select(true,false,false);a=a.parent}}else{this._setSubSel(false);this.visit(function(e){e._setSubSel(false);e._select(false,false,false)});for(a=this.parent;a;){a._select(false,false,false);b=false;for(c=0;c<a.childList.length;c++)if(a.childList[c].bSelected||a.childList[c].hasSubSel){b=true;break}a._setSubSel(b);
23
- a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;if(!this.data.isStatusNode)if(this.bSelected!==a)if(!(b&&d.onQuerySelect&&d.onQuerySelect.call(this.tree,a,this)===false)){d.selectMode==1&&a&&this.tree.visit(function(e){if(e.bSelected){e._select(false,false,false);return false}});if(this.bSelected=a){d.persist&&this.tree.persistence.addSelect(this.data.key);g(this.span).addClass(d.classNames.selected);c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,
24
- true,this)}else{d.persist&&this.tree.persistence.clearSelect(this.data.key);g(this.span).removeClass(d.classNames.selected);c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,false,this)}}},select:function(a){if(this.data.unselectable)return this.bSelected;return this._select(a!==false,true,true)},toggleSelect:function(){return this.select(!this.bSelected)},isSelected:function(){return this.bSelected},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",
25
- this);this.setLazyNodeStatus(DTNodeStatus_Loading);if(true===a.onLazyRead.call(this.tree,this)){this.setLazyNodeStatus(DTNodeStatus_Ok);this.tree.logDebug("_loadContent: succeeded - %o",this)}}catch(b){this.tree.logWarning("_loadContent: failed - %o",b);this.setLazyNodeStatus(DTNodeStatus_Error,{tooltip:""+b})}},_expand:function(a){if(this.bExpanded===a)this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",a,this);else{this.tree.logDebug("dtnode._expand(%o) - %o",a,this);var b=this.tree.options;if(!a&&
26
- this.getLevel()<b.minExpandLevel)this.tree.logDebug("dtnode._expand(%o) prevented collapse - %o",a,this);else if(!(b.onQueryExpand&&b.onQueryExpand.call(this.tree,a,this)===false)){this.bExpanded=a;if(b.persist)a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key);this.render(!(this.data.isLazy&&this.childList===null)&&!this.isLoading);if(this.bExpanded&&this.parent&&b.autoCollapse)for(var c=this._parentList(false,true),d=0;d<c.length;d++)c[d].collapseSiblings();
27
- b.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();if(a&&this.data.isLazy&&this.childList===null&&!this.isLoading)this._loadContent();else b.onExpand&&b.onExpand.call(this.tree,a,this)}}},expand:function(a){!this.childList&&!this.data.isLazy&&a||this.parent===null&&!a||this._expand(a)},scheduleAction:function(a,b){if(this.tree.timer){clearTimeout(this.tree.timer);logMsg("clearTimeout(%o)",this.tree.timer)}var c=this;switch(a){case "cancel":break;
28
- case "expand":this.tree.timer=setTimeout(function(){logMsg("setTimeout: trigger");c.expand(true)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.activate()},b);break;default:throw"Invalid mode "+a;}logMsg("setTimeout(%s, %s): %s",a,b,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(this.parent!==null)for(var a=this.parent.childList,b=0;b<a.length;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},onClick:function(a){a=this.getEventTargetType(a);
29
- if(a==="expander"){this.toggleExpand();this.focus()}else if(a==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();a=this.span.getElementsByTagName("a");if(a[0])g.browser.msie||a[0].focus();else return true}return false},onDblClick:function(){},onKeydown:function(a){var b=true;switch(a.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();
1
+ var _canLog=true;function _log(f){if(_canLog){var k=Array.prototype.slice.apply(arguments,[1]),m=new Date;m=m.getHours()+":"+m.getMinutes()+":"+m.getSeconds()+"."+m.getMilliseconds();k[0]=m+" - "+k[0];try{switch(f){case "info":window.console.info.apply(window.console,k);break;case "warn":window.console.warn.apply(window.console,k);break;default:window.console.log.apply(window.console,k)}}catch(o){window.console||(_canLog=false)}}}
2
+ function logMsg(){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}var getDynaTreePersistData=null,DTNodeStatus_Error=-1,DTNodeStatus_Loading=1,DTNodeStatus_Ok=0;
3
+ (function(f){function k(a){for(var b=5;a&&b--;){if(a.dtnode)return a.dtnode;a=a.parentNode}return null}function m(a){var b=a.options.dnd||null;if(b&&(b.onDragStart||b.onDrop))s();b&&b.onDragStart&&a.$tree.draggable({addClasses:false,appendTo:"body",containment:false,delay:0,distance:4,revert:false,connectToDynatree:true,helper:function(c){var d=k(c.target);return d.tree._onDragEvent("helper",d,null,c,null,null)},_last:null});b&&b.onDrop&&a.$tree.droppable({addClasses:false,tolerance:"intersect",greedy:false,
4
+ _last:null})}var o={create:function(){return function(){this.initialize.apply(this,arguments)}}},p=o.create();p.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;if(typeof c==="string")c={title:c};if(c.key===undefined)c.key="_"+b._nodeCount++;this.data=f.extend({},f.ui.dynatree.nodedatadefaults,c);this.childList=this.ul=this.span=this.li=null;this.bSelected=this.bExpanded=this.hasSubSel=this.isLoading=false},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+
5
+ "'"},toDict:function(a,b){var c=f.extend({},this.data);c.activate=this.tree.activeNode===this;c.focus=this.tree.focusNode===this;c.expand=this.bExpanded;c.select=this.bSelected;b&&b(c);if(a&&this.childList){c.children=[];for(var d=0;d<this.childList.length;d++)c.children.push(this.childList[d].toDict(true,b))}else delete c.children;return c},fromDict:function(a){var b=a.children;if(b===undefined){this.data=f.extend(this.data,a);this.render()}else{a=f.extend({},a);a.children=undefined;this.data=f.extend(this.data,
6
+ a);this.removeChildren();this.addChild(b)}},_getInnerHtml:function(){var a=this.tree.options,b=this.tree.cache,c=this.getLevel(),d="";if(c<a.minExpandLevel){if(c>1)d+=b.tagConnector}else d+=this.hasChildren()!==false?b.tagExpander:b.tagConnector;if(a.checkbox&&this.data.hideCheckbox!==true&&!this.data.isStatusNode)d+=b.tagCheckbox;if(this.data.icon)d+="<img src='"+a.imagePath+this.data.icon+"' alt='' />";else if(this.data.icon!==false)d+=b.tagNodeIcon;b=this.data.tooltip?" title='"+this.data.tooltip+
7
+ "'":"";d+=a.noLink||this.data.noLink?"<span style='display: inline-block;' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</span>":"<a href='#' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</a>";return d},_fixOrder:function(){var a=this.childList;if(a)for(var b=this.ul.firstChild,c=0;c<a.length-1;c++){var d=a[c],e=b.dtnode;if(d!==e){this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+d+" != "+e);this.ul.insertBefore(d.li,e.li)}else b=b.nextSibling}},render:function(a){var b=
8
+ this.tree.options,c=b.classNames,d=this.isLastSibling();if(!this.parent&&!this.ul){this.li=this.span=null;this.ul=document.createElement("ul");this.ul.className=b.minExpandLevel>1?c.container+" "+c.noConnector:c.container}else if(this.parent){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(this.data.key&&b.generateIds)this.li.id=b.idPrefix+this.data.key;this.span=document.createElement("span");this.span.className=c.title;this.li.appendChild(this.span);if(!this.parent.ul){this.parent.ul=
9
+ document.createElement("ul");this.parent.ul.style.display="none";this.parent.li.appendChild(this.parent.ul)}this.parent.ul.appendChild(this.li)}this.span.innerHTML=this._getInnerHtml();var e=[];e.push(c.node);this.data.isFolder&&e.push(c.folder);this.bExpanded&&e.push(c.expanded);this.hasChildren()!==false&&e.push(c.hasChildren);this.data.isLazy&&this.childList===null&&e.push(c.lazy);d&&e.push(c.lastsib);this.bSelected&&e.push(c.selected);this.hasSubSel&&e.push(c.partsel);this.tree.activeNode===this&&
10
+ e.push(c.active);this.data.addClass&&e.push(this.data.addClass);e.push(c.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(this.data.isLazy&&this.childList===null?"d":"")+(d?"l":""));e.push(c.combinedIconPrefix+(this.bExpanded?"e":"c")+(this.data.isFolder?"f":""));this.span.className=e.join(" ");this.li.className=d?c.lastsib:""}if(this.bExpanded&&this.childList){for(c=0;c<this.childList.length;c++)this.childList[c].render();this._fixOrder()}if(this.ul){c=this.ul.style.display==="none";if(a&&b.fx&&
11
+ !!c===!!this.bExpanded){a=b.fx.duration||200;f(this.ul).animate(b.fx,a)}else this.ul.style.display=this.bExpanded||!this.parent?"":"none"}},getKeyPath:function(a){var b=[];this.visitParents(function(c){c.parent&&b.unshift(c.data.key)},!a);return"/"+b.join(this.tree.options.keyPathSeparator)},getParent:function(){return this.parent},getChildren:function(){return this.childList},hasChildren:function(){if(this.data.isLazy){if(this.childList===null||this.childList===undefined)return;else if(this.childList.length===
12
+ 0)return false;else if(this.childList.length===1&&this.childList[0].isStatusNode())return;return true}return!!this.childList},isFirstSibling:function(){var a=this.parent;return!a||a.childList[0]===this},isLastSibling:function(){var a=this.parent;return!a||a.childList[a.childList.length-1]===this},getPrevSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=1;b<a.length;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=
13
+ this.parent.childList,b=0;b<a.length-1;b++)if(a[b]===this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===true},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return false;for(var b=this.parent;b;){if(b===a)return true;b=b.parent}return false},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(e,g){return e.data.title===g.data.title?0:e.data.title>g.data.title};c.sort(a);if(b)for(var d=0;d<c.length;d++)c[d].childList&&
14
+ c[d].sortChildren(a,"$norender$");b!=="$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)if(b){a.isStatusNode=true;a.key="_statusNode";b.data=a;b.render()}else{a.isStatusNode=true;a.key="_statusNode";this.addChild(a)}else if(b&&b.isStatusNode()){try{this.ul&&this.ul.removeChild(b.li)}catch(c){}if(this.childList.length===1)this.childList=[];else this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?
15
+ " ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);f(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=false;this.render();if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList&&this.childList.length>0?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;f(this.span).addClass(this.tree.options.classNames.nodeLoading);this.parent||this._setStatusNode({title:this.tree.options.strings.loading+
16
+ d,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=false;this._setStatusNode({title:this.tree.options.strings.loadError+d,tooltip:c,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+a+"'.";}},_parentList:function(a,b){for(var c=[],d=b?this:this.parent;d;){if(a||d.parent)c.unshift(d);d=d.parent}return c},getLevel:function(){for(var a=0,b=this.parent;b;){a++;b=b.parent}return a},_getTypeForOuterNodeEvent:function(a){var b=
17
+ this.tree.options.classNames,c=a.target;if(c.className.indexOf(b.node)<0)return null;var d=a.pageX-c.offsetLeft;a=a.pageY-c.offsetTop;for(var e=0;e<c.childNodes.length;e++){var g=c.childNodes[e],h=g.offsetLeft-c.offsetLeft,i=g.offsetTop-c.offsetTop,j=g.clientWidth,l=g.clientHeight;if(d>=h&&d<=h+j&&a>=i&&a<=i+l)if(g.className==b.title)return"title";else if(g.className==b.expander)return"expander";else if(g.className==b.checkbox)return"checkbox";else if(g.className==b.nodeIcon)return"icon"}return"prefix"},
18
+ getEventTargetType:function(a){var b=a&&a.target?a.target.className:"",c=this.tree.options.classNames;if(b===c.title)return"title";else if(b===c.expander)return"expander";else if(b===c.checkbox)return"checkbox";else if(b===c.nodeIcon)return"icon";else if(b===c.empty||b===c.vline||b===c.connector)return"prefix";else if(b.indexOf(c.node)>=0)return this._getTypeForOuterNodeEvent(a);return null},isVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)if(!a[b].bExpanded)return false;
19
+ return true},makeVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)a[b]._expand(true)},focus:function(){this.makeVisible();try{f(this.span).find(">a").focus()}catch(a){}},isFocused:function(){return this.tree.tnFocused===this},_activate:function(a,b){this.tree.logDebug("dtnode._activate(%o, fireEvents=%o) - %o",a,b,this);var c=this.tree.options;if(!this.data.isStatusNode)if(!(b&&c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===false))if(a){if(this.tree.activeNode){if(this.tree.activeNode===
20
+ this)return;this.tree.activeNode.deactivate()}c.activeVisible&&this.makeVisible();this.tree.activeNode=this;c.persist&&f.cookie(c.cookieId+"-active",this.data.key,c.cookie);this.tree.persistence.activeKey=this.data.key;f(this.span).addClass(c.classNames.active);b&&c.onActivate&&c.onActivate.call(this.tree,this)}else if(this.tree.activeNode===this){c=this.tree.options;if(!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,false,this)===false)){f(this.span).removeClass(c.classNames.active);c.persist&&
21
+ f.cookie(c.cookieId+"-active","",c.cookie);this.tree.persistence.activeKey=null;this.tree.activeNode=null;b&&c.onDeactivate&&c.onDeactivate.call(this.tree,this)}}},activate:function(){this._activate(true,true)},activateSilently:function(){this._activate(true,false)},deactivate:function(){this._activate(false,true)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var a=true,b=false;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=false;b=true;
22
+ break;case 3:a=b=true}if(this.parent===null)b=false;if(b){this.toggleExpand();this.focus()}a&&this.activate()},_setSubSel:function(a){if(a){this.hasSubSel=true;f(this.span).addClass(this.tree.options.classNames.partsel)}else{this.hasSubSel=false;f(this.span).removeClass(this.tree.options.classNames.partsel)}},_fixSelectionState:function(){if(this.bSelected){this.visit(function(e){e.parent._setSubSel(true);e._select(true,false,false)});for(var a=this.parent;a;){a._setSubSel(true);for(var b=true,c=
23
+ 0;c<a.childList.length;c++){var d=a.childList[c];if(!d.bSelected&&!d.data.isStatusNode){b=false;break}}b&&a._select(true,false,false);a=a.parent}}else{this._setSubSel(false);this.visit(function(e){e._setSubSel(false);e._select(false,false,false)});for(a=this.parent;a;){a._select(false,false,false);b=false;for(c=0;c<a.childList.length;c++)if(a.childList[c].bSelected||a.childList[c].hasSubSel){b=true;break}a._setSubSel(b);a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;if(!this.data.isStatusNode)if(this.bSelected!==
24
+ a)if(!(b&&d.onQuerySelect&&d.onQuerySelect.call(this.tree,a,this)===false)){d.selectMode==1&&a&&this.tree.visit(function(e){if(e.bSelected){e._select(false,false,false);return false}});if(this.bSelected=a){d.persist&&this.tree.persistence.addSelect(this.data.key);f(this.span).addClass(d.classNames.selected);c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,true,this)}else{d.persist&&this.tree.persistence.clearSelect(this.data.key);f(this.span).removeClass(d.classNames.selected);
25
+ c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,false,this)}}},select:function(a){if(this.data.unselectable)return this.bSelected;return this._select(a!==false,true,true)},toggleSelect:function(){return this.select(!this.bSelected)},isSelected:function(){return this.bSelected},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this);this.setLazyNodeStatus(DTNodeStatus_Loading);if(true===a.onLazyRead.call(this.tree,
26
+ this)){this.setLazyNodeStatus(DTNodeStatus_Ok);this.tree.logDebug("_loadContent: succeeded - %o",this)}}catch(b){this.tree.logWarning("_loadContent: failed - %o",b);this.setLazyNodeStatus(DTNodeStatus_Error,{tooltip:""+b})}},_expand:function(a,b){if(this.bExpanded===a)this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",a,this);else{this.tree.logDebug("dtnode._expand(%o) - %o",a,this);var c=this.tree.options;if(!a&&this.getLevel()<c.minExpandLevel)this.tree.logDebug("dtnode._expand(%o) prevented collapse - %o",
27
+ a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===false)){this.bExpanded=a;if(c.persist)a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key);this.render(!(this.data.isLazy&&this.childList===null)&&!this.isLoading&&!b);if(this.bExpanded&&this.parent&&c.autoCollapse)for(var d=this._parentList(false,true),e=0;e<d.length;e++)d[e].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();
28
+ if(a&&this.data.isLazy&&this.childList===null&&!this.isLoading)this._loadContent();else c.onExpand&&c.onExpand.call(this.tree,a,this)}}},expand:function(a){a=a!==false;!this.childList&&!this.data.isLazy&&a||this.parent===null&&!a||this._expand(a)},scheduleAction:function(a,b){if(this.tree.timer){clearTimeout(this.tree.timer);this.tree.logDebug("clearTimeout(%o)",this.tree.timer)}var c=this;switch(a){case "cancel":break;case "expand":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger expand");
29
+ c.expand(true)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+a;}this.tree.logDebug("setTimeout(%s, %s): %s",a,b,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(this.parent!==null)for(var a=this.parent.childList,b=0;b<a.length;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},_onClick:function(a){a=this.getEventTargetType(a);
30
+ if(a==="expander"){this.toggleExpand();this.focus()}else if(a==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();a=this.span.getElementsByTagName("a");if(a[0])f.browser.msie||a[0].focus();else return true}return false},_onDblClick:function(){},_onKeydown:function(a){var b=true;switch(a.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();
30
31
  break;case 37:if(this.bExpanded){this.toggleExpand();this.focus()}else this.parent&&this.parent.parent&&this.parent.focus();break;case 39:if(!this.bExpanded&&(this.childList||this.data.isLazy)){this.toggleExpand();this.focus()}else this.childList&&this.childList[0].focus();break;case 38:for(var c=this.getPrevSibling();c&&c.bExpanded&&c.childList;)c=c.childList[c.childList.length-1];if(!c&&this.parent&&this.parent.parent)c=this.parent;c&&c.focus();break;case 40:if(this.bExpanded&&this.childList)c=
31
- this.childList[0];else{a=this._parentList(false,true);for(var d=a.length-1;d>=0;d--)if(c=a[d].getNextSibling())break}c&&c.focus();break;default:b=false}return!b},onKeypress:function(){},onFocus:function(a){var b=this.tree.options;if(a.type=="blur"||a.type=="focusout"){b.onBlur&&b.onBlur.call(this.tree,this);this.tree.tnFocused&&g(this.tree.tnFocused.span).removeClass(b.classNames.focused);this.tree.tnFocused=null;b.persist&&g.cookie(b.cookieId+"-focus","",b.cookie)}else if(a.type=="focus"||a.type==
32
- "focusin"){if(this.tree.tnFocused&&this.tree.tnFocused!==this){this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused);g(this.tree.tnFocused.span).removeClass(b.classNames.focused)}this.tree.tnFocused=this;b.onFocus&&b.onFocus.call(this.tree,this);g(this.tree.tnFocused.span).addClass(b.classNames.focused);b.persist&&g.cookie(b.cookieId+"-focus",this.data.key,b.cookie)}},visit:function(a,b){var c=true;if(b===true){c=a(this);if(c===false||c=="skip")return c}if(this.childList)for(var d=
32
+ this.childList[0];else{a=this._parentList(false,true);for(var d=a.length-1;d>=0;d--)if(c=a[d].getNextSibling())break}c&&c.focus();break;default:b=false}return!b},_onKeypress:function(){},_onFocus:function(a){var b=this.tree.options;if(a.type=="blur"||a.type=="focusout"){b.onBlur&&b.onBlur.call(this.tree,this);this.tree.tnFocused&&f(this.tree.tnFocused.span).removeClass(b.classNames.focused);this.tree.tnFocused=null;b.persist&&f.cookie(b.cookieId+"-focus","",b.cookie)}else if(a.type=="focus"||a.type==
33
+ "focusin"){if(this.tree.tnFocused&&this.tree.tnFocused!==this){this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused);f(this.tree.tnFocused.span).removeClass(b.classNames.focused)}this.tree.tnFocused=this;b.onFocus&&b.onFocus.call(this.tree,this);f(this.tree.tnFocused.span).addClass(b.classNames.focused);b.persist&&f.cookie(b.cookieId+"-focus",this.data.key,b.cookie)}},visit:function(a,b){var c=true;if(b===true){c=a(this);if(c===false||c=="skip")return c}if(this.childList)for(var d=
33
34
  0;d<this.childList.length;d++){c=this.childList[d].visit(a,true);if(c===false)break}return c},visitParents:function(a,b){if(b&&a(this)===false)return false;for(var c=this.parent;c;){if(a(c)===false)return false;c=c.parent}return true},remove:function(){if(this===this.tree.root)throw"Cannot remove system root";return this.parent.removeChild(this)},removeChild:function(a){var b=this.childList;if(b.length==1){if(a!==b[0])throw"removeChild: invalid child";return this.removeChildren()}a===this.tree.activeNode&&
34
- a.deactivate();if(this.tree.options.persist){a.bSelected&&this.tree.persistence.clearSelect(a.data.key);a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)}a.removeChildren(true);this.ul.removeChild(a.li);for(var c=0;c<b.length;c++)if(b[c]===a){this.childList.splice(c,1);delete a;break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,d=this.childList;if(d){for(var e=0;e<d.length;e++){var f=d[e];f===c.activeNode&&!b&&f.deactivate();if(this.tree.options.persist&&
35
- !b){f.bSelected&&this.tree.persistence.clearSelect(f.data.key);f.bExpanded&&this.tree.persistence.clearExpand(f.data.key)}f.removeChildren(true,b);try{this.ul.removeChild(f.li)}catch(h){this.tree.logDebug("%s.removeChildren: couldnt remove LI",this,h)}delete f}this.childList=null}if(!a){this.isLoading=false;this.render()}},setTitle:function(a){this.fromDict({title:a})},reload:function(){throw"Use reloadChildren() instead";},reloadChildren:function(a){if(this.parent===null)throw"Use tree.reload() instead";
36
- else if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,f){b.tree.$tree.unbind(c);b.tree.logInfo("loaded %o, %o, %o",d,e,f);if(e!==b)throw"got invalid load event";a.call(b.tree,e,f)})}this.removeChildren();this._loadContent()},loadKeyPath:function(a,b,c){this.tree.logDebug("%s.loadKeyPath(%s, %s)",this,a,b);if(a===""){this.tree.logDebug("%s.loadKeyPath(%s, %s): end node!",
37
- this,a,b);b&&this.makeVisible()}else{var d=a.split(this.tree.options.keyPathSeparator);if(d[0]=="")throw"Key path must be relative (don't start with '/')";for(var e=d.shift(),f=0;f<this.childList.length;f++){var h=this.childList[f];if(h.data.key===e){if(h.data.isLazy&&(h.childlist===null||h.childlist===undefined)){this.tree.logDebug("%s.loadKeyPath(%s, %s) -> reloading %s...",this,a,b,h);var i=this;h.reloadChildren(function(j,m){if(m){i.tree.logDebug("%s.loadKeyPath(%s, %s) -> reloaded %s.",j,a,b,
38
- j);j.loadKeyPath(d.join(i.tree.options.keyPathSeparator),b,c)}else this.tree.logWarning("%s.loadKeyPath(%s, %s) -> reloadChildren() failed.",i,a,b)})}else h.loadKeyPath(d.join(this.tree.options.keyPathSeparator),b,c);return}}this.tree.logWarning("Node not found: "+e)}},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(false);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,
39
- d=c.options,e=c.persistence;a.parent=this;if(this.childList===null)this.childList=[];else b||g(this.childList[this.childList.length-1].span).removeClass(d.classNames.lastsib);if(b){var f=g.inArray(b,this.childList);if(f<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(f,0,a)}else this.childList.push(a);f=c.isInitializing();if(d.persist&&e.cookiesFound&&f){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=g.inArray(a.data.key,e.expandedKeyList)>=
40
- 0;a.bSelected=g.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=a;if(d.persist)e.activeKey=a.data.key}if(a.data.focus){c.focusNode=a;if(d.persist)e.focusedKey=a.data.key}a.bExpanded=a.data.expand===true;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===true;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=true;if(a.bSelected&&d.selectMode==3)for(d=this;d;){d.hasSubSel||d._setSubSel(true);d=d.parent}c.bEnableUpdate&&
41
- this.render();return a},addChild:function(a,b){if(!(!a||a.length===0)){if(a instanceof p)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(false),d=null,e=0;e<a.length;e++){var f=a[e],h=this._addChildNode(new p(this,this.tree,f),b);d||(d=h);f.children&&h.addChild(f.children,null)}this.tree.enableUpdate(c);return d}},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,null)},appendAjax:function(a){this.removeChildren(false,
42
- true);this.setLazyNodeStatus(DTNodeStatus_Loading);var b=this,c=a.success,d=a.error,e="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,f=g.extend({},this.tree.options.ajaxDefaults,a,{success:function(h){var i=b.tree.phase;b.tree.phase="init";b.addChild(h,null);b.tree.phase="postInit";b.setLazyNodeStatus(DTNodeStatus_Ok);c&&c.call(f,b);b.tree.logInfo("trigger "+e);b.tree.$tree.trigger(e,[b,true]);b.tree.phase=i},error:function(h,i,j){b.tree.logWarning("appendAjax failed:",i,":\n",
43
- h,"\n",j);b.setLazyNodeStatus(DTNodeStatus_Error,{info:i,tooltip:""+j});d&&d.call(f,b,h,i,j);b.tree.$tree.trigger(e,[b,false])}});g.ajax(f)},move:function(a,b){if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===undefined||b=="over")b="child";var c=this.parent,d=b==="child"?a:a.parent;if(d.isDescendantOf(this))throw"Cannot move a node to it's own descendant";if(this.parent.childList.length==1){this.parent.childList=null;this.parent.bExpanded=false}else{var e=g.inArray(this,this.parent.childList);
44
- if(e<0)throw"Internal error";this.parent.childList.splice(e,1)}this.parent.ul.removeChild(this.li);this.parent=d;if(d.hasChildren())switch(b){case "child":d.childList.push(this);break;case "before":e=g.inArray(a,d.childList);if(e<0)throw"Internal error";d.childList.splice(e,0,this);break;case "after":e=g.inArray(a,d.childList);if(e<0)throw"Internal error";d.childList.splice(e+1,0,this);break;default:throw"Invalid mode "+b;}else{d.childList=[this];if(!d.ul){d.ul=document.createElement("ul");d.ul.style.display=
45
- "none";d.li.appendChild(d.ul)}}d.ul.appendChild(this.li);if(this.tree!==a.tree){this.visit(function(f){f.tree=a.tree},null,true);throw"Not yet implemented.";}c.isDescendantOf(d)||c.render();d.isDescendantOf(c)||d.render()}},lastentry:undefined};var n=o.create();n._getTreePersistData=function(a,b){var c=new n(a,b);c.read();return c.toDict()};getDynaTreePersistData=n._getTreePersistData;n.prototype={initialize:function(a,b){this._log("DynaTreeStatus: initialize");if(a===undefined)a=g.ui.dynatree.prototype.options.cookieId;
46
- b=g.extend({},g.ui.dynatree.prototype.options.cookie,b);this.cookieId=a;this.cookieOpts=b;this.cookiesFound=undefined;this.selectedKeyList=this.expandedKeyList=this.focusedKey=this.activeKey=null},_log:function(){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)},read:function(){this._log("DynaTreeStatus: read");this.cookiesFound=false;var a=g.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=g.cookie(this.cookieId+"-focus");
47
- this.focusedKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=g.cookie(this.cookieId+"-expand");this.expandedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=true;a=g.cookie(this.cookieId+"-select");this.selectedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=true},write:function(){this._log("DynaTreeStatus: write");g.cookie(this.cookieId+"-active",this.activeKey===null?"":this.activeKey,this.cookieOpts);g.cookie(this.cookieId+"-focus",this.focusedKey===null?"":this.focusedKey,
48
- this.cookieOpts);g.cookie(this.cookieId+"-expand",this.expandedKeyList===null?"":this.expandedKeyList.join(","),this.cookieOpts);g.cookie(this.cookieId+"-select",this.selectedKeyList===null?"":this.selectedKeyList.join(","),this.cookieOpts)},addExpand:function(a){this._log("addExpand(%o)",a);if(g.inArray(a,this.expandedKeyList)<0){this.expandedKeyList.push(a);g.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},clearExpand:function(a){this._log("clearExpand(%o)",a);a=
49
- g.inArray(a,this.expandedKeyList);if(a>=0){this.expandedKeyList.splice(a,1);g.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},addSelect:function(a){this._log("addSelect(%o)",a);if(g.inArray(a,this.selectedKeyList)<0){this.selectedKeyList.push(a);g.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},clearSelect:function(a){this._log("clearSelect(%o)",a);a=g.inArray(a,this.selectedKeyList);if(a>=0){this.selectedKeyList.splice(a,1);g.cookie(this.cookieId+
50
- "-select",this.selectedKeyList.join(","),this.cookieOpts)}},isReloading:function(){return this.cookiesFound===true},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,selectedKeyList:this.selectedKeyList}},lastentry:undefined};var q=o.create();q.version="$Version:$";q.prototype={initialize:function(a){this.phase="init";this.$widget=a;this.options=a.options;this.$tree=a.element;this.timer=null;this.divTree=
51
- this.$tree.get(0);l(this)},_load:function(){var a=this.options;this.bEnableUpdate=true;this._nodeCount=1;this.focusNode=this.activeNode=null;a.rootVisible!==undefined&&_log("warn","Option 'rootVisible' is no longer supported.");a.title!==undefined&&_log("warn","Option 'title' is no longer supported.");if(a.minExpandLevel<1){_log("warn","Option 'minExpandLevel' must be >= 1.");a.minExpandLevel=1}if(a.classNames!==g.ui.dynatree.prototype.options.classNames)a.classNames=g.extend({},g.ui.dynatree.prototype.options.classNames,
52
- a.classNames);a.imagePath||g("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0){a.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/";logMsg("Guessing imagePath from '%s': '%s'",this.src,a.imagePath);return false}});this.persistence=new n(a.cookieId,a.cookie);if(a.persist){g.cookie||_log("warn","Please include jquery.cookie.js to use persistence.");this.persistence.read()}this.logDebug("DynaTree.persistence: %o",this.persistence.toDict());
53
- this.cache={tagEmpty:"<span class='"+a.classNames.empty+"'></span>",tagVline:"<span class='"+a.classNames.vline+"'></span>",tagExpander:"<span class='"+a.classNames.expander+"'></span>",tagConnector:"<span class='"+a.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+a.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+a.classNames.checkbox+"'></span>",lastentry:undefined};if(a.children||a.initAjax&&a.initAjax.url||a.initId)g(this.divTree).empty();else this.divRoot&&g(this.divRoot).remove();
54
- this.tnRoot=new p(null,this,{});this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var b=this.tnRoot,c=a.persist&&this.persistence.isReloading(),d=false,e=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");if(a.children)b.addChild(a.children);else if(a.initAjax&&a.initAjax.url){d=true;b.data.isLazy=true;this._reloadAjax()}else if(a.initId)this._createFromTag(b,g("#"+a.initId));else{var f=this.$tree.find(">ul:first").hide();this._createFromTag(b,f);f.remove()}this._checkConsistency();
55
- this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(e);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";a.persist&&this.persistence.write();if(this.focusNode&&this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!d&&a.onPostInit&&a.onPostInit.call(this,c,false);this.phase="idle"},_setNoUpdate:function(a){var b=this.options,c={fx:b.fx,autoFocus:b.autoFocus,
56
- autoCollapse:b.autoCollapse};if(a===true){b.autoFocus=false;b.fx=null;b.autoCollapse=false}else{b.autoFocus=a.autoFocus;b.fx=a.fx;b.autoCollapse=a.autoCollapse}return c},_reloadAjax:function(){var a=this.options;if(!a.initAjax||!a.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var b=this.persistence,c=g.extend({},a.initAjax);if(c.addActiveKey)c.data.activeKey=b.activeKey;if(c.addFocusedKey)c.data.focusedKey=b.focusedKey;if(c.addExpandedKeyList)c.data.expandedKeyList=b.expandedKeyList.join(",");
57
- if(c.addSelectedKeyList)c.data.selectedKeyList=b.selectedKeyList.join(",");if(a.onPostInit){c.success&&this.logWarning("initAjax: success callback is ignored when onPostInit was specified.");c.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");var d=b.isReloading();c.success=function(e){a.onPostInit.call(e.tree,d,false)};c.error=function(e){a.onPostInit.call(e.tree,d,true)}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(c)},
58
- toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(true)},getPersistData:function(){return this.persistence.toDict()},logDebug:function(){if(this.options.debugLevel>=2){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}},logInfo:function(){if(this.options.debugLevel>=1){Array.prototype.unshift.apply(arguments,["info"]);_log.apply(this,arguments)}},logWarning:function(){Array.prototype.unshift.apply(arguments,["warn"]);
59
- _log.apply(this,arguments)},isInitializing:function(){return this.phase=="init"||this.phase=="postInit"},isReloading:function(){return(this.phase=="init"||this.phase=="postInit")&&this.options.persist&&this.persistence.cookiesFound},isUserEvent:function(){return this.phase=="userEvent"},redraw:function(){this.logDebug("dynatree.redraw()...");this.tnRoot.render();this.logDebug("dynatree.redraw() done.")},reload:function(){this._load()},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},
35
+ a.deactivate();if(this.tree.options.persist){a.bSelected&&this.tree.persistence.clearSelect(a.data.key);a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)}a.removeChildren(true);this.ul.removeChild(a.li);for(var c=0;c<b.length;c++)if(b[c]===a){this.childList.splice(c,1);delete a;break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,d=this.childList;if(d){for(var e=0;e<d.length;e++){var g=d[e];g===c.activeNode&&!b&&g.deactivate();if(this.tree.options.persist&&
36
+ !b){g.bSelected&&this.tree.persistence.clearSelect(g.data.key);g.bExpanded&&this.tree.persistence.clearExpand(g.data.key)}g.removeChildren(true,b);this.ul&&this.ul.removeChild(g.li);delete g}this.childList=null}if(!a){this.isLoading=false;this.render()}},setTitle:function(a){this.fromDict({title:a})},reload:function(){throw"Use reloadChildren() instead";},reloadChildren:function(a){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";
37
+ if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,g){b.tree.$tree.unbind(c);b.tree.logInfo("loaded %o, %o, %o",d,e,g);if(e!==b)throw"got invalid load event";a.call(b.tree,e,g)})}this.removeChildren();this._loadContent()},_loadKeyPath:function(a,b){var c=this.tree;c.logDebug("%s._loadKeyPath(%s)",this,a);if(a==="")throw"Key path must not be empty";var d=a.split(c.options.keyPathSeparator);if(d[0]==="")throw"Key path must be relative (don't start with '/')";
38
+ for(var e=d.shift(),g=0;g<this.childList.length;g++){var h=this.childList[g];if(h.data.key===e){if(d.length===0)b.call(c,h,"ok");else if(h.data.isLazy&&(h.childList===null||h.childList===undefined)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,h);var i=this;h.reloadChildren(function(j,l){if(l){c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",j,a,j);b.call(c,h,"loaded");j._loadKeyPath(d.join(c.options.keyPathSeparator),b)}else{c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",
39
+ i,a);b.call(c,h,"error")}})}else{b.call(c,h,"loaded");h._loadKeyPath(d.join(c.options.keyPathSeparator),b)}return}}c.logWarning("Node not found: "+e)},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(false);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=c.persistence;a.parent=this;if(this.childList===null)this.childList=[];else b||f(this.childList[this.childList.length-
40
+ 1].span).removeClass(d.classNames.lastsib);if(b){var g=f.inArray(b,this.childList);if(g<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(g,0,a)}else this.childList.push(a);g=c.isInitializing();if(d.persist&&e.cookiesFound&&g){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=f.inArray(a.data.key,e.expandedKeyList)>=0;a.bSelected=f.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=a;if(d.persist)e.activeKey=
41
+ a.data.key}if(a.data.focus){c.focusNode=a;if(d.persist)e.focusedKey=a.data.key}a.bExpanded=a.data.expand===true;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===true;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=true;if(a.bSelected&&d.selectMode==3)for(d=this;d;){d.hasSubSel||d._setSubSel(true);d=d.parent}c.bEnableUpdate&&this.render();return a},addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+
42
+ a;else if(!a||a.length===0)return;else if(a instanceof p)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(false),d=null,e=0;e<a.length;e++){var g=a[e],h=this._addChildNode(new p(this,this.tree,g),b);d||(d=h);g.children&&h.addChild(g.children,null)}this.tree.enableUpdate(c);return d},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,null)},appendAjax:function(a){this.removeChildren(false,true);
43
+ this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var b=a.debugLazyDelay,c=this;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+b);setTimeout(function(){c.appendAjax(a)},b)}else{c=this;var d=a.success,e=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=f.extend({},this.tree.options.ajaxDefaults,a,{success:function(i){var j=c.tree.phase;c.tree.phase="init";if(!f.isArray(i)||i.length!==0)c.addChild(i,null);c.tree.phase="postInit";
44
+ d&&d.call(h,c);c.tree.logInfo("trigger "+g);c.tree.$tree.trigger(g,[c,true]);c.tree.phase=j;c.setLazyNodeStatus(DTNodeStatus_Ok);if(f.isArray(i)&&i.length===0){c.childList=[];c.render()}},error:function(i,j,l){c.tree.logWarning("appendAjax failed:",j,":\n",i,"\n",l);e&&e.call(h,c,i,j,l);c.tree.$tree.trigger(g,[c,false]);c.setLazyNodeStatus(DTNodeStatus_Error,{info:j,tooltip:""+l})}});f.ajax(h)}},move:function(a,b){if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===undefined||b=="over")b=
45
+ "child";var c=this.parent,d=b==="child"?a:a.parent;if(d.isDescendantOf(this))throw"Cannot move a node to it's own descendant";if(this.parent.childList.length==1){this.parent.childList=null;this.parent.bExpanded=false}else{var e=f.inArray(this,this.parent.childList);if(e<0)throw"Internal error";this.parent.childList.splice(e,1)}this.parent.ul.removeChild(this.li);this.parent=d;if(d.hasChildren())switch(b){case "child":d.childList.push(this);break;case "before":e=f.inArray(a,d.childList);if(e<0)throw"Internal error";
46
+ d.childList.splice(e,0,this);break;case "after":e=f.inArray(a,d.childList);if(e<0)throw"Internal error";d.childList.splice(e+1,0,this);break;default:throw"Invalid mode "+b;}else{d.childList=[this];if(!d.ul){d.ul=document.createElement("ul");d.ul.style.display="none";d.li.appendChild(d.ul)}}d.ul.appendChild(this.li);if(this.tree!==a.tree){this.visit(function(g){g.tree=a.tree},null,true);throw"Not yet implemented.";}c.isDescendantOf(d)||c.render();d.isDescendantOf(c)||d.render()}},lastentry:undefined};
47
+ var n=o.create();n._getTreePersistData=function(a,b){var c=new n(a,b);c.read();return c.toDict()};getDynaTreePersistData=n._getTreePersistData;n.prototype={initialize:function(a,b){this._log("DynaTreeStatus: initialize");if(a===undefined)a=f.ui.dynatree.prototype.options.cookieId;b=f.extend({},f.ui.dynatree.prototype.options.cookie,b);this.cookieId=a;this.cookieOpts=b;this.cookiesFound=undefined;this.selectedKeyList=this.expandedKeyList=this.focusedKey=this.activeKey=null},_log:function(){Array.prototype.unshift.apply(arguments,
48
+ ["debug"]);_log.apply(this,arguments)},read:function(){this._log("DynaTreeStatus: read");this.cookiesFound=false;var a=f.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-focus");this.focusedKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-expand");this.expandedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-select");this.selectedKeyList=a===null?[]:
49
+ a.split(",");if(a!==null)this.cookiesFound=true},write:function(){this._log("DynaTreeStatus: write");f.cookie(this.cookieId+"-active",this.activeKey===null?"":this.activeKey,this.cookieOpts);f.cookie(this.cookieId+"-focus",this.focusedKey===null?"":this.focusedKey,this.cookieOpts);f.cookie(this.cookieId+"-expand",this.expandedKeyList===null?"":this.expandedKeyList.join(","),this.cookieOpts);f.cookie(this.cookieId+"-select",this.selectedKeyList===null?"":this.selectedKeyList.join(","),this.cookieOpts)},
50
+ addExpand:function(a){this._log("addExpand(%o)",a);if(f.inArray(a,this.expandedKeyList)<0){this.expandedKeyList.push(a);f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},clearExpand:function(a){this._log("clearExpand(%o)",a);a=f.inArray(a,this.expandedKeyList);if(a>=0){this.expandedKeyList.splice(a,1);f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},addSelect:function(a){this._log("addSelect(%o)",a);if(f.inArray(a,this.selectedKeyList)<
51
+ 0){this.selectedKeyList.push(a);f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},clearSelect:function(a){this._log("clearSelect(%o)",a);a=f.inArray(a,this.selectedKeyList);if(a>=0){this.selectedKeyList.splice(a,1);f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},isReloading:function(){return this.cookiesFound===true},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,
52
+ selectedKeyList:this.selectedKeyList}},lastentry:undefined};var q=o.create();q.version="$Version:$";q.prototype={initialize:function(a){this.phase="init";this.$widget=a;this.options=a.options;this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);m(this)},_load:function(a){var b=this.options;this.bEnableUpdate=true;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==undefined&&_log("warn","Option 'rootVisible' is no longer supported.");b.title!==undefined&&_log("warn",
53
+ "Option 'title' is no longer supported.");if(b.minExpandLevel<1){_log("warn","Option 'minExpandLevel' must be >= 1.");b.minExpandLevel=1}if(b.classNames!==f.ui.dynatree.prototype.options.classNames)b.classNames=f.extend({},f.ui.dynatree.prototype.options.classNames,b.classNames);if(b.ajaxDefaults!==f.ui.dynatree.prototype.options.ajaxDefaults)b.ajaxDefaults=f.extend({},f.ui.dynatree.prototype.options.ajaxDefaults,b.ajaxDefaults);if(b.dnd!==f.ui.dynatree.prototype.options.dnd)b.dnd=f.extend({},f.ui.dynatree.prototype.options.dnd,
54
+ b.dnd);b.imagePath||f("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0){b.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/";logMsg("Guessing imagePath from '%s': '%s'",this.src,b.imagePath);return false}});this.persistence=new n(b.cookieId,b.cookie);if(b.persist){f.cookie||_log("warn","Please include jquery.cookie.js to use persistence.");this.persistence.read()}this.logDebug("DynaTree.persistence: %o",this.persistence.toDict());
55
+ this.cache={tagEmpty:"<span class='"+b.classNames.empty+"'></span>",tagVline:"<span class='"+b.classNames.vline+"'></span>",tagExpander:"<span class='"+b.classNames.expander+"'></span>",tagConnector:"<span class='"+b.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:undefined};if(b.children||b.initAjax&&b.initAjax.url||b.initId)f(this.divTree).empty();else this.divRoot&&f(this.divRoot).remove();
56
+ this.tnRoot=new p(null,this,{});this.tnRoot.bExpanded=true;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var c=this.tnRoot,d=b.persist&&this.persistence.isReloading(),e=false,g=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");if(b.children)c.addChild(b.children);else if(b.initAjax&&b.initAjax.url){e=true;c.data.isLazy=true;this._reloadAjax(a)}else if(b.initId)this._createFromTag(c,f("#"+b.initId));else{a=this.$tree.find(">ul:first").hide();this._createFromTag(c,
57
+ a);a.remove()}this._checkConsistency();this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(g);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();if(this.focusNode&&this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!e&&b.onPostInit&&b.onPostInit.call(this,d,false);this.phase="idle"},_reloadAjax:function(a){var b=
58
+ this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var c=this.persistence,d=f.extend({},b.initAjax);if(d.addActiveKey)d.data.activeKey=c.activeKey;if(d.addFocusedKey)d.data.focusedKey=c.focusedKey;if(d.addExpandedKeyList)d.data.expandedKeyList=c.expandedKeyList.join(",");if(d.addSelectedKeyList)d.data.selectedKeyList=c.selectedKeyList.join(",");if(b.onPostInit){d.success&&this.logWarning("initAjax: success callback is ignored when onPostInit was specified.");
59
+ d.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");var e=c.isReloading();d.success=function(g){b.onPostInit.call(g.tree,e,false);a&&a.call(g.tree,"ok")};d.error=function(g){b.onPostInit.call(g.tree,e,true);a&&a.call(g.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(d)},toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(true)},serializeArray:function(a){a=
60
+ this.getSelectedNodes(a);for(var b=this.$tree.attr("name")||this.$tree.attr("id"),c=[],d=0,e=a.length;d<e;d++)c.push({name:b,value:a[d].data.key});return c},getPersistData:function(){return this.persistence.toDict()},logDebug:function(){if(this.options.debugLevel>=2){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}},logInfo:function(){if(this.options.debugLevel>=1){Array.prototype.unshift.apply(arguments,["info"]);_log.apply(this,arguments)}},logWarning:function(){Array.prototype.unshift.apply(arguments,
61
+ ["warn"]);_log.apply(this,arguments)},isInitializing:function(){return this.phase=="init"||this.phase=="postInit"},isReloading:function(){return(this.phase=="init"||this.phase=="postInit")&&this.options.persist&&this.persistence.cookiesFound},isUserEvent:function(){return this.phase=="userEvent"},redraw:function(){this.logDebug("dynatree.redraw()...");this.tnRoot.render(false);this.logDebug("dynatree.redraw() done.")},reload:function(a){this._load(a)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},
60
62
  disable:function(){this.$widget.disable()},getNodeByKey:function(a){var b=document.getElementById(this.options.idPrefix+a);if(b)return b.dtnode?b.dtnode:null;var c=null;this.visit(function(d){if(d.data.key==a){c=d;return false}},true);return c},getActiveNode:function(){return this.activeNode},reactivate:function(a){var b=this.activeNode;if(b){this.activeNode=null;b.activate();a&&b.focus()}},getSelectedNodes:function(a){var b=[];this.tnRoot.visit(function(c){if(c.bSelected){b.push(c);if(a===true)return"skip"}});
61
- return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a){this.activeNode&&this.activeNode.deactivate();return this.activeNode=null}a.focus();a.activate();return a},loadKeyPath:function(a,b,c){a=a.split(this.options.keyPathSeparator);a[0]==""&&a.shift();if(a[0]==this.tnRoot.data.key){this.logDebug("Removed leading root key.");a.shift()}a=a.join(this.options.keyPathSeparator);return this.tnRoot.loadKeyPath(a,b,c)},selectKey:function(a,b){var c=this.getNodeByKey(a);if(!c)return null;
62
- c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var d=g(this),e=d.find(">span:first");if(e.length)e=e.html();else{e=d.html();var f=e.search(/<ul/i);e=f>=0?g.trim(e.substring(0,f)):g.trim(e)}e={title:e,isFolder:d.hasClass("folder"),isLazy:d.hasClass("lazy"),expand:d.hasClass("expanded"),select:d.hasClass("selected"),
63
- activate:d.hasClass("active"),focus:d.hasClass("focused"),noLink:d.hasClass("noLink")};if(d.attr("title"))e.tooltip=d.attr("title");if(d.attr("id"))e.key=d.attr("id");if(d.attr("data"))if(f=g.trim(d.attr("data"))){if(f.charAt(0)!="{")f="{"+f+"}";try{g.extend(e,eval("("+f+")"))}catch(h){throw"Error parsing node data: "+h+"\ndata:\n'"+f+"'";}}e=a.addChild(e);d=d.find(">ul:first");d.length&&c._createFromTag(e,d)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,d,e){a=a?g(a.span):null;b=
64
- g(b.span);if(!this.$dndMarker){this.$dndMarker=g("<div id='dynatree-drop-marker'></div>").hide().prependTo("body");logMsg("Creating marker: %o",this.$dndMarker)}if(d==="after"||d==="before"||d==="over"){var f=b.position();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-before");f.top-=8;break;case "after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-after");
65
- f.top+=8;break;default:this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-before");this.$dndMarker.addClass("dynatree-drop-over");b.addClass("dynatree-drop-target");f.left+=8}this.$dndMarker.css({left:f.left+"px",top:f.top+"px"}).show()}else{b.removeClass("dynatree-drop-target");this.$dndMarker.hide()}d==="after"?b.addClass("dynatree-drop-after"):b.removeClass("dynatree-drop-after");d==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");if(e===true){a&&a.addClass("dynatree-drop-accept");
66
- b.addClass("dynatree-drop-accept");c.addClass("dynatree-drop-accept")}else{a&&a.removeClass("dynatree-drop-accept");b.removeClass("dynatree-drop-accept");c.removeClass("dynatree-drop-accept")}if(e===false){a&&a.addClass("dynatree-drop-reject");b.addClass("dynatree-drop-reject");c.addClass("dynatree-drop-reject")}else{a&&a.removeClass("dynatree-drop-reject");b.removeClass("dynatree-drop-reject");c.removeClass("dynatree-drop-reject")}},_onDragEvent:function(a,b,c,d,e,f){a!=="over"&&this.logDebug("tree._onDragEvent(%s, %o, %o) - %o",
67
- a,b,c,this);var h=this.options.dnd,i=null,j=g(b.span);switch(a){case "helper":c=g("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>").append(g(d.target).closest("a").clone());c.data("dtSourceNode",b);logMsg("helper.sourceNode=%o",c.data("dtSourceNode"));i=c;break;case "start":if(b.isStatusNode())i=false;else if(h.onDragStart)i=h.onDragStart(b);if(i===false){this.logDebug("tree.onDragStart() cancelled");e.helper.trigger("mouseup");e.helper.hide()}else j.addClass("dynatree-drag-source");
68
- break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;i={over:i!==false&&(i===true||i==="over"||g.inArray("over",i)>=0),before:i!==false&&(i===true||i==="before"||g.inArray("before",i)>=0),after:i!==false&&(i===true||i==="after"||g.inArray("after",i)>=0)};e.helper.data("enterResponse",i);this.logDebug("helper.enterResponse: %o",i);break;case "over":f=e.helper.data("enterResponse");a=null;if(f===false)break;else if(typeof f==="string")a=f;else{var m=j.position();d={x:d.clientX-m.left,y:d.clientY-
69
- m.top};j={x:d.x/j.width(),y:d.y/j.height()};if(f.after&&j.y>0.75)a="after";else if(!f.over&&f.after&&j.y>0.5)a="after";else if(f.before&&j.y<=0.25)a="before";else if(!f.over&&f.before&&j.y<=0.5)a="before";else if(f.over)a="over";if(h.preventVoidMoves)if(b===c){logMsg(" drop over source node prevented");a=null}else if(a==="before"&&c&&b===c.getNextSibling()){logMsg(" drop after source node prevented");a=null}else if(a==="after"&&c&&b===c.getPrevSibling()){logMsg(" drop before source node prevented");
70
- a=null}else if(a==="over"&&c&&c.parent===b&&c.isLastSibling()){logMsg(" drop last child over own parent prevented");a=null}logMsg("hitMode: %s - %s - %s",a,b.parent===c,b.isLastSibling());e.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==false&&!b.bExpanded&&b.scheduleAction("expand",h.autoExpandMS);if(a&&h.onDragOver)i=h.onDragOver(b,c,a);this._setDndStatus(c,b,e.helper,a,i!==false);break;case "drop":(a=e.helper.data("hitMode"))&&h.onDrop&&h.onDrop(b,c,a,e,f);break;case "leave":b.scheduleAction("cancel");
71
- e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.helper,"out",undefined);h.onDragLeave&&h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");h.onDragStop&&h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},lastentry:undefined};g.widget("ui.dynatree",{_init:function(){if(parseFloat(g.ui.version)<1.8){_log("warn","ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher.");return this._create()}_log("debug",
72
- "ui.dynatree._init() was called; no current default functionality.")},_create:function(){logMsg("Dynatree._create(): version='%s', debugLevel=%o.",q.version,this.options.debugLevel);this.options.event+=".dynatree";this.element.get(0);this.tree=new q(this);this.tree._load();this.tree.logDebug("Dynatree._init(): done.")},bind:function(){function a(e){e=e=g.event.fix(e||window.event);var f=k(e.target);return f?f.onFocus(e):false}var b=this.element,c=this.options;this.unbind();var d="click.dynatree dblclick.dynatree";
73
- if(c.keyboard)d+=" keypress.dynatree keydown.dynatree";b.bind(d,function(e){var f=k(e.target);if(!f)return true;var h=f.tree.phase;f.tree.phase="userEvent";try{f.tree.logDebug("bind(%o): dtnode: %o",e,f);switch(e.type){case "click":return c.onClick&&c.onClick(f,e)===false?false:f.onClick(e);case "dblclick":return c.onDblClick&&c.onDblClick(f,e)===false?false:f.onDblClick(e);case "keydown":return c.onKeydown&&c.onKeydown(f,e)===false?false:f.onKeydown(e);case "keypress":return c.onKeypress&&c.onKeypress(f,
74
- e)===false?false:f.onKeypress(e)}}catch(i){f.tree.logWarning("bind(%o): dtnode: %o, error: %o",e,f,i)}finally{f.tree.phase=h}});b=this.tree.divTree;if(b.addEventListener){b.addEventListener("focus",a,true);b.addEventListener("blur",a,true)}else b.onfocusin=b.onfocusout=a},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind();g.Widget.prototype.enable.apply(this,arguments)},disable:function(){this.unbind();g.Widget.prototype.disable.apply(this,arguments)},getTree:function(){return this.tree},
75
- getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:undefined});g.ui.dynatree.prototype.options={title:"Dynatree",minExpandLevel:1,imagePath:null,children:null,initId:null,initAjax:null,autoFocus:true,keyboard:true,persist:false,autoCollapse:false,clickFolderMode:3,activeVisible:true,checkbox:false,selectMode:2,fx:null,noLink:false,onClick:null,onDblClick:null,onKeydown:null,
76
- onKeypress:null,onFocus:null,onBlur:null,onQueryActivate:null,onQuerySelect:null,onQueryExpand:null,onPostInit:null,onActivate:null,onDeactivate:null,onSelect:null,onExpand:null,onLazyRead:null,dnd:{onDragStart:null,onDragStop:null,autoExpandMS:1E3,preventVoidMoves:true,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:false,dataType:"json"},strings:{loading:"Loading&#8230;",loadError:"Load error!"},generateIds:false,idPrefix:"dynatree-id-",keyPathSeparator:"/",cookieId:"dynatree",
77
- cookie:{expires:null},classNames:{container:"dynatree-container",node:"dynatree-node",folder:"dynatree-folder",empty:"dynatree-empty",vline:"dynatree-vline",expander:"dynatree-expander",connector:"dynatree-connector",checkbox:"dynatree-checkbox",nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",nodeWait:"dynatree-statusnode-wait",hidden:"dynatree-hidden",combinedExpanderPrefix:"dynatree-exp-",combinedIconPrefix:"dynatree-ico-",
78
- hasChildren:"dynatree-has-children",active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},debugLevel:2,lastentry:undefined};g.ui.dynatree.nodedatadefaults={title:null,key:null,isFolder:false,isLazy:false,tooltip:null,icon:null,addClass:null,noLink:false,activate:false,focus:false,expand:false,select:false,hideCheckbox:false,unselectable:false,children:null,lastentry:undefined};
79
- var r=false,s=function(){if(!r){g.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=g(this).data("draggable"),d=b.helper.data("dtSourceNode")||null;logMsg("draggable-connectToDynatree.start, %s",d);logMsg(" this: %o",this);logMsg(" event: %o",a);logMsg(" draggable: %o",c);logMsg(" ui: %o",b);if(d){c.offset.click.top=-2;c.offset.click.left=+16;logMsg(" draggable.offset.click FIXED: %s/%s",c.offset.click.left,c.offset.click.top);return d.tree._onDragEvent("start",
80
- d,null,a,b,c)}},drag:function(a,b){var c=g(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,f=k(a.target);if(a.target&&!f)if(g(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>0){logMsg("Drag event over helper: ignored.");return}b.helper.data("dtTargetNode",f);e&&e!==f&&e.tree._onDragEvent("leave",e,d,a,b,c);if(f)if(f.tree.options.dnd.onDrop)f===e?f.tree._onDragEvent("over",f,d,a,b,c):f.tree._onDragEvent("enter",f,d,a,b,
81
- c)},stop:function(a,b){var c=g(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null;logMsg("draggable-connectToDynatree.stop: targetNode(from event): %s, dtTargetNode: %s",e,b.helper.data("dtTargetNode"));logMsg("draggable-connectToDynatree.stop, %s",d);var f=a.type;logMsg(" type: %o, downEvent: %o, upEvent: %o",f,c._mouseDownEvent,a);logMsg(" targetNode: %o",e);(f=f=="mouseup"&&a.which==1)||logMsg("Drag was cancelled");if(e){f&&e.tree._onDragEvent("drop",
82
- e,d,a,b,c);e.tree._onDragEvent("leave",e,d,a,b,c)}d&&d.tree._onDragEvent("stop",d,null,a,b,c)}});r=true}}})(jQuery);
63
+ return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a){this.activeNode&&this.activeNode.deactivate();return this.activeNode=null}a.focus();a.activate();return a},loadKeyPath:function(a,b){var c=a.split(this.options.keyPathSeparator);c[0]===""&&c.shift();if(c[0]==this.tnRoot.data.key){this.logDebug("Removed leading root key.");c.shift()}a=c.join(this.options.keyPathSeparator);return this.tnRoot._loadKeyPath(a,b)},selectKey:function(a,b){var c=this.getNodeByKey(a);if(!c)return null;
64
+ c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var d=f(this),e=d.find(">span:first");if(e.length)e=e.html();else{e=d.html();var g=e.search(/<ul/i);e=g>=0?f.trim(e.substring(0,g)):f.trim(e)}e={title:e,isFolder:d.hasClass("folder"),isLazy:d.hasClass("lazy"),expand:d.hasClass("expanded"),select:d.hasClass("selected"),
65
+ activate:d.hasClass("active"),focus:d.hasClass("focused"),noLink:d.hasClass("noLink")};if(d.attr("title"))e.tooltip=d.attr("title");if(d.attr("id"))e.key=d.attr("id");if(d.attr("data"))if(g=f.trim(d.attr("data"))){if(g.charAt(0)!="{")g="{"+g+"}";try{f.extend(e,eval("("+g+")"))}catch(h){throw"Error parsing node data: "+h+"\ndata:\n'"+g+"'";}}e=a.addChild(e);d=d.find(">ul:first");d.length&&c._createFromTag(e,d)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,d,e){a=a?f(a.span):null;b=
66
+ f(b.span);if(!this.$dndMarker){this.$dndMarker=f("<div id='dynatree-drop-marker'></div>").hide().prependTo(f(this.divTree).parent());logMsg("Creating marker: %o",this.$dndMarker)}if(d==="after"||d==="before"||d==="over"){var g=b.position();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-before");g.top-=8;break;case "after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-after");
67
+ g.top+=8;break;default:this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-before");this.$dndMarker.addClass("dynatree-drop-over");b.addClass("dynatree-drop-target");g.left+=8}this.$dndMarker.css({left:g.left+"px",top:g.top+"px"}).show()}else{b.removeClass("dynatree-drop-target");this.$dndMarker.hide()}d==="after"?b.addClass("dynatree-drop-after"):b.removeClass("dynatree-drop-after");d==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");if(e===true){a&&a.addClass("dynatree-drop-accept");
68
+ b.addClass("dynatree-drop-accept");c.addClass("dynatree-drop-accept")}else{a&&a.removeClass("dynatree-drop-accept");b.removeClass("dynatree-drop-accept");c.removeClass("dynatree-drop-accept")}if(e===false){a&&a.addClass("dynatree-drop-reject");b.addClass("dynatree-drop-reject");c.addClass("dynatree-drop-reject")}else{a&&a.removeClass("dynatree-drop-reject");b.removeClass("dynatree-drop-reject");c.removeClass("dynatree-drop-reject")}},_onDragEvent:function(a,b,c,d,e,g){a!=="over"&&this.logDebug("tree._onDragEvent(%s, %o, %o) - %o",
69
+ a,b,c,this);var h=this.options.dnd,i=null,j=f(b.span);switch(a){case "helper":c=f("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>").append(f(d.target).closest("a").clone());c.data("dtSourceNode",b);this.logDebug("helper.sourceNode=%o",c.data("dtSourceNode"));i=c;break;case "start":if(b.isStatusNode())i=false;else if(h.onDragStart)i=h.onDragStart(b);if(i===false){this.logDebug("tree.onDragStart() cancelled");e.helper.trigger("mouseup");e.helper.hide()}else j.addClass("dynatree-drag-source");
70
+ break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;i={over:i!==false&&(i===true||i==="over"||f.inArray("over",i)>=0),before:i!==false&&(i===true||i==="before"||f.inArray("before",i)>=0),after:i!==false&&(i===true||i==="after"||f.inArray("after",i)>=0)};e.helper.data("enterResponse",i);this.logDebug("helper.enterResponse: %o",i);break;case "over":g=e.helper.data("enterResponse");a=null;if(g===false)break;else if(typeof g==="string")a=g;else{var l=j.offset();d={x:d.pageX-l.left,y:d.pageY-l.top};
71
+ j={x:d.x/j.width(),y:d.y/j.height()};if(g.after&&j.y>0.75)a="after";else if(!g.over&&g.after&&j.y>0.5)a="after";else if(g.before&&j.y<=0.25)a="before";else if(!g.over&&g.before&&j.y<=0.5)a="before";else if(g.over)a="over";if(h.preventVoidMoves)if(b===c){this.logDebug(" drop over source node prevented");a=null}else if(a==="before"&&c&&b===c.getNextSibling()){this.logDebug(" drop after source node prevented");a=null}else if(a==="after"&&c&&b===c.getPrevSibling()){this.logDebug(" drop before source node prevented");
72
+ a=null}else if(a==="over"&&c&&c.parent===b&&c.isLastSibling()){this.logDebug(" drop last child over own parent prevented");a=null}this.logDebug("hitMode: %s - %s - %s",a,b.parent===c,b.isLastSibling());e.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==false&&!b.bExpanded&&b.scheduleAction("expand",h.autoExpandMS);if(a&&h.onDragOver)i=h.onDragOver(b,c,a);this._setDndStatus(c,b,e.helper,a,i!==false);break;case "drop":(a=e.helper.data("hitMode"))&&h.onDrop&&h.onDrop(b,c,a,e,
73
+ g);break;case "leave":b.scheduleAction("cancel");e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.helper,"out",undefined);h.onDragLeave&&h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");h.onDragStop&&h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},cancelDrag:function(){var a=f.ui.ddmanager.current;a&&a.cancel()},lastentry:undefined};f.widget("ui.dynatree",{_init:function(){if(parseFloat(f.ui.version)<1.8){_log("warn",
74
+ "ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher.");return this._create()}_log("debug","ui.dynatree._init() was called; no current default functionality.")},_create:function(){logMsg("Dynatree._create(): version='%s', debugLevel=%o.",q.version,this.options.debugLevel);this.options.event+=".dynatree";this.element.get(0);this.tree=new q(this);this.tree._load();this.tree.logDebug("Dynatree._init(): done.")},bind:function(){function a(c){c=c=f.event.fix(c||window.event);
75
+ var d=k(c.target);return d?d._onFocus(c):false}this.unbind();var b="click.dynatree dblclick.dynatree";if(this.options.keyboard)b+=" keypress.dynatree keydown.dynatree";this.element.bind(b,function(c){var d=k(c.target);if(!d)return true;var e=d.tree,g=e.options;e.logDebug("event(%s): dtnode: %s",c.type,d);var h=e.phase;e.phase="userEvent";try{switch(c.type){case "click":return g.onClick&&g.onClick.call(e,d,c)===false?false:d._onClick(c);case "dblclick":return g.onDblClick&&g.onDblClick.call(e,d,c)===
76
+ false?false:d._onDblClick(c);case "keydown":return g.onKeydown&&g.onKeydown.call(e,d,c)===false?false:d._onKeydown(c);case "keypress":return g.onKeypress&&g.onKeypress.call(e,d,c)===false?false:d._onKeypress(c)}}catch(i){e.logWarning("bind(%o): dtnode: %o, error: %o",c,d,i)}finally{e.phase=h}});b=this.tree.divTree;if(b.addEventListener){b.addEventListener("focus",a,true);b.addEventListener("blur",a,true)}else b.onfocusin=b.onfocusout=a},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind();
77
+ f.Widget.prototype.enable.apply(this,arguments)},disable:function(){this.unbind();f.Widget.prototype.disable.apply(this,arguments)},getTree:function(){return this.tree},getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:undefined});if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";f.ui.dynatree.prototype.options={title:"Dynatree",
78
+ minExpandLevel:1,imagePath:null,children:null,initId:null,initAjax:null,autoFocus:true,keyboard:true,persist:false,autoCollapse:false,clickFolderMode:3,activeVisible:true,checkbox:false,selectMode:2,fx:null,noLink:false,onClick:null,onDblClick:null,onKeydown:null,onKeypress:null,onFocus:null,onBlur:null,onQueryActivate:null,onQuerySelect:null,onQueryExpand:null,onPostInit:null,onActivate:null,onDeactivate:null,onSelect:null,onExpand:null,onLazyRead:null,dnd:{onDragStart:null,onDragStop:null,autoExpandMS:1E3,
79
+ preventVoidMoves:true,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:false,dataType:"json"},strings:{loading:"Loading&#8230;",loadError:"Load error!"},generateIds:false,idPrefix:"dynatree-id-",keyPathSeparator:"/",cookieId:"dynatree",cookie:{expires:null},classNames:{container:"dynatree-container",node:"dynatree-node",folder:"dynatree-folder",empty:"dynatree-empty",vline:"dynatree-vline",expander:"dynatree-expander",connector:"dynatree-connector",checkbox:"dynatree-checkbox",
80
+ nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",nodeWait:"dynatree-statusnode-wait",hidden:"dynatree-hidden",combinedExpanderPrefix:"dynatree-exp-",combinedIconPrefix:"dynatree-ico-",nodeLoading:"dynatree-loading",hasChildren:"dynatree-has-children",active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},
81
+ debugLevel:2,lastentry:undefined};if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.defaults=f.ui.dynatree.prototype.options;f.ui.dynatree.nodedatadefaults={title:null,key:null,isFolder:false,isLazy:false,tooltip:null,icon:null,addClass:null,noLink:false,activate:false,focus:false,expand:false,select:false,hideCheckbox:false,unselectable:false,children:null,lastentry:undefined};var r=false,s=function(){if(!r){f.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=f(this).data("draggable"),
82
+ d=b.helper.data("dtSourceNode")||null;logMsg("draggable-connectToDynatree.start, %s",d);logMsg(" this: %o",this);logMsg(" event: %o",a);logMsg(" draggable: %o",c);logMsg(" ui: %o",b);if(d){c.offset.click.top=-2;c.offset.click.left=+16;return d.tree._onDragEvent("start",d,null,a,b,c)}},drag:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,g=k(a.target);if(a.target&&!g)if(f(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>
83
+ 0){logMsg("Drag event over helper: ignored.");return}b.helper.data("dtTargetNode",g);e&&e!==g&&e.tree._onDragEvent("leave",e,d,a,b,c);if(g)if(g.tree.options.dnd.onDrop)g===e?g.tree._onDragEvent("over",g,d,a,b,c):g.tree._onDragEvent("enter",g,d,a,b,c)},stop:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null;logMsg("draggable-connectToDynatree.stop: targetNode(from event): %s, dtTargetNode: %s",e,b.helper.data("dtTargetNode"));logMsg("draggable-connectToDynatree.stop, %s",
84
+ d);var g=a.type;logMsg(" type: %o, downEvent: %o, upEvent: %o",g,c._mouseDownEvent,a);logMsg(" targetNode: %o",e);(g=g=="mouseup"&&a.which==1)||logMsg("Drag was cancelled");if(e){g&&e.tree._onDragEvent("drop",e,d,a,b,c);e.tree._onDragEvent("leave",e,d,a,b,c)}d&&d.tree._onDragEvent("stop",d,null,a,b,c)}});r=true}}})(jQuery);
@@ -80,7 +80,7 @@ span {
80
80
  background-position: left;
81
81
  margin-left: 3px;
82
82
  background-image: image_url("jquery/dynatree/aero/document.png"); }
83
- &.dynatree-checkbox {
83
+ &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
84
84
  width: 16px;
85
85
  height: 16px;
86
86
  display: -moz-inline-box;
@@ -89,9 +89,22 @@ span {
89
89
  background-repeat: no-repeat;
90
90
  background-position: left;
91
91
  margin-left: 3px;
92
- background-image: image_url("jquery/dynatree/aero/cbUnchecked.png");
93
- &:hover {
94
- background-image: image_url("jquery/dynatree/aero/cbUnchecked_hover.png"); } }
92
+ background-image: image_url("jquery/dynatree/aero/cbUnchecked.png"); } }
93
+
94
+ #dynatree-drop-marker {
95
+ width: 16px;
96
+ height: 16px;
97
+ display: -moz-inline-box;
98
+ display: inline-block;
99
+ vertical-align: top;
100
+ background-repeat: no-repeat;
101
+ background-position: left;
102
+ margin-left: 3px;
103
+ background-image: image_url("jquery/dynatree/aero/cbUnchecked.png"); }
104
+
105
+ span {
106
+ &.dynatree-checkbox:hover {
107
+ background-image: image_url("jquery/dynatree/aero/cbUnchecked_hover.png"); }
95
108
  &.dynatree-radio {
96
109
  margin-left: 3px;
97
110
  background-image: image_url("jquery/dynatree/aero/rbUnchecked.png");
@@ -188,6 +201,20 @@ div {
188
201
  &.dynatree-drop-reject span.dynatree-drag-helper-img {
189
202
  background-image: image_url("jquery/dynatree/aero/drop_reject.png"); } }
190
203
 
204
+ /*** Drop marker icon *********************************************************/
205
+
206
+ #dynatree-drop-marker {
207
+ width: 24px;
208
+ position: absolute;
209
+ background-image: image_url("jquery/dynatree/aero/drop_here.png");
210
+ &.dynatree-drop-after, &.dynatree-drop-before {
211
+ width: 64px;
212
+ background-image: image_url("jquery/dynatree/aero/drop_sibling_here.png"); }
213
+ &.dynatree-drop-copy {
214
+ background-image: image_url("jquery/dynatree/aero/copy_here.png"); }
215
+ &.dynatree-drop-move {
216
+ background-image: image_url("jquery/dynatree/aero/move_here.png"); } }
217
+
191
218
  /* Source node while dragging */
192
219
 
193
220
  span {
@@ -199,14 +226,15 @@ span {
199
226
  &.dynatree-drop-target {
200
227
  /*border: 1px solid gray;*/
201
228
  a {
202
- background-repeat: no-repeat;
203
- background-position: right;
229
+ /*background-repeat: no-repeat;*/
230
+ /*background-position: right;*/
204
231
  /*background-image: image_url("jquery/dynatree/aero/drop_child.png");*/ }
205
232
  &.dynatree-drop-accept a {
206
233
  /*border: 1px solid green;*/
207
234
  background-color: #3169C6 !important;
208
235
  color: white !important;
209
- /* @ IE6 */ }
236
+ /* @ IE6 */
237
+ text-decoration: none; }
210
238
  &.dynatree-drop-reject {
211
239
  /*border: 1px solid red;*/ }
212
240
  &.dynatree-drop-after a {
@@ -215,14 +243,3 @@ span {
215
243
  background-image: image_url("jquery/dynatree/aero/drop_append.png");*/ } } }
216
244
 
217
245
  /* Target node while dragging cursor is over it */
218
-
219
- /* Drop marker icon */
220
-
221
- #dynatree_drop_marker {
222
- width: 24px;
223
- position: absolute;
224
- background-image: image_url("jquery/dynatree/aero/drop_here.png");
225
- &.dynatree_drop_copy {
226
- background-image: image_url("jquery/dynatree/aero/copy_here.png"); }
227
- &.dynatree_drop_move {
228
- background-image: image_url("jquery/dynatree/aero/move_here.png"); } }
@@ -80,7 +80,7 @@ span {
80
80
  background-position: left;
81
81
  margin-left: 3px;
82
82
  background-image: image_url("jquery/dynatree/aqua/document.png"); }
83
- &.dynatree-checkbox {
83
+ &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
84
84
  width: 16px;
85
85
  height: 16px;
86
86
  display: -moz-inline-box;
@@ -89,9 +89,22 @@ span {
89
89
  background-repeat: no-repeat;
90
90
  background-position: left;
91
91
  margin-left: 3px;
92
- background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png");
93
- &:hover {
94
- background-image: image_url("jquery/dynatree/aqua/cbUnchecked_hover.png"); } }
92
+ background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png"); } }
93
+
94
+ #dynatree-drop-marker {
95
+ width: 16px;
96
+ height: 16px;
97
+ display: -moz-inline-box;
98
+ display: inline-block;
99
+ vertical-align: top;
100
+ background-repeat: no-repeat;
101
+ background-position: left;
102
+ margin-left: 3px;
103
+ background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png"); }
104
+
105
+ span {
106
+ &.dynatree-checkbox:hover {
107
+ background-image: image_url("jquery/dynatree/aqua/cbUnchecked_hover.png"); }
95
108
  &.dynatree-radio {
96
109
  margin-left: 3px;
97
110
  background-image: image_url("jquery/dynatree/aqua/rbUnchecked.png");
@@ -152,7 +165,7 @@ span {
152
165
  span.dynatree-icon {
153
166
  background-image: image_url("jquery/dynatree/aqua/folder.png"); }
154
167
  &.dynatree-expanded span.dynatree-icon {
155
- background-image: image_url("jquery/dynatree/aqua/folder_open.png"); } }
168
+ background-image: image_url("jquery/dynatree/aqua/folder.png"); } }
156
169
 
157
170
  .dynatree-statusnode-wait span.dynatree-icon {
158
171
  background-image: image_url("jquery/dynatree/aqua/ltWait.gif"); }
@@ -188,6 +201,20 @@ div {
188
201
  &.dynatree-drop-reject span.dynatree-drag-helper-img {
189
202
  background-image: image_url("jquery/dynatree/aqua/drop_reject.png"); } }
190
203
 
204
+ /*** Drop marker icon *********************************************************/
205
+
206
+ #dynatree-drop-marker {
207
+ width: 24px;
208
+ position: absolute;
209
+ background-image: image_url("jquery/dynatree/aqua/drop_here.png");
210
+ &.dynatree-drop-after, &.dynatree-drop-before {
211
+ width: 64px;
212
+ background-image: image_url("jquery/dynatree/aqua/drop_sibling_here.png"); }
213
+ &.dynatree-drop-copy {
214
+ background-image: image_url("jquery/dynatree/aqua/copy_here.png"); }
215
+ &.dynatree-drop-move {
216
+ background-image: image_url("jquery/dynatree/aqua/move_here.png"); } }
217
+
191
218
  /* Source node while dragging */
192
219
 
193
220
  span {
@@ -199,14 +226,15 @@ span {
199
226
  &.dynatree-drop-target {
200
227
  /*border: 1px solid gray;*/
201
228
  a {
202
- background-repeat: no-repeat;
203
- background-position: right;
229
+ /*background-repeat: no-repeat;*/
230
+ /*background-position: right;*/
204
231
  /*background-image: image_url("jquery/dynatree/aqua/drop_child.png");*/ }
205
232
  &.dynatree-drop-accept a {
206
233
  /*border: 1px solid green;*/
207
234
  background-color: #3169C6 !important;
208
235
  color: white !important;
209
- /* @ IE6 */ }
236
+ /* @ IE6 */
237
+ text-decoration: none; }
210
238
  &.dynatree-drop-reject {
211
239
  /*border: 1px solid red;*/ }
212
240
  &.dynatree-drop-after a {
@@ -215,14 +243,3 @@ span {
215
243
  background-image: image_url("jquery/dynatree/aqua/drop_append.png");*/ } } }
216
244
 
217
245
  /* Target node while dragging cursor is over it */
218
-
219
- /* Drop marker icon */
220
-
221
- #dynatree_drop_marker {
222
- width: 24px;
223
- position: absolute;
224
- background-image: image_url("jquery/dynatree/aqua/drop_here.png");
225
- &.dynatree_drop_copy {
226
- background-image: image_url("jquery/dynatree/aqua/copy_here.png"); }
227
- &.dynatree_drop_move {
228
- background-image: image_url("jquery/dynatree/aqua/move_here.png"); } }
@@ -7,7 +7,7 @@ ul {
7
7
  white-space: nowrap;
8
8
  padding: 3px;
9
9
  background-color: white;
10
- border: 1px solid #B8D3EB;
10
+ border: 1px solid #8AB0CA;
11
11
  -moz-border-radius: 4px;
12
12
  -webkit-border-radius: 4px;
13
13
  border-radius: 4px;
@@ -80,7 +80,7 @@ span {
80
80
  background-position: left;
81
81
  margin-left: 3px;
82
82
  background-image: image_url("jquery/dynatree/crystal/document.png"); }
83
- &.dynatree-checkbox {
83
+ &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
84
84
  width: 16px;
85
85
  height: 16px;
86
86
  display: -moz-inline-box;
@@ -89,9 +89,22 @@ span {
89
89
  background-repeat: no-repeat;
90
90
  background-position: left;
91
91
  margin-left: 3px;
92
- background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png");
93
- &:hover {
94
- background-image: image_url("jquery/dynatree/crystal/cbUnchecked_hover.png"); } }
92
+ background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png"); } }
93
+
94
+ #dynatree-drop-marker {
95
+ width: 16px;
96
+ height: 16px;
97
+ display: -moz-inline-box;
98
+ display: inline-block;
99
+ vertical-align: top;
100
+ background-repeat: no-repeat;
101
+ background-position: left;
102
+ margin-left: 3px;
103
+ background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png"); }
104
+
105
+ span {
106
+ &.dynatree-checkbox:hover {
107
+ background-image: image_url("jquery/dynatree/crystal/cbUnchecked_hover.png"); }
95
108
  &.dynatree-radio {
96
109
  margin-left: 3px;
97
110
  background-image: image_url("jquery/dynatree/crystal/rbUnchecked.png");
@@ -152,7 +165,7 @@ span {
152
165
  span.dynatree-icon {
153
166
  background-image: image_url("jquery/dynatree/crystal/folder.png"); }
154
167
  &.dynatree-expanded span.dynatree-icon {
155
- background-image: image_url("jquery/dynatree/crystal/folder_open.png"); } }
168
+ background-image: image_url("jquery/dynatree/crystal/folder.png"); } }
156
169
 
157
170
  .dynatree-statusnode-wait span.dynatree-icon {
158
171
  background-image: image_url("jquery/dynatree/crystal/ltWait.gif"); }
@@ -188,6 +201,20 @@ div {
188
201
  &.dynatree-drop-reject span.dynatree-drag-helper-img {
189
202
  background-image: image_url("jquery/dynatree/crystal/drop_reject.png"); } }
190
203
 
204
+ /*** Drop marker icon *********************************************************/
205
+
206
+ #dynatree-drop-marker {
207
+ width: 24px;
208
+ position: absolute;
209
+ background-image: image_url("jquery/dynatree/crystal/drop_here.png");
210
+ &.dynatree-drop-after, &.dynatree-drop-before {
211
+ width: 64px;
212
+ background-image: image_url("jquery/dynatree/crystal/drop_sibling_here.png"); }
213
+ &.dynatree-drop-copy {
214
+ background-image: image_url("jquery/dynatree/crystal/copy_here.png"); }
215
+ &.dynatree-drop-move {
216
+ background-image: image_url("jquery/dynatree/crystal/move_here.png"); } }
217
+
191
218
  /* Source node while dragging */
192
219
 
193
220
  span {
@@ -199,14 +226,15 @@ span {
199
226
  &.dynatree-drop-target {
200
227
  /*border: 1px solid gray;*/
201
228
  a {
202
- background-repeat: no-repeat;
203
- background-position: right;
204
- /*background-image: image_url("jquery/dynatree/crystal/drop_child.png");*/ }
229
+ /*background-repeat: no-repeat;*/
230
+ /*background-position: right;*/
231
+ /*background-image: image_url("jquery/dynatree/rystal/drop_child.png");*/ }
205
232
  &.dynatree-drop-accept a {
206
233
  /*border: 1px solid green;*/
207
234
  background-color: #3169C6 !important;
208
235
  color: white !important;
209
- /* @ IE6 */ }
236
+ /* @ IE6 */
237
+ text-decoration: none; }
210
238
  &.dynatree-drop-reject {
211
239
  /*border: 1px solid red;*/ }
212
240
  &.dynatree-drop-after a {
@@ -215,14 +243,3 @@ span {
215
243
  background-image: image_url("jquery/dynatree/crystal/drop_append.png");*/ } } }
216
244
 
217
245
  /* Target node while dragging cursor is over it */
218
-
219
- /* Drop marker icon */
220
-
221
- #dynatree_drop_marker {
222
- width: 24px;
223
- position: absolute;
224
- background-image: image_url("jquery/dynatree/crystal/drop_here.png");
225
- &.dynatree_drop_copy {
226
- background-image: image_url("jquery/dynatree/crystal/copy_here.png"); }
227
- &.dynatree_drop_move {
228
- background-image: image_url("jquery/dynatree/crystal/move_here.png"); } }