compass-jquery-plugin 0.3.2.7 → 0.3.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (317) hide show
  1. data/README.md +17 -11
  2. data/VERSION.yml +2 -2
  3. data/lib/handle_js_files.rb +1 -1
  4. data/lib/jquery/emulators.rb +13 -0
  5. data/templates/dynatree/jquery.dynatree.min.js +79 -81
  6. data/templates/emulators/config/initializers/emulators.rb +0 -9
  7. data/templates/emulators/emulators/{blackberry.landscape.scss → blackberry.torch.landscape.scss} +6 -2
  8. data/templates/emulators/emulators/{blackberry.portrait.scss → blackberry.torch.portrait.scss} +6 -1
  9. data/templates/emulators/emulators/galaxy.s.landscape.png +0 -0
  10. data/templates/emulators/emulators/galaxy.s.landscape.scss +20 -0
  11. data/templates/emulators/emulators/galaxy.s.portrait.png +0 -0
  12. data/templates/emulators/emulators/galaxy.s.portrait.scss +20 -0
  13. data/templates/emulators/emulators/galaxy.s2.landscape.png +0 -0
  14. data/templates/emulators/emulators/galaxy.s2.landscape.scss +20 -0
  15. data/templates/emulators/emulators/galaxy.s2.portrait.png +0 -0
  16. data/templates/emulators/emulators/galaxy.s2.portrait.scss +20 -0
  17. data/templates/emulators/emulators/galaxy.tab.10.1.landscape.png +0 -0
  18. data/templates/emulators/emulators/galaxy.tab.10.1.landscape.scss +20 -0
  19. data/templates/emulators/emulators/galaxy.tab.10.1.portrait.png +0 -0
  20. data/templates/emulators/emulators/galaxy.tab.10.1.portrait.scss +20 -0
  21. data/templates/emulators/emulators/galaxy.tab.7.landscape.png +0 -0
  22. data/templates/emulators/emulators/galaxy.tab.7.landscape.scss +20 -0
  23. data/templates/emulators/emulators/galaxy.tab.7.portrait.png +0 -0
  24. data/templates/emulators/emulators/galaxy.tab.7.portrait.scss +20 -0
  25. data/templates/emulators/emulators/galaxy.tab.8.9.landscape.png +0 -0
  26. data/templates/emulators/emulators/galaxy.tab.8.9.landscape.scss +20 -0
  27. data/templates/emulators/emulators/galaxy.tab.8.9.portrait.png +0 -0
  28. data/templates/emulators/emulators/galaxy.tab.8.9.portrait.scss +20 -0
  29. data/templates/emulators/emulators/ipad.landscape.png +0 -0
  30. data/templates/emulators/emulators/ipad.landscape.scss +9 -4
  31. data/templates/emulators/emulators/ipad.portrait.png +0 -0
  32. data/templates/emulators/emulators/ipad.portrait.scss +9 -4
  33. data/templates/emulators/emulators/{iphone.landscape.png → iphone.3.landscape.png} +0 -0
  34. data/templates/emulators/emulators/{iphone.landscape.scss → iphone.3.landscape.scss} +7 -3
  35. data/templates/emulators/emulators/{iphone.portrait.png → iphone.3.portrait.png} +0 -0
  36. data/templates/emulators/emulators/{iphone.portrait.scss → iphone.3.portrait.scss} +7 -3
  37. data/templates/emulators/emulators/iphone.4.landscape .scss +20 -0
  38. data/templates/emulators/emulators/iphone.4.landscape.png +0 -0
  39. data/templates/emulators/emulators/iphone.4.portrait.png +0 -0
  40. data/templates/emulators/emulators/iphone.4.portrait.scss +20 -0
  41. data/templates/emulators/emulators/{palm.pre.landscape.png → palm.pre.2.landscape.png} +0 -0
  42. data/templates/emulators/emulators/{palm.landscape.scss → palm.pre.2.landscape.scss} +7 -3
  43. data/templates/emulators/emulators/{palm.pre.portrait.png → palm.pre.2.portrait.png} +0 -0
  44. data/templates/emulators/emulators/{palm.portrait.scss → palm.pre.2.portrait.scss} +7 -3
  45. data/templates/emulators/manifest.rb +34 -10
  46. data/templates/graphics/config/initializers/graphics.rb +8 -0
  47. data/templates/graphics/highcharts/dark-blue.js +170 -0
  48. data/templates/graphics/highcharts/dark-blue.min.js +4 -0
  49. data/templates/graphics/highcharts/dark-green.js +170 -0
  50. data/templates/graphics/highcharts/dark-green.min.js +4 -0
  51. data/templates/graphics/highcharts/gray.js +164 -0
  52. data/templates/graphics/highcharts/gray.min.js +4 -0
  53. data/templates/graphics/highcharts/grid.js +97 -0
  54. data/templates/graphics/highcharts/grid.min.js +3 -0
  55. data/templates/graphics/highcharts/highslide-config.js +12 -0
  56. data/templates/graphics/highcharts/highslide-config.min.js +1 -0
  57. data/templates/graphics/highcharts/highslide-full.js +3391 -0
  58. data/templates/graphics/highcharts/highslide-full.min.js +132 -0
  59. data/templates/graphics/highcharts/skies.js +89 -0
  60. data/templates/graphics/highcharts/skies.min.js +3 -0
  61. data/templates/graphics/jquery.ganttView.js +1 -1
  62. data/templates/graphics/jquery.ganttView.min.js +61 -61
  63. data/templates/graphics/jquery.highcharts.js +11342 -0
  64. data/templates/graphics/jquery.highcharts.min.js +176 -0
  65. data/templates/graphics/jquery.sparkline.min.js +35 -36
  66. data/templates/graphics/jquery/highcharts/graphics/close.png +0 -0
  67. data/templates/graphics/jquery/highcharts/graphics/closeX.png +0 -0
  68. data/templates/graphics/jquery/highcharts/graphics/controlbar-black-border.gif +0 -0
  69. data/templates/graphics/jquery/highcharts/graphics/controlbar-text-buttons.png +0 -0
  70. data/templates/graphics/jquery/highcharts/graphics/controlbar-white-small.gif +0 -0
  71. data/templates/graphics/jquery/highcharts/graphics/controlbar-white.gif +0 -0
  72. data/templates/graphics/jquery/highcharts/graphics/controlbar2.gif +0 -0
  73. data/templates/graphics/jquery/highcharts/graphics/controlbar3.gif +0 -0
  74. data/templates/graphics/jquery/highcharts/graphics/controlbar4-hover.gif +0 -0
  75. data/templates/graphics/jquery/highcharts/graphics/controlbar4.gif +0 -0
  76. data/templates/graphics/jquery/highcharts/graphics/fullexpand.gif +0 -0
  77. data/templates/graphics/jquery/highcharts/graphics/geckodimmer.png +0 -0
  78. data/templates/graphics/jquery/highcharts/graphics/icon.gif +0 -0
  79. data/templates/graphics/jquery/highcharts/graphics/loader.gif +0 -0
  80. data/templates/graphics/jquery/highcharts/graphics/loader.white.gif +0 -0
  81. data/templates/graphics/jquery/highcharts/graphics/outlines/beveled.png +0 -0
  82. data/templates/graphics/jquery/highcharts/graphics/outlines/drop-shadow.png +0 -0
  83. data/templates/graphics/jquery/highcharts/graphics/outlines/glossy-dark.png +0 -0
  84. data/templates/graphics/jquery/highcharts/graphics/outlines/outer-glow.png +0 -0
  85. data/templates/graphics/jquery/highcharts/graphics/outlines/rounded-black.png +0 -0
  86. data/templates/graphics/jquery/highcharts/graphics/outlines/rounded-white.png +0 -0
  87. data/templates/graphics/jquery/highcharts/graphics/resize.gif +0 -0
  88. data/templates/graphics/jquery/highcharts/graphics/scrollarrows.png +0 -0
  89. data/templates/graphics/jquery/highcharts/graphics/zoomin.cur +0 -0
  90. data/templates/graphics/jquery/highcharts/graphics/zoomout.cur +0 -0
  91. data/templates/graphics/jquery/highcharts/skies.jpg +0 -0
  92. data/templates/graphics/jquery/highslide.scss +763 -0
  93. data/templates/graphics/manifest.rb +43 -0
  94. data/templates/ical/config/initializers/ical.rb +1 -0
  95. data/templates/ical/jquery.ical.js +8401 -8209
  96. data/templates/ical/jquery.ical.min.js +206 -208
  97. data/templates/ical/jquery/ical.print.scss +48 -0
  98. data/templates/ical/jquery/ical.scss +372 -343
  99. data/templates/ical/manifest.rb +1 -0
  100. data/templates/jqgrid/i18n/jqgrid/locale-ar.min.js +2 -2
  101. data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +1 -1
  102. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +1 -1
  103. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -1
  104. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +1 -1
  105. data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +1 -1
  106. data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +1 -1
  107. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +1 -1
  108. data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +2 -2
  109. data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +1 -1
  110. data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +2 -2
  111. data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +1 -1
  112. data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +1 -1
  113. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +2 -2
  114. data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +2 -2
  115. data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +1 -1
  116. data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +1 -1
  117. data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +1 -1
  118. data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +2 -2
  119. data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +1 -1
  120. data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +2 -2
  121. data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +1 -1
  122. data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +1 -1
  123. data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +1 -1
  124. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +1 -1
  125. data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +1 -1
  126. data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +1 -1
  127. data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +2 -2
  128. data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +1 -1
  129. data/templates/jqgrid/i18n/jqgrid/locale-sr.min.js +1 -1
  130. data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +1 -1
  131. data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +1 -1
  132. data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +2 -2
  133. data/templates/jqgrid/jquery.jqGrid.js +162 -850
  134. data/templates/jqgrid/jquery.jqGrid.min.js +476 -497
  135. data/templates/jqgrid/jquery/jqGrid.scss +0 -19
  136. data/templates/jquery/amplify.store.js +248 -0
  137. data/templates/jquery/amplify.store.min.js +6 -0
  138. data/templates/jquery/config/initializers/jquery.rb +5 -1
  139. data/templates/jquery/history.adapter.jquery.js +37 -43
  140. data/templates/jquery/history.adapter.jquery.min.js +1 -1
  141. data/templates/jquery/history.html4.js +596 -587
  142. data/templates/jquery/history.html4.min.js +8 -8
  143. data/templates/jquery/history.js +1839 -1669
  144. data/templates/jquery/history.min.js +27 -25
  145. data/templates/jquery/i18n/jquery.ui/datepicker-af.min.js +1 -1
  146. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.min.js +1 -1
  147. data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
  148. data/templates/jquery/i18n/jquery.ui/datepicker-az.min.js +1 -1
  149. data/templates/jquery/i18n/jquery.ui/datepicker-bg.min.js +1 -1
  150. data/templates/jquery/i18n/jquery.ui/datepicker-bs.min.js +1 -1
  151. data/templates/jquery/i18n/jquery.ui/datepicker-ca.min.js +1 -1
  152. data/templates/jquery/i18n/jquery.ui/datepicker-cs.min.js +1 -1
  153. data/templates/jquery/i18n/jquery.ui/datepicker-da.min.js +1 -1
  154. data/templates/jquery/i18n/jquery.ui/datepicker-de.min.js +1 -1
  155. data/templates/jquery/i18n/jquery.ui/datepicker-el.min.js +1 -1
  156. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.min.js +1 -1
  157. data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.min.js +1 -1
  158. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.min.js +1 -1
  159. data/templates/jquery/i18n/jquery.ui/datepicker-eo.min.js +1 -1
  160. data/templates/jquery/i18n/jquery.ui/datepicker-es.min.js +1 -1
  161. data/templates/jquery/i18n/jquery.ui/datepicker-et.min.js +1 -1
  162. data/templates/jquery/i18n/jquery.ui/datepicker-eu.min.js +1 -1
  163. data/templates/jquery/i18n/jquery.ui/datepicker-fa.min.js +2 -2
  164. data/templates/jquery/i18n/jquery.ui/datepicker-fi.min.js +1 -1
  165. data/templates/jquery/i18n/jquery.ui/datepicker-fo.min.js +1 -1
  166. data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.min.js +1 -1
  167. data/templates/jquery/i18n/jquery.ui/datepicker-fr.min.js +1 -1
  168. data/templates/jquery/i18n/jquery.ui/datepicker-gl.min.js +1 -1
  169. data/templates/jquery/i18n/jquery.ui/datepicker-he.min.js +1 -1
  170. data/templates/jquery/i18n/jquery.ui/datepicker-hr.min.js +1 -1
  171. data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
  172. data/templates/jquery/i18n/jquery.ui/datepicker-hy.min.js +1 -1
  173. data/templates/jquery/i18n/jquery.ui/datepicker-id.min.js +1 -1
  174. data/templates/jquery/i18n/jquery.ui/datepicker-is.min.js +1 -1
  175. data/templates/jquery/i18n/jquery.ui/datepicker-it.min.js +1 -1
  176. data/templates/jquery/i18n/jquery.ui/datepicker-ja.min.js +1 -1
  177. data/templates/jquery/i18n/jquery.ui/datepicker-ko.min.js +1 -1
  178. data/templates/jquery/i18n/jquery.ui/datepicker-kz.min.js +1 -1
  179. data/templates/jquery/i18n/jquery.ui/datepicker-lt.min.js +1 -1
  180. data/templates/jquery/i18n/jquery.ui/datepicker-lv.min.js +1 -1
  181. data/templates/jquery/i18n/jquery.ui/datepicker-ml.min.js +2 -2
  182. data/templates/jquery/i18n/jquery.ui/datepicker-ms.min.js +1 -1
  183. data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
  184. data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +1 -1
  185. data/templates/jquery/i18n/jquery.ui/datepicker-pl.min.js +1 -1
  186. data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.min.js +1 -1
  187. data/templates/jquery/i18n/jquery.ui/datepicker-pt.min.js +1 -1
  188. data/templates/jquery/i18n/jquery.ui/datepicker-rm.min.js +1 -1
  189. data/templates/jquery/i18n/jquery.ui/datepicker-ro.min.js +1 -1
  190. data/templates/jquery/i18n/jquery.ui/datepicker-ru.min.js +1 -1
  191. data/templates/jquery/i18n/jquery.ui/datepicker-sk.min.js +1 -1
  192. data/templates/jquery/i18n/jquery.ui/datepicker-sl.min.js +1 -1
  193. data/templates/jquery/i18n/jquery.ui/datepicker-sq.min.js +1 -1
  194. data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.min.js +1 -1
  195. data/templates/jquery/i18n/jquery.ui/datepicker-sr.min.js +1 -1
  196. data/templates/jquery/i18n/jquery.ui/datepicker-sv.min.js +1 -1
  197. data/templates/jquery/i18n/jquery.ui/datepicker-ta.min.js +1 -1
  198. data/templates/jquery/i18n/jquery.ui/datepicker-th.min.js +1 -1
  199. data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +1 -1
  200. data/templates/jquery/i18n/jquery.ui/datepicker-tr.min.js +1 -1
  201. data/templates/jquery/i18n/jquery.ui/datepicker-uk.min.js +1 -1
  202. data/templates/jquery/i18n/jquery.ui/datepicker-vi.min.js +1 -1
  203. data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.min.js +1 -1
  204. data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.min.js +1 -1
  205. data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.min.js +1 -1
  206. data/templates/jquery/jquery-ui.js +217 -104
  207. data/templates/jquery/jquery-ui.min.js +437 -436
  208. data/templates/jquery/jquery.bgiframe.min.js +1 -1
  209. data/templates/jquery/jquery.contextMenu.min.js +7 -7
  210. data/templates/jquery/jquery.cookie.js +60 -58
  211. data/templates/jquery/jquery.cookie.min.js +1 -1
  212. data/templates/jquery/jquery.dotimeout.min.js +2 -2
  213. data/templates/jquery/jquery.dst.min.js +4 -4
  214. data/templates/jquery/jquery.farbtastic.min.js +10 -10
  215. data/templates/jquery/jquery.form.js +15 -5
  216. data/templates/jquery/jquery.form.min.js +20 -20
  217. data/templates/jquery/jquery.haml.min.js +5 -5
  218. data/templates/jquery/jquery.hotkeys.min.js +3 -3
  219. data/templates/jquery/jquery.js +8205 -8170
  220. data/templates/jquery/jquery.layout.min.js +48 -50
  221. data/templates/jquery/jquery.min.js +166 -167
  222. data/templates/jquery/jquery.mousewheel.min.js +2 -2
  223. data/templates/jquery/jquery.offline.min.js +4 -4
  224. data/templates/jquery/jquery.pngFix.js +28 -30
  225. data/templates/jquery/jquery.pngFix.min.js +5 -5
  226. data/templates/jquery/jquery.rails.js +166 -0
  227. data/templates/jquery/jquery.rails.min.js +6 -0
  228. data/templates/jquery/jquery.replacetext.min.js +1 -1
  229. data/templates/jquery/jquery.themeswitchertool.min.js +4 -4
  230. data/templates/jquery/jquery.tmpl.js +14 -12
  231. data/templates/jquery/jquery.tmpl.min.js +12 -12
  232. data/templates/jquery/jquery.tmplPlus.js +2 -2
  233. data/templates/jquery/jquery.tmplPlus.min.js +3 -3
  234. data/templates/jquery/jquery.tokeninput.js +729 -0
  235. data/templates/jquery/jquery.tokeninput.min.js +14 -0
  236. data/templates/jquery/jquery/ui/_theme.scss +23 -16
  237. data/templates/jquery/jquery/ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
  238. data/templates/jquery/jquery/ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
  239. data/templates/jquery/jquery/ui/black-tie/ui-icons_ededed_256x240.png +0 -0
  240. data/templates/jquery/jquery/ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
  241. data/templates/jquery/jquery/ui/tokeninput.facebook.scss +95 -0
  242. data/templates/jquery/jquery/ui/tokeninput.mac.scss +164 -0
  243. data/templates/jquery/jquery/ui/tokeninput.scss +85 -0
  244. data/templates/jquery/jquery/ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  245. data/templates/jquery/jquery/ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
  246. data/templates/jquery/jquery/ui/vader/ui-icons_c98000_256x240.png +0 -0
  247. data/templates/jquery/jquery/ui/vader/ui-icons_f29a00_256x240.png +0 -0
  248. data/templates/jquery/json.min.js +6 -6
  249. data/templates/jquery/json2.js +214 -214
  250. data/templates/jquery/json2.min.js +5 -6
  251. data/templates/jquery/manifest.rb +9 -2
  252. data/templates/jstree/jquery.jstree.min.js +222 -224
  253. data/templates/mobile/config/initializers/mobile.rb +1 -1
  254. data/templates/mobile/jquery.mobile.js +887 -404
  255. data/templates/mobile/jquery.mobile.min.js +4 -4
  256. data/templates/mobile/jquery/mobile/_base.scss +50 -26
  257. data/templates/mobile/jquery/mobile/default.scss +59 -63
  258. data/templates/mobile/jquery/mobile/valencia.scss +44 -42
  259. data/templates/ribbon/jquery.ribbon.min.js +14 -14
  260. data/templates/tiny_mce/manifest.rb +4 -0
  261. data/templates/tiny_mce/tiny_mce/langs/de.js +1 -1
  262. data/templates/tiny_mce/tiny_mce/langs/en.js +1 -1
  263. data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -1
  264. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -1
  265. data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -1
  266. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -1
  267. data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -1
  268. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
  269. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -1
  270. data/templates/tiny_mce/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
  271. data/templates/tiny_mce/tiny_mce/plugins/autolink/editor_plugin_src.js +1 -0
  272. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
  273. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -1
  274. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
  275. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -1
  276. data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -1
  277. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
  278. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -1
  279. data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -1
  280. data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -1
  281. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
  282. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -1
  283. data/templates/tiny_mce/tiny_mce/plugins/lists/editor_plugin.js +1 -0
  284. data/templates/tiny_mce/tiny_mce/plugins/lists/editor_plugin_src.js +1 -0
  285. data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -1
  286. data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -1
  287. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
  288. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -1
  289. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  290. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -1
  291. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -1
  292. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
  293. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -1
  294. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
  295. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1
  296. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
  297. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -1
  298. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -1
  299. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
  300. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1
  301. data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -1
  302. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -1
  303. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -1
  304. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -1
  305. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -1
  306. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -1
  307. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -1
  308. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -1
  309. data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
  310. data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -1
  311. data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -1
  312. data/templates/tools/flowplayer.min.js +29 -30
  313. data/templates/tools/jquery.tools.min.js +96 -96
  314. data/templates/tools/swfobject.min.js +18 -19
  315. metadata +95 -16
  316. data/templates/jquery/jrails.js +0 -200
  317. data/templates/jquery/jrails.min.js +0 -8
data/README.md CHANGED
@@ -12,17 +12,17 @@ Description
12
12
 
13
13
  A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
14
14
 
15
- * jRails with jQuery 1.5.1 and jQuery.UI 1.8.11 including themes
15
+ * jquery-rails with jQuery 1.5.2 and jQuery.UI 1.8.11 including themes
16
16
  * jQuery Tools 1.2.5
17
17
  * jquery.jstree.js V1.0rc3
18
18
  * jquery.dynatree.js V1.0.2
19
19
  * jquery.ribbon.js
20
- * jquery.jqGrid.js V3.8.2 (with minor changes to make it RESTful)
20
+ * jquery.jqGrid.js V4.0 (with minor changes to make it RESTful)
21
21
  * jquery.tinymce.js V3.4
22
22
 
23
23
  and for mobile devices <i>(using pure haml/sass without compass)</i>:
24
24
 
25
- * jquery.mobile.js 1.0a3
25
+ * jquery.mobile.js 1.0a4.1
26
26
  * jquery.jqtouch.js V1.0b2
27
27
 
28
28
  This library requires [Compass][3].
@@ -33,10 +33,10 @@ An upgrade to Rails 3.x is planned, but depends on the upgrade of compass which
33
33
 
34
34
  *Hint: When trying to build the gem under Windows, bundler can't locate the rakefile. Apply the patch from [Arve Knudsen][4] to fix it.*
35
35
 
36
- jRails, jQuery and jQuery.UI including themes
36
+ jquery-rails, jQuery and jQuery.UI including themes
37
37
  ---------------------------------------------
38
38
 
39
- Use compass to install the jRails, jQuery and jQuery.UI javascript library including themes into your project.
39
+ Use compass to install the jquery-rails, jQuery and jQuery.UI javascript library including themes into your project.
40
40
 
41
41
  For jQuery:
42
42
  <pre>compass install [-r jquery] jquery/jquery <project name></pre>
@@ -185,7 +185,7 @@ To use the javascripts include:
185
185
  Graphics
186
186
  --------
187
187
 
188
- Use compass to install the jquery.sparklines and jquery.ganttView javascript libraries into your project.
188
+ Use compass to install the jquery.ganttView, jquery.highcharts and jquery.sparklines javascript libraries into your project.
189
189
 
190
190
  <pre>compass install [-r jquery] jquery/graphics <project name></pre>
191
191
 
@@ -197,8 +197,9 @@ To use the stylesheets and javascripts include:
197
197
 
198
198
  <pre>
199
199
  = stylesheet_link_tag :ganttView', :media => 'screen, projection'
200
- = javascript_include_tag :sparkline
201
- = javascript_include_tag :ganttView</pre>
200
+ = javascript_include_tag :ganttView
201
+ = javascript_include_tag :highcharts
202
+ = javascript_include_tag :sparkline</pre>
202
203
 
203
204
  Emulators
204
205
  ---------
@@ -259,7 +260,7 @@ Thanks to the Contributors:
259
260
  Rails:
260
261
  ------
261
262
 
262
- * aaron for [jRails][5]
263
+ * Andre Arko for [jquery-rails][5]
263
264
  * David Turnbull for [compass-jquery][6]
264
265
  * Jonathan Linowes for [gridify][7]
265
266
  * ahe for [2dc_jqgrid][8]
@@ -271,7 +272,7 @@ jQuery Plugins included:
271
272
  ------------------------
272
273
 
273
274
  * Chris Domigan for [jQuery ContextMenu Plugin][13]
274
- * Kalus Hartl for [jQuery Cookie Plugin][14]
275
+ * Klaus Hartl for [jQuery Cookie Plugin][14]
275
276
  * "Cowboy" Ben Alman for [jQuery doTimeout Plugin][37]
276
277
  * Pete Gamache for [jQuery DSt Plugin][38]
277
278
  * Martin Wendt for [jQuery Dynatree Plugin][15]
@@ -289,6 +290,7 @@ jQuery Plugins included:
289
290
  * Gareth Watts from Splunk Inc for [jQuery Sparklines plugin][24]
290
291
  * Denis Howlett for [jQuery Table Drag and Drop Plugin][25]
291
292
  * John Reisig et. al. for [jQuery Templating Plugin][26]
293
+ * James Smith for [jQuery Tokeninput][41]
292
294
  * Juan G. Hurtado for [jQuery TOOLS][27]
293
295
  * Michael Aufreiter for [jQuery UI Multiselect Plugin][28]
294
296
  * Andrew M Andrews III for [Any+Time][29]
@@ -296,11 +298,13 @@ jQuery Plugins included:
296
298
  * Adam Shaw for [FullCalendar][31]
297
299
  * Moxiecode Systems AB for [TinyMCE][40]
298
300
 
301
+
299
302
  Other stuff included:
300
303
  ---------------------
301
304
 
302
305
  * Benjamin Lupton for [History.js][19]
303
306
  * Rick DeNatale for [ri_cal][33]
307
+ * Highslide Software Torstein Hønsi for [Highcharts][42]
304
308
 
305
309
  Note on Patches/Pull Requests
306
310
  =============================
@@ -323,7 +327,7 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
323
327
  [2]: http://github.com/kosmas58/compass-jquery-plugin
324
328
  [3]: http://compass-style.org/docs/
325
329
  [4]: http://groups.google.com/group/ruby-bundler/msg/e375ee77b225609f
326
- [5]: http://code.google.com/p/ennerchi/
330
+ [5]: http://indirect/jquery-rails/
327
331
  [6]: http://github.com/dturnbull/compass-jquery/tree/master
328
332
  [7]: http://github.com/linoj/gridify
329
333
  [8]: http://github.com/ahe/2dc_jqgrid/tree/master
@@ -359,3 +363,5 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
359
363
  [38]: http://github.com/gamache/DSt
360
364
  [39]: http://github.com/thegrubbsian/jquery.ganttView
361
365
  [40]: http://tinymce.moxiecode.com/
366
+ [41]: http://github.com/loopj/jquery-tokeninput
367
+ [42]: http://http://www.highcharts.com
@@ -1,6 +1,6 @@
1
1
  ---
2
- :commit:
3
- :state: 7
2
+ #:commit: pre.3
3
+ :state: 8
4
4
  :tiny: 2
5
5
  :minor: 3
6
6
  :major: 0
@@ -2,7 +2,7 @@ require 'fileutils'
2
2
  require 'find'
3
3
 
4
4
  GEM_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
5
- GOOGLE_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'google-compiler-20100917.jar')
5
+ GOOGLE_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'google-compiler-20110405.jar')
6
6
  YUI_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'yuicompressor-2.4.4.jar')
7
7
 
8
8
  def compress_js(scripts, compressor)
@@ -1,3 +1,16 @@
1
1
  module Emulators #:nodoc:
2
2
  end
3
3
 
4
+ class Float
5
+ def round_to(x)
6
+ (self * 10**x).round.to_f / 10**x
7
+ end
8
+
9
+ def ceil_to(x)
10
+ (self * 10**x).ceil.to_f / 10**x
11
+ end
12
+
13
+ def floor_to(x)
14
+ (self * 10**x).floor.to_f / 10**x
15
+ end
16
+ end
@@ -1,82 +1,80 @@
1
- var _canLog=true;function _log(g){if(_canLog){var l=Array.prototype.slice.apply(arguments,[1]),m=new Date;m=m.getHours()+":"+m.getMinutes()+":"+m.getSeconds()+"."+m.getMilliseconds();l[0]=m+" - "+l[0];try{switch(g){case "info":window.console.info.apply(window.console,l);break;case "warn":window.console.warn.apply(window.console,l);break;default:window.console.log.apply(window.console,l)}}catch(o){window.console||(_canLog=false)}}}
1
+ var _canLog=!0;function _log(f){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(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(n){window.console||(_canLog=!1)}}}
2
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(g){function l(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))t();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=l(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.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=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,e=this.childList.length;d<e;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=
6
- g.extend(this.data,a);this.removeChildren();this.addChild(b)}},_getInnerHtml:function(){var a=this.tree,b=a.options,c=a.cache,d=this.getLevel(),e=this.data,f="";if(d<b.minExpandLevel){if(d>1)f+=c.tagConnector}else f+=this.hasChildren()!==false?c.tagExpander:c.tagConnector;if(b.checkbox&&e.hideCheckbox!==true&&!e.isStatusNode)f+=c.tagCheckbox;if(e.icon)f+="<img src='"+b.imagePath+e.icon+"' alt='' />";else if(e.icon!==false)f+=c.tagNodeIcon;c="";if(b.onCustomRender)c=b.onCustomRender.call(a,this)||
7
- "";if(!c){a=e.tooltip?" title='"+e.tooltip+"'":"";c=b.noLink||e.noLink?"<span style='display: inline-block;' class='"+b.classNames.title+"'"+a+">"+e.title+"</span>":"<a href='#' class='"+b.classNames.title+"'"+a+">"+e.title+"</a>"}f+=c;return f},_fixOrder:function(){var a=this.childList;if(a&&this.ul)for(var b=this.ul.firstChild,c=0,d=a.length-1;c<d;c++){var e=a[c],f=b.dtnode;if(e!==f){this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+e+" != "+f);this.ul.insertBefore(e.li,f.li)}else b=b.nextSibling}},
8
- render:function(a,b){var c=this.tree,d=this.parent,e=this.data,f=c.options,h=f.classNames,i=this.isLastSibling();if(!d&&!this.ul){this.li=this.span=null;this.ul=document.createElement("ul");this.ul.className=f.minExpandLevel>1?h.container+" "+h.noConnector:h.container}else if(d){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(e.key&&f.generateIds)this.li.id=f.idPrefix+e.key;this.span=document.createElement("span");this.span.className=h.title;this.li.appendChild(this.span);
9
- if(!d.ul){d.ul=document.createElement("ul");d.ul.style.display="none";d.li.appendChild(d.ul)}d.ul.appendChild(this.li)}this.span.innerHTML=this._getInnerHtml();var j=[];j.push(h.node);e.isFolder&&j.push(h.folder);this.bExpanded&&j.push(h.expanded);this.hasChildren()!==false&&j.push(h.hasChildren);e.isLazy&&this.childList===null&&j.push(h.lazy);i&&j.push(h.lastsib);this.bSelected&&j.push(h.selected);this.hasSubSel&&j.push(h.partsel);c.activeNode===this&&j.push(h.active);e.addClass&&j.push(e.addClass);
10
- j.push(h.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(e.isLazy&&this.childList===null?"d":"")+(i?"l":""));j.push(h.combinedIconPrefix+(this.bExpanded?"e":"c")+(e.isFolder?"f":""));this.span.className=j.join(" ");this.li.className=i?h.lastsib:"";f.onRender&&f.onRender.call(c,this,this.span)}if((this.bExpanded||b===true)&&this.childList){c=0;for(e=this.childList.length;c<e;c++)this.childList[c].render(false,b);this._fixOrder()}if(this.ul){c=this.ul.style.display==="none";e=!!this.bExpanded;if(a&&
11
- f.fx&&c===e){d=f.fx.duration||200;g(this.ul).animate(f.fx,d)}else this.ul.style.display=this.bExpanded||!d?"":"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;
12
- 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,c=a.length;b<c;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,
13
- b=0,c=a.length-1;b<c;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},countChildren:function(){var a=this.childList;if(!a)return 0;for(var b=a.length,c=0,d=b;c<d;c++)b+=a[c].countChildren();return b},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(f,
14
- h){return f.data.title===h.data.title?0:f.data.title>h.data.title?1:-1};c.sort(a);if(b)for(var d=0,e=c.length;d<e;d++)c[d].childList&&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===
15
- 1)this.childList=[];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);g(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=false;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;g(this.span).addClass(this.tree.options.classNames.nodeLoading);
16
- this.parent||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: '"+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=
17
- 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,f=c.childNodes.length;e<f;e++){var h=c.childNodes[e],i=h.offsetLeft-c.offsetLeft,j=h.offsetTop-c.offsetTop,k=h.clientWidth,r=h.clientHeight;if(d>=i&&d<=i+k&&a>=j&&a<=j+r)if(h.className==b.title)return"title";else if(h.className==b.expander)return"expander";else if(h.className==
18
- b.checkbox)return"checkbox";else if(h.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===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=
19
- this._parentList(true,false),b=0,c=a.length;b<c;b++)if(!a[b].bExpanded)return false;return true},makeVisible:function(){for(var a=this._parentList(true,false),b=0,c=a.length;b<c;b++)a[b]._expand(true)},focus:function(){this.makeVisible();try{g(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&&
20
- 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,this)}else if(this.tree.activeNode===this)if(!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,
21
- 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)},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=
22
- 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(){var a,b,c;if(this.bSelected){this.visit(function(f){f.parent._setSubSel(true);f._select(true,false,false)});for(a=this.parent;a;){a._setSubSel(true);
23
- var d=true;b=0;for(c=a.childList.length;b<c;b++){var e=a.childList[b];if(!e.bSelected&&!e.data.isStatusNode){d=false;break}}d&&a._select(true,false,false);a=a.parent}}else{this._setSubSel(false);this.visit(function(f){f._setSubSel(false);f._select(false,false,false)});for(a=this.parent;a;){a._select(false,false,false);d=false;b=0;for(c=a.childList.length;b<c;b++)if(a.childList[b].bSelected||a.childList[b].hasSubSel){d=true;break}a._setSubSel(d);a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;
24
- 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,true,this)}else{d.persist&&this.tree.persistence.clearSelect(this.data.key);
25
- 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",this);this.setLazyNodeStatus(DTNodeStatus_Loading);
26
- 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,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,f=d.length;e<f;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,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},_onClick:function(a){var b=this.getEventTargetType(a);
30
- if(b==="expander"){this.toggleExpand();this.focus()}else if(b==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();b=this.span.getElementsByTagName("a");if(b[0])g.browser.msie||b[0].focus();else return true}a.preventDefault()},_onDblClick:function(){},_onKeydown:function(a){var b=true,c;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();
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(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=this.childList[0];
32
- else for(var d=this._parentList(false,true),e=d.length-1;e>=0;e--)if(c=d[e].getNextSibling())break;c&&c.focus();break;default:b=false}b&&a.preventDefault()},_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=="focusin"){if(this.tree.tnFocused&&
33
- 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=0,e=this.childList.length;d<
34
- e;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&&a.deactivate();
35
- 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,d=b.length;c<d;c++)if(b[c]===a){this.childList.splice(c,1);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,f=d.length;e<f;e++){var h=d[e];h===c.activeNode&&!b&&h.deactivate();if(this.tree.options.persist&&
36
- !b){h.bSelected&&this.tree.persistence.clearSelect(h.data.key);h.bExpanded&&this.tree.persistence.clearExpand(h.data.key)}h.removeChildren(true,b);this.ul&&this.ul.removeChild(h.li)}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,f){b.tree.$tree.unbind(c);b.tree.logDebug("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){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(),f=0,h=this.childList.length;f<h;f++){var i=this.childList[f];if(i.data.key===e){if(d.length===0)b.call(c,i,"ok");else if(i.data.isLazy&&(i.childList===null||i.childList===undefined)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,i);var j=this;i.reloadChildren(function(k,r){if(r){c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",k,a,k);b.call(c,i,"loaded");k._loadKeyPath(d.join(c.options.keyPathSeparator),b)}else{c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",
39
- j,a);b.call(c,i,"error")}})}else{b.call(c,i,"loaded");i._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||this.childList.length>0&&
40
- 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)>=0;a.bSelected=g.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=
41
- 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&&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,f=a.length;e<f;e++){var h=a[e],i=this._addChildNode(new p(this,this.tree,h),b);d||(d=i);h.children&&i.addChild(h.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){var b=this;this.removeChildren(false,
43
- true);this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var c=a.debugLazyDelay;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+c);setTimeout(function(){b.appendAjax(a)},c)}else{var d=a.success,e=a.error,f="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=g.extend({},this.tree.options.ajaxDefaults,a,{success:function(i){var j=b.tree.phase;b.tree.phase="init";if(h.postProcess)i=h.postProcess.call(this,i,this.dataType);if(!g.isArray(i)||
44
- i.length!==0)b.addChild(i,null);b.tree.phase="postInit";d&&d.call(h,b);b.tree.logDebug("trigger "+f);b.tree.$tree.trigger(f,[b,true]);b.tree.phase=j;b.setLazyNodeStatus(DTNodeStatus_Ok);if(g.isArray(i)&&i.length===0){b.childList=[];b.render()}},error:function(i,j,k){b.tree.logWarning("appendAjax failed:",j,":\n",i,"\n",k);e&&e.call(h,b,i,j,k);b.tree.$tree.trigger(f,[b,false]);b.setLazyNodeStatus(DTNodeStatus_Error,{info:j,tooltip:""+k})}});g.ajax(h)}},move:function(a,b){var c;if(this!==a){if(!this.parent)throw"Cannot move system root";
45
- if(b===undefined||b=="over")b="child";var d=this.parent,e=b==="child"?a:a.parent;if(e.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{c=g.inArray(this,this.parent.childList);if(c<0)throw"Internal error";this.parent.childList.splice(c,1)}this.parent.ul.removeChild(this.li);this.parent=e;if(e.hasChildren())switch(b){case "child":e.childList.push(this);break;case "before":c=g.inArray(a,
46
- e.childList);if(c<0)throw"Internal error";e.childList.splice(c,0,this);break;case "after":c=g.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c+1,0,this);break;default:throw"Invalid mode "+b;}else{e.childList=[this];if(!e.ul){e.ul=document.createElement("ul");e.ul.style.display="none";e.li.appendChild(e.ul)}}e.ul.appendChild(this.li);if(this.tree!==a.tree){this.visit(function(f){f.tree=a.tree},null,true);throw"Not yet implemented.";}d.isDescendantOf(e)||d.render();e.isDescendantOf(d)||
47
- e.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){if(a===undefined)a=g.ui.dynatree.prototype.options.cookieId;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,
48
- ["debug"]);_log.apply(this,arguments)},read:function(){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");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=
49
- true},write:function(){g.cookie(this.cookieId+"-active",this.activeKey===null?"":this.activeKey,this.cookieOpts);g.cookie(this.cookieId+"-focus",this.focusedKey===null?"":this.focusedKey,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){if(g.inArray(a,this.expandedKeyList)<0){this.expandedKeyList.push(a);
50
- g.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},clearExpand:function(a){a=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){if(g.inArray(a,this.selectedKeyList)<0){this.selectedKeyList.push(a);g.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},clearSelect:function(a){a=g.inArray(a,this.selectedKeyList);
51
- if(a>=0){this.selectedKeyList.splice(a,1);g.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,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=
52
- a.options;this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);m(this)},_load:function(a){var b=this.options,c=this;this.bEnableUpdate=true;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==undefined&&this.logWarning("Option 'rootVisible' is no longer supported.");if(b.minExpandLevel<1){this.logWarning("Option 'minExpandLevel' must be >= 1.");b.minExpandLevel=1}if(b.classNames!==g.ui.dynatree.prototype.options.classNames)b.classNames=g.extend({},g.ui.dynatree.prototype.options.classNames,
53
- b.classNames);if(b.ajaxDefaults!==g.ui.dynatree.prototype.options.ajaxDefaults)b.ajaxDefaults=g.extend({},g.ui.dynatree.prototype.options.ajaxDefaults,b.ajaxDefaults);if(b.dnd!==g.ui.dynatree.prototype.options.dnd)b.dnd=g.extend({},g.ui.dynatree.prototype.options.dnd,b.dnd);b.imagePath||g("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/";c.logDebug("Guessing imagePath from '%s': '%s'",
54
- this.src,b.imagePath);return false}});this.persistence=new n(b.cookieId,b.cookie);if(b.persist){g.cookie||_log("warn","Please include jquery.cookie.js to use persistence.");this.persistence.read()}this.logDebug("DynaTree.persistence: %o",this.persistence.toDict());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+
55
- "'></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)g(this.divTree).empty();var d=this.$tree.find(">ul:first").hide();this.tnRoot=new p(null,this,{});this.tnRoot.bExpanded=true;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var e=this.tnRoot,f=b.persist&&this.persistence.isReloading(),h=false,i=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");
56
- if(b.children)e.addChild(b.children);else if(b.initAjax&&b.initAjax.url){h=true;e.data.isLazy=true;this._reloadAjax(a)}else if(b.initId)this._createFromTag(e,g("#"+b.initId));else{this._createFromTag(e,d);d.remove()}this._checkConsistency();this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(i);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&&
57
- this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!h&&b.onPostInit&&b.onPostInit.call(this,f,false);this.phase="idle"},_reloadAjax:function(a){var b=this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var c=this.persistence,d=g.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(",");
58
- 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.");d.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");var e=c.isReloading();d.success=function(f){b.onPostInit.call(f.tree,e,false);a&&a.call(f.tree,"ok")};d.error=function(f){b.onPostInit.call(f.tree,e,true);a&&a.call(f.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");
59
- this.tnRoot.appendAjax(d)},toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(true)},serializeArray:function(a){a=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,
60
- 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"]);_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"},
61
- redraw:function(){this.tnRoot.render(false,false)},renderInvisibleNodes:function(){this.tnRoot.render(false,true)},reload:function(a){this._load(a)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},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},
62
- 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"}});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]==
63
- 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;c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},count:function(){return this.tnRoot.countChildren()},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var d=
64
- 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"),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="{"+
65
- 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=g(b.span);if(!this.$dndMarker)this.$dndMarker=g("<div id='dynatree-drop-marker'></div>").hide().prependTo(g(this.divTree).parent());if(d==="after"||d==="before"||d==="over"){var f=b.position();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");
66
- 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");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===
67
- "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");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&&
68
- a.removeClass("dynatree-drop-reject");b.removeClass("dynatree-drop-reject");c.removeClass("dynatree-drop-reject")}},_onDragEvent:function(a,b,c,d,e,f){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);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");
69
- e.helper.trigger("mouseup");e.helper.hide()}else j.addClass("dynatree-drag-source");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);break;case "over":f=e.helper.data("enterResponse");a=null;if(f===false)break;else if(typeof f==="string")a=f;else{var k=j.offset();
70
- d={x:d.pageX-k.left,y:d.pageY-k.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)a=null;else if(a==="before"&&c&&b===c.getNextSibling())a=null;else if(a==="after"&&c&&b===c.getPrevSibling())a=null;else if(a==="over"&&c&&c.parent===b&&c.isLastSibling())a=null;e.helper.data("hitMode",a)}a==="over"&&
71
- 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");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");
72
- h.onDragStop&&h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},cancelDrag:function(){var a=g.ui.ddmanager.current;a&&a.cancel()},lastentry:undefined};g.widget("ui.dynatree",{_init:function(){if(parseFloat(g.ui.version)<1.8){this.options.debugLevel>=0&&_log("warn","ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher.");return this._create()}this.options.debugLevel>=2&&_log("debug","ui.dynatree._init() was called; no current default functionality.")},
73
- _create:function(){this.options.debugLevel>=1&&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=g.event.fix(c||window.event);var d=l(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";
74
- this.element.bind(b,function(c){var d=l(c.target);if(!d)return true;var e=d.tree,f=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 f.onClick&&f.onClick.call(e,d,c)===false?false:d._onClick(c);case "dblclick":return f.onDblClick&&f.onDblClick.call(e,d,c)===false?false:d._onDblClick(c);case "keydown":return f.onKeydown&&f.onKeydown.call(e,d,c)===false?false:d._onKeydown(c);case "keypress":return f.onKeypress&&f.onKeypress.call(e,
75
- 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();g.Widget.prototype.enable.apply(this,arguments)},disable:function(){this.unbind();g.Widget.prototype.disable.apply(this,arguments)},getTree:function(){return this.tree},
76
- getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:undefined});if(parseFloat(g.ui.version)<1.8)g.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";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,
77
- 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,onCustomRender:null,onRender:null,dnd:{onDragStart:null,onDragStop:null,autoExpandMS:1E3,preventVoidMoves:true,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:false,dataType:"json"},
78
- 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",nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",
79
- 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"},debugLevel:2,lastentry:undefined};if(parseFloat(g.ui.version)<1.8)g.ui.dynatree.defaults=g.ui.dynatree.prototype.options;
80
- 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};var s=false,t=function(){if(!s){g.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=g(this).data("draggable"),d=b.helper.data("dtSourceNode")||null;if(d){c.offset.click.top=-2;c.offset.click.left=+16;return d.tree._onDragEvent("start",
81
- 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=l(a.target);if(a.target&&!f)if(g(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>0)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,c)},stop:function(a,b){var c=g(this).data("draggable"),
82
- d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,f=a.type=="mouseup"&&a.which==1;f||logMsg("Drag was cancelled");if(e){f&&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)}});s=true}}})(jQuery);
3
+ (function(f){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;b&&(b.onDragStart||b.onDrop)&&r();b&&b.onDragStart&&a.$tree.draggable({addClasses:!1,appendTo:"body",containment:!1,delay:0,distance:4,revert:!1,connectToDynatree:!0,helper:function(a){var b=k(a.target);return b.tree._onDragEvent("helper",b,null,a,null,null)},_last:null});b&&b.onDrop&&a.$tree.droppable({addClasses:!1,tolerance:"intersect",greedy:!1,_last:null})}
4
+ var n={create:function(){return function(){this.initialize.apply(this,arguments)}}},o=n.create();o.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;typeof c==="string"&&(c={title:c});if(c.key===void 0)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=!1},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+"'"},toDict:function(a,
5
+ 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 e=0,d=this.childList.length;e<d;e++)c.children.push(this.childList[e].toDict(!0,b))}else delete c.children;return c},fromDict:function(a){var b=a.children;b===void 0?(this.data=f.extend(this.data,a),this.render()):(a=f.extend({},a),a.children=void 0,this.data=f.extend(this.data,a),this.removeChildren(),
6
+ this.addChild(b))},_getInnerHtml:function(){var a=this.tree,b=a.options,c=a.cache,e=this.getLevel(),d=this.data,g="";e<b.minExpandLevel?e>1&&(g+=c.tagConnector):g+=this.hasChildren()!==!1?c.tagExpander:c.tagConnector;b.checkbox&&d.hideCheckbox!==!0&&!d.isStatusNode&&(g+=c.tagCheckbox);d.icon?g+="<img src='"+b.imagePath+d.icon+"' alt='' />":d.icon===!1||(g+=c.tagNodeIcon);c="";b.onCustomRender&&(c=b.onCustomRender.call(a,this)||"");c||(a=d.tooltip?" title='"+d.tooltip+"'":"",c=b.noLink||d.noLink?"<span style='display: inline-block;' class='"+
7
+ b.classNames.title+"'"+a+">"+d.title+"</span>":"<a href='#' class='"+b.classNames.title+"'"+a+">"+d.title+"</a>");g+=c;return g},_fixOrder:function(){var a=this.childList;if(a&&this.ul)for(var b=this.ul.firstChild,c=0,e=a.length-1;c<e;c++){var d=a[c],g=b.dtnode;d!==g?(this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+d+" != "+g),this.ul.insertBefore(d.li,g.li)):b=b.nextSibling}},render:function(a,b){var c=this.tree,e=this.parent,d=this.data,g=c.options,h=g.classNames,i=this.isLastSibling();
8
+ if(!e&&!this.ul)this.li=this.span=null,this.ul=document.createElement("ul"),this.ul.className=g.minExpandLevel>1?h.container+" "+h.noConnector:h.container;else if(e){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(d.key&&g.generateIds)this.li.id=g.idPrefix+d.key;this.span=document.createElement("span");this.span.className=h.title;this.li.appendChild(this.span);if(!e.ul)e.ul=document.createElement("ul"),e.ul.style.display="none",e.li.appendChild(e.ul);e.ul.appendChild(this.li)}this.span.innerHTML=
9
+ this._getInnerHtml();var j=[];j.push(h.node);d.isFolder&&j.push(h.folder);this.bExpanded&&j.push(h.expanded);this.hasChildren()!==!1&&j.push(h.hasChildren);d.isLazy&&this.childList===null&&j.push(h.lazy);i&&j.push(h.lastsib);this.bSelected&&j.push(h.selected);this.hasSubSel&&j.push(h.partsel);c.activeNode===this&&j.push(h.active);d.addClass&&j.push(d.addClass);j.push(h.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(d.isLazy&&this.childList===null?"d":"")+(i?"l":""));j.push(h.combinedIconPrefix+
10
+ (this.bExpanded?"e":"c")+(d.isFolder?"f":""));this.span.className=j.join(" ");this.li.className=i?h.lastsib:"";g.onRender&&g.onRender.call(c,this,this.span)}if((this.bExpanded||b===!0)&&this.childList){c=0;for(d=this.childList.length;c<d;c++)this.childList[c].render(!1,b);this._fixOrder()}if(this.ul)c=this.ul.style.display==="none",d=!!this.bExpanded,a&&g.fx&&c===d?(e=g.fx.duration||200,f(this.ul).animate(g.fx,e)):this.ul.style.display=this.bExpanded||!e?"":"none"},getKeyPath:function(a){var b=[];
11
+ this.visitParents(function(a){a.parent&&b.unshift(a.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===void 0)return;else if(this.childList.length===0)return!1;else if(this.childList.length===1&&this.childList[0].isStatusNode())return;return!0}return!!this.childList},isFirstSibling:function(){var a=this.parent;
12
+ 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,c=a.length;b<c;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,c=a.length-1;b<c;b++)if(a[b]===this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===!0},isChildOf:function(a){return this.parent&&
13
+ this.parent===a},isDescendantOf:function(a){if(!a)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},countChildren:function(){var a=this.childList;if(!a)return 0;for(var b=a.length,c=0,e=b;c<e;c++)b+=a[c].countChildren();return b},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(a,b){return a.data.title===b.data.title?0:a.data.title>b.data.title?1:-1};c.sort(a);if(b)for(var e=0,d=c.length;e<d;e++)c[e].childList&&c[e].sortChildren(a,"$norender$");b!=="$norender$"&&
14
+ this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)b?(a.isStatusNode=!0,a.key="_statusNode",b.data=a,b.render()):(a.isStatusNode=!0,a.key="_statusNode",this.addChild(a));else if(b&&b.isStatusNode()){try{this.ul&&this.ul.removeChild(b.li)}catch(c){}this.childList.length===1?this.childList=[]:this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,e=b&&b.info?" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);
15
+ f(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=!1;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=!0;f(this.span).addClass(this.tree.options.classNames.nodeLoading);this.parent||this._setStatusNode({title:this.tree.options.strings.loading+e,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=
16
+ !1;this._setStatusNode({title:this.tree.options.strings.loadError+e,tooltip:c,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+a+"'.";}},_parentList:function(a,b){for(var c=[],e=b?this:this.parent;e;)(a||e.parent)&&c.unshift(e),e=e.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;for(var e=
17
+ a.pageX-c.offsetLeft,a=a.pageY-c.offsetTop,d=0,g=c.childNodes.length;d<g;d++){var f=c.childNodes[d],i=f.offsetLeft-c.offsetLeft,j=f.offsetTop-c.offsetTop,s=f.clientWidth,k=f.clientHeight;if(e>=i&&e<=i+s&&a>=j&&a<=j+k)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;
18
+ 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(!0,!1),b=0,c=a.length;b<c;b++)if(!a[b].bExpanded)return!1;return!0},makeVisible:function(){for(var a=this._parentList(!0,!1),b=0,c=a.length;b<c;b++)a[b]._expand(!0)},
19
+ 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&&(!b||!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===!1)))if(a){if(this.tree.activeNode){if(this.tree.activeNode===this)return;this.tree.activeNode.deactivate()}c.activeVisible&&this.makeVisible();
20
+ 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.onQueryActivate&&c.onQueryActivate.call(this.tree,!1,this)===!1))f(this.span).removeClass(c.classNames.active),c.persist&&f.cookie(c.cookieId+"-active","",c.cookie),this.tree.persistence.activeKey=null,this.tree.activeNode=null,b&&
21
+ c.onDeactivate&&c.onDeactivate.call(this.tree,this)},activate:function(){this._activate(!0,!0)},activateSilently:function(){this._activate(!0,!1)},deactivate:function(){this._activate(!1,!0)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var a=!0,b=!1;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=!1;b=!0;break;case 3:a=b=!0}this.parent===null&&(b=!1);b&&(this.toggleExpand(),this.focus());a&&this.activate()},_setSubSel:function(a){a?(this.hasSubSel=
22
+ !0,f(this.span).addClass(this.tree.options.classNames.partsel)):(this.hasSubSel=!1,f(this.span).removeClass(this.tree.options.classNames.partsel))},_fixSelectionState:function(){var a,b,c;if(this.bSelected){this.visit(function(a){a.parent._setSubSel(!0);a._select(!0,!1,!1)});for(a=this.parent;a;){a._setSubSel(!0);var e=!0;b=0;for(c=a.childList.length;b<c;b++){var d=a.childList[b];if(!d.bSelected&&!d.data.isStatusNode){e=!1;break}}e&&a._select(!0,!1,!1);a=a.parent}}else{this._setSubSel(!1);this.visit(function(a){a._setSubSel(!1);
23
+ a._select(!1,!1,!1)});for(a=this.parent;a;){a._select(!1,!1,!1);e=!1;b=0;for(c=a.childList.length;b<c;b++)if(a.childList[b].bSelected||a.childList[b].hasSubSel){e=!0;break}a._setSubSel(e);a=a.parent}}},_select:function(a,b,c){var e=this.tree.options;if(!this.data.isStatusNode&&this.bSelected!==a&&(!b||!(e.onQuerySelect&&e.onQuerySelect.call(this.tree,a,this)===!1)))e.selectMode==1&&a&&this.tree.visit(function(a){if(a.bSelected)return a._select(!1,!1,!1),!1}),(this.bSelected=a)?(e.persist&&this.tree.persistence.addSelect(this.data.key),
24
+ f(this.span).addClass(e.classNames.selected),c&&e.selectMode===3&&this._fixSelectionState(),b&&e.onSelect&&e.onSelect.call(this.tree,!0,this)):(e.persist&&this.tree.persistence.clearSelect(this.data.key),f(this.span).removeClass(e.classNames.selected),c&&e.selectMode===3&&this._fixSelectionState(),b&&e.onSelect&&e.onSelect.call(this.tree,!1,this))},select:function(a){if(this.data.unselectable)return this.bSelected;return this._select(a!==!1,!0,!0)},toggleSelect:function(){return this.select(!this.bSelected)},
25
+ isSelected:function(){return this.bSelected},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this);this.setLazyNodeStatus(DTNodeStatus_Loading);!0===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,b){if(this.bExpanded===a)this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",
26
+ 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",a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===!1)){this.bExpanded=a;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&&
27
+ c.autoCollapse)for(var e=this._parentList(!1,!0),d=0,f=e.length;d<f;d++)e[d].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();a&&this.data.isLazy&&this.childList===null&&!this.isLoading?this._loadContent():c.onExpand&&c.onExpand.call(this.tree,a,this)}}},expand:function(a){a=a!==!1;if(this.childList||this.data.isLazy||!a)(this.parent!==null||a)&&this._expand(a)},scheduleAction:function(a,b){this.tree.timer&&(clearTimeout(this.tree.timer),
28
+ 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");c.expand(!0)},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!==
29
+ null)for(var a=this.parent.childList,b=0,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(!1)},_onClick:function(a){var b=this.getEventTargetType(a);if(b==="expander")this.toggleExpand(),this.focus();else if(b==="checkbox")this.toggleSelect(),this.focus();else if(this._userActivate(),b=this.span.getElementsByTagName("a"),b[0])f.browser.msie||b[0].focus();else return!0;a.preventDefault()},_onDblClick:function(){},_onKeydown:function(a){var b=!0,c;switch(a.which){case 107:case 187:this.bExpanded||
30
+ this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();break;case 37:this.bExpanded?(this.toggleExpand(),this.focus()):this.parent&&this.parent.parent&&this.parent.focus();break;case 39:!this.bExpanded&&(this.childList||this.data.isLazy)?(this.toggleExpand(),this.focus()):this.childList&&this.childList[0].focus();break;case 38:for(c=this.getPrevSibling();c&&c.bExpanded&&c.childList;)c=c.childList[c.childList.length-
31
+ 1];if(!c&&this.parent&&this.parent.parent)c=this.parent;c&&c.focus();break;case 40:if(this.bExpanded&&this.childList)c=this.childList[0];else for(var e=this._parentList(!1,!0),d=e.length-1;d>=0;d--)if(c=e[d].getNextSibling())break;c&&c.focus();break;default:b=!1}b&&a.preventDefault()},_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),
32
+ this.tree.tnFocused=null,b.persist&&f.cookie(b.cookieId+"-focus","",b.cookie);else if(a.type=="focus"||a.type=="focusin")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)},
33
+ visit:function(a,b){var c=!0;if(b===!0&&(c=a(this),c===!1||c=="skip"))return c;if(this.childList)for(var e=0,d=this.childList.length;e<d;e++)if(c=this.childList[e].visit(a,!0),c===!1)break;return c},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},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!==
34
+ b[0])throw"removeChild: invalid child";return this.removeChildren()}a===this.tree.activeNode&&a.deactivate();this.tree.options.persist&&(a.bSelected&&this.tree.persistence.clearSelect(a.data.key),a.bExpanded&&this.tree.persistence.clearExpand(a.data.key));a.removeChildren(!0);this.ul.removeChild(a.li);for(var c=0,e=b.length;c<e;c++)if(b[c]===a){this.childList.splice(c,1);break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,e=this.childList;if(e){for(var d=
35
+ 0,f=e.length;d<f;d++){var h=e[d];h===c.activeNode&&!b&&h.deactivate();this.tree.options.persist&&!b&&(h.bSelected&&this.tree.persistence.clearSelect(h.data.key),h.bExpanded&&this.tree.persistence.clearExpand(h.data.key));h.removeChildren(!0,b);this.ul&&this.ul.removeChild(h.li)}this.childList=null}if(!a)this.isLoading=!1,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(e,d,f){b.tree.$tree.unbind(c);b.tree.logDebug("loaded %o, %o, %o",e,d,f);if(d!==b)throw"got invalid load event";a.call(b.tree,d,f)})}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 e=
37
+ a.split(c.options.keyPathSeparator);if(e[0]==="")throw"Key path must be relative (don't start with '/')";for(var d=e.shift(),f=0,h=this.childList.length;f<h;f++){var i=this.childList[f];if(i.data.key===d){if(e.length===0)b.call(c,i,"ok");else if(i.data.isLazy&&(i.childList===null||i.childList===void 0)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,i);var j=this;i.reloadChildren(function(d,f){f?(c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",d,a,d),b.call(c,i,"loaded"),d._loadKeyPath(e.join(c.options.keyPathSeparator),
38
+ b)):(c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",j,a),b.call(c,i,"error"))})}else b.call(c,i,"loaded"),i._loadKeyPath(e.join(c.options.keyPathSeparator),b);return}}c.logWarning("Node not found: "+d)},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(!1);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,e=c.options,d=c.persistence;a.parent=this;this.childList===
39
+ null?this.childList=[]:b||this.childList.length>0&&f(this.childList[this.childList.length-1].span).removeClass(e.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(e.persist&&d.cookiesFound&&g){if(d.activeKey==a.data.key)c.activeNode=a;if(d.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=f.inArray(a.data.key,d.expandedKeyList)>=0;a.bSelected=f.inArray(a.data.key,
40
+ d.selectedKeyList)>=0}else{if(a.data.activate&&(c.activeNode=a,e.persist))d.activeKey=a.data.key;if(a.data.focus&&(c.focusNode=a,e.persist))d.focusedKey=a.data.key;a.bExpanded=a.data.expand===!0;a.bExpanded&&e.persist&&d.addExpand(a.data.key);a.bSelected=a.data.select===!0;a.bSelected&&e.persist&&d.addSelect(a.data.key)}if(e.minExpandLevel>=a.getLevel())this.bExpanded=!0;if(a.bSelected&&e.selectMode==3)for(e=this;e;)e.hasSubSel||e._setSubSel(!0),e=e.parent;c.bEnableUpdate&&this.render();return a},
41
+ addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+a;else if(!a||a.length===0)return;else if(a instanceof o)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(!1),e=null,d=0,f=a.length;d<f;d++){var h=a[d],i=this._addChildNode(new o(this,this.tree,h),b);e||(e=i);h.children&&i.addChild(h.children,null)}this.tree.enableUpdate(c);return e},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,
42
+ null)},appendAjax:function(a){var b=this;this.removeChildren(!1,!0);this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var c=a.debugLazyDelay;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+c);setTimeout(function(){b.appendAjax(a)},c)}else{var e=a.success,d=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=f.extend({},this.tree.options.ajaxDefaults,a,{success:function(a){var c=b.tree.phase;b.tree.phase="init";h.postProcess&&
43
+ (a=h.postProcess.call(this,a,this.dataType));(!f.isArray(a)||a.length!==0)&&b.addChild(a,null);b.tree.phase="postInit";e&&e.call(h,b);b.tree.logDebug("trigger "+g);b.tree.$tree.trigger(g,[b,!0]);b.tree.phase=c;b.setLazyNodeStatus(DTNodeStatus_Ok);if(f.isArray(a)&&a.length===0)b.childList=[],b.render()},error:function(a,c,e){b.tree.logWarning("appendAjax failed:",c,":\n",a,"\n",e);d&&d.call(h,b,a,c,e);b.tree.$tree.trigger(g,[b,!1]);b.setLazyNodeStatus(DTNodeStatus_Error,{info:c,tooltip:""+e})}});f.ajax(h)}},
44
+ move:function(a,b){var c;if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===void 0||b=="over")b="child";var e=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=!1;else{c=f.inArray(this,this.parent.childList);if(c<0)throw"Internal error";this.parent.childList.splice(c,1)}this.parent.ul.removeChild(this.li);this.parent=d;if(d.hasChildren())switch(b){case "child":d.childList.push(this);
45
+ break;case "before":c=f.inArray(a,d.childList);if(c<0)throw"Internal error";d.childList.splice(c,0,this);break;case "after":c=f.inArray(a,d.childList);if(c<0)throw"Internal error";d.childList.splice(c+1,0,this);break;default:throw"Invalid mode "+b;}else if(d.childList=[this],!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)throw this.visit(function(b){b.tree=a.tree},null,!0),"Not yet implemented.";e.isDescendantOf(d)||
46
+ e.render();d.isDescendantOf(e)||d.render()}},lastentry:void 0};var m=n.create();m._getTreePersistData=function(a,b){var c=new m(a,b);c.read();return c.toDict()};getDynaTreePersistData=m._getTreePersistData;m.prototype={initialize:function(a,b){if(a===void 0)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=void 0;this.selectedKeyList=this.expandedKeyList=this.focusedKey=this.activeKey=null},_log:function(){Array.prototype.unshift.apply(arguments,
47
+ ["debug"]);_log.apply(this,arguments)},read:function(){this.cookiesFound=!1;var a=f.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-focus");this.focusedKey=a===null?"":a;if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-expand");this.expandedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-select");this.selectedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=
48
+ !0},write:function(){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)},addExpand:function(a){f.inArray(a,this.expandedKeyList)<0&&(this.expandedKeyList.push(a),
49
+ f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts))},clearExpand:function(a){a=f.inArray(a,this.expandedKeyList);a>=0&&(this.expandedKeyList.splice(a,1),f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts))},addSelect:function(a){f.inArray(a,this.selectedKeyList)<0&&(this.selectedKeyList.push(a),f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},clearSelect:function(a){a=f.inArray(a,this.selectedKeyList);a>=
50
+ 0&&(this.selectedKeyList.splice(a,1),f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},isReloading:function(){return this.cookiesFound===!0},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,selectedKeyList:this.selectedKeyList}},lastentry:void 0};var p=n.create();p.version="$Version:$";p.prototype={initialize:function(a){this.phase="init";this.$widget=a;this.options=a.options;
51
+ this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);l(this)},_load:function(a){var b=this.options,c=this;this.bEnableUpdate=!0;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==void 0&&this.logWarning("Option 'rootVisible' is no longer supported.");if(b.minExpandLevel<1)this.logWarning("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,
52
+ 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,b.dnd);b.imagePath||f("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0)return b.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/",c.logDebug("Guessing imagePath from '%s': '%s'",
53
+ this.src,b.imagePath),!1});this.persistence=new m(b.cookieId,b.cookie);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());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>",
54
+ tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:void 0};(b.children||b.initAjax&&b.initAjax.url||b.initId)&&f(this.divTree).empty();var e=this.$tree.find(">ul:first").hide();this.tnRoot=new o(null,this,{});this.tnRoot.bExpanded=!0;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var d=this.tnRoot,g=b.persist&&this.persistence.isReloading(),h=!1,i=this.enableUpdate(!1);this.logDebug("Dynatree._load(): read tree structure...");
55
+ b.children?d.addChild(b.children):b.initAjax&&b.initAjax.url?(h=!0,d.data.isLazy=!0,this._reloadAjax(a)):b.initId?this._createFromTag(d,f("#"+b.initId)):(this._createFromTag(d,e),e.remove());this._checkConsistency();this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(i);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();this.focusNode&&this.focusNode.isVisible()&&
56
+ (this.logDebug("Focus on init: %o",this.focusNode),this.focusNode.focus());!h&&b.onPostInit&&b.onPostInit.call(this,g,!1);this.phase="idle"},_reloadAjax:function(a){var b=this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var c=this.persistence,e=f.extend({},b.initAjax);if(e.addActiveKey)e.data.activeKey=c.activeKey;if(e.addFocusedKey)e.data.focusedKey=c.focusedKey;if(e.addExpandedKeyList)e.data.expandedKeyList=c.expandedKeyList.join(",");if(e.addSelectedKeyList)e.data.selectedKeyList=
57
+ c.selectedKeyList.join(",");if(b.onPostInit){e.success&&this.logWarning("initAjax: success callback is ignored when onPostInit was specified.");e.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");var d=c.isReloading();e.success=function(c){b.onPostInit.call(c.tree,d,!1);a&&a.call(c.tree,"ok")};e.error=function(c){b.onPostInit.call(c.tree,d,!0);a&&a.call(c.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(e)},toString:function(){return"Dynatree '"+
58
+ this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(!0)},serializeArray:function(a){for(var a=this.getSelectedNodes(a),b=this.$tree.attr("name")||this.$tree.attr("id"),c=[],e=0,d=a.length;e<d;e++)c.push({name:b,value:a[e].data.key});return c},getPersistData:function(){return this.persistence.toDict()},logDebug:function(){this.options.debugLevel>=2&&(Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments))},logInfo:function(){this.options.debugLevel>=1&&(Array.prototype.unshift.apply(arguments,
59
+ ["info"]),_log.apply(this,arguments))},logWarning:function(){Array.prototype.unshift.apply(arguments,["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.tnRoot.render(!1,!1)},renderInvisibleNodes:function(){this.tnRoot.render(!1,!0)},
60
+ reload:function(a){this._load(a)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},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(b){if(b.data.key==a)return c=b,!1},!0);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=
61
+ [];this.tnRoot.visit(function(c){if(c.bSelected&&(b.push(c),a===!0))return"skip"});return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a)return this.activeNode&&this.activeNode.deactivate(),this.activeNode=null;a.focus();a.activate();return a},loadKeyPath:function(a,b){var c=a.split(this.options.keyPathSeparator);c[0]===""&&c.shift();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,
62
+ b)},selectKey:function(a,b){var c=this.getNodeByKey(a);if(!c)return null;c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},count:function(){return this.tnRoot.countChildren()},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var b=f(this),d=b.find(">span:first");if(d.length)d=d.html();else var d=b.html(),g=d.search(/<ul/i),d=g>=0?f.trim(d.substring(0,
63
+ g)):f.trim(d);d={title:d,isFolder:b.hasClass("folder"),isLazy:b.hasClass("lazy"),expand:b.hasClass("expanded"),select:b.hasClass("selected"),activate:b.hasClass("active"),focus:b.hasClass("focused"),noLink:b.hasClass("noLink")};if(b.attr("title"))d.tooltip=b.attr("title");if(b.attr("id"))d.key=b.attr("id");if(b.attr("data")&&(g=f.trim(b.attr("data")))){g.charAt(0)!="{"&&(g="{"+g+"}");try{f.extend(d,eval("("+g+")"))}catch(h){throw"Error parsing node data: "+h+"\ndata:\n'"+g+"'";}}d=a.addChild(d);b=
64
+ b.find(">ul:first");b.length&&c._createFromTag(d,b)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,e,d){a=a?f(a.span):null;b=f(b.span);if(!this.$dndMarker)this.$dndMarker=f("<div id='dynatree-drop-marker'></div>").hide().prependTo(f(this.divTree).parent());if(e==="after"||e==="before"||e==="over"){var g=b.position();switch(e){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");
65
+ this.$dndMarker.addClass("dynatree-drop-after");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();e==="after"?b.addClass("dynatree-drop-after"):b.removeClass("dynatree-drop-after");e==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");
66
+ d===!0?(a&&a.addClass("dynatree-drop-accept"),b.addClass("dynatree-drop-accept"),c.addClass("dynatree-drop-accept")):(a&&a.removeClass("dynatree-drop-accept"),b.removeClass("dynatree-drop-accept"),c.removeClass("dynatree-drop-accept"));d===!1?(a&&a.addClass("dynatree-drop-reject"),b.addClass("dynatree-drop-reject"),c.addClass("dynatree-drop-reject")):(a&&a.removeClass("dynatree-drop-reject"),b.removeClass("dynatree-drop-reject"),c.removeClass("dynatree-drop-reject"))},_onDragEvent:function(a,b,c,
67
+ e,d,g){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(e.target).closest("a").clone());c.data("dtSourceNode",b);i=c;break;case "start":b.isStatusNode()?i=!1:h.onDragStart&&(i=h.onDragStart(b));i===!1?(this.logDebug("tree.onDragStart() cancelled"),d.helper.trigger("mouseup"),d.helper.hide()):j.addClass("dynatree-drag-source");break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;
68
+ i={over:i!==!1&&(i===!0||i==="over"||f.inArray("over",i)>=0),before:i!==!1&&(i===!0||i==="before"||f.inArray("before",i)>=0),after:i!==!1&&(i===!0||i==="after"||f.inArray("after",i)>=0)};d.helper.data("enterResponse",i);break;case "over":g=d.helper.data("enterResponse");a=null;if(g===!1)break;else if(typeof g==="string")a=g;else{var k=j.offset(),e={x:e.pageX-k.left,y:e.pageY-k.top},j={x:e.x/j.width(),y:e.y/j.height()};g.after&&j.y>0.75?a="after":!g.over&&g.after&&j.y>0.5?a="after":g.before&&j.y<=
69
+ 0.25?a="before":!g.over&&g.before&&j.y<=0.5?a="before":g.over&&(a="over");h.preventVoidMoves&&(b===c?a=null:a==="before"&&c&&b===c.getNextSibling()?a=null:a==="after"&&c&&b===c.getPrevSibling()?a=null:a==="over"&&c&&c.parent===b&&c.isLastSibling()&&(a=null));d.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==!1&&!b.bExpanded&&b.scheduleAction("expand",h.autoExpandMS);a&&h.onDragOver&&(i=h.onDragOver(b,c,a));this._setDndStatus(c,b,d.helper,a,i!==!1);break;case "drop":if((a=d.helper.data("hitMode"))&&
70
+ h.onDrop)h.onDrop(b,c,a,d,g);break;case "leave":b.scheduleAction("cancel");d.helper.data("enterResponse",null);d.helper.data("hitMode",null);this._setDndStatus(c,b,d.helper,"out",void 0);if(h.onDragLeave)h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");if(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:void 0};f.widget("ui.dynatree",{_init:function(){if(parseFloat(f.ui.version)<
71
+ 1.8)return this.options.debugLevel>=0&&_log("warn","ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher."),this._create();this.options.debugLevel>=2&&_log("debug","ui.dynatree._init() was called; no current default functionality.")},_create:function(){this.options.debugLevel>=1&&logMsg("Dynatree._create(): version='%s', debugLevel=%o.",p.version,this.options.debugLevel);this.options.event+=".dynatree";this.element.get(0);this.tree=new p(this);this.tree._load();this.tree.logDebug("Dynatree._init(): done.")},
72
+ bind:function(){function a(a){var a=f.event.fix(a||window.event),b=k(a.target);return b?b._onFocus(a):!1}this.unbind();var b="click.dynatree dblclick.dynatree";this.options.keyboard&&(b+=" keypress.dynatree keydown.dynatree");this.element.bind(b,function(a){var b=k(a.target);if(!b)return!0;var d=b.tree,f=d.options;d.logDebug("event(%s): dtnode: %s",a.type,b);var h=d.phase;d.phase="userEvent";try{switch(a.type){case "click":return f.onClick&&f.onClick.call(d,b,a)===!1?!1:b._onClick(a);case "dblclick":return f.onDblClick&&
73
+ f.onDblClick.call(d,b,a)===!1?!1:b._onDblClick(a);case "keydown":return f.onKeydown&&f.onKeydown.call(d,b,a)===!1?!1:b._onKeydown(a);case "keypress":return f.onKeypress&&f.onKeypress.call(d,b,a)===!1?!1:b._onKeypress(a)}}catch(i){d.logWarning("bind(%o): dtnode: %o, error: %o",a,b,i)}finally{d.phase=h}});b=this.tree.divTree;b.addEventListener?(b.addEventListener("focus",a,!0),b.addEventListener("blur",a,!0)):b.onfocusin=b.onfocusout=a},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind();
74
+ 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:void 0});if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";f.ui.dynatree.prototype.options={title:"Dynatree",
75
+ minExpandLevel:1,imagePath:null,children:null,initId:null,initAjax:null,autoFocus:!0,keyboard:!0,persist:!1,autoCollapse:!1,clickFolderMode:3,activeVisible:!0,checkbox:!1,selectMode:2,fx:null,noLink:!1,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,onCustomRender:null,onRender:null,dnd:{onDragStart:null,onDragStop:null,
76
+ autoExpandMS:1E3,preventVoidMoves:!0,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:!1,dataType:"json"},strings:{loading:"Loading&#8230;",loadError:"Load error!"},generateIds:!1,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",
77
+ 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"},
78
+ debugLevel:2,lastentry:void 0};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:!1,isLazy:!1,tooltip:null,icon:null,addClass:null,noLink:!1,activate:!1,focus:!1,expand:!1,select:!1,hideCheckbox:!1,unselectable:!1,children:null,lastentry:void 0};var q=!1,r=function(){q||(f.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=f(this).data("draggable"),e=b.helper.data("dtSourceNode")||
79
+ null;if(e)return c.offset.click.top=-2,c.offset.click.left=16,e.tree._onDragEvent("start",e,null,a,b,c)},drag:function(a,b){var c=f(this).data("draggable"),e=b.helper.data("dtSourceNode")||null,d=b.helper.data("dtTargetNode")||null,g=k(a.target);a.target&&!g&&f(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>0||(b.helper.data("dtTargetNode",g),d&&d!==g&&d.tree._onDragEvent("leave",d,e,a,b,c),g&&g.tree.options.dnd.onDrop&&(g===d?g.tree._onDragEvent("over",g,e,a,b,c):g.tree._onDragEvent("enter",
80
+ g,e,a,b,c)))},stop:function(a,b){var c=f(this).data("draggable"),e=b.helper.data("dtSourceNode")||null,d=b.helper.data("dtTargetNode")||null,g=a.type=="mouseup"&&a.which==1;g||logMsg("Drag was cancelled");d&&(g&&d.tree._onDragEvent("drop",d,e,a,b,c),d.tree._onDragEvent("leave",d,e,a,b,c));e&&e.tree._onDragEvent("stop",e,null,a,b,c)}}),q=!0)}})(jQuery);
@@ -1,10 +1 @@
1
1
  require 'jquery/emulators'
2
-
3
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :blackberry_landscape => ['compiled/emulators/blackberry.landscape.css']
4
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :blackberry_portrait => ['compiled/emulators/blackberry.portrait.css']
5
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ipad_landscape => ['compiled/emulators/ipad.landscape.css']
6
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :ipad_portrait => ['compiled/emulators/ipad.portrait.css']
7
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :iphone_landscape => ['compiled/emulators/iphone.landscape.css']
8
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :iphone_portrait => ['compiled/emulators/iphone.portrait.css']
9
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :palm_landscape => ['compiled/emulators/palm.landscape.css']
10
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :palm_portrait => ['compiled/emulators/palm.portrait.css']
@@ -1,10 +1,14 @@
1
1
  // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
2
 
3
- .blackberry .emulator {
4
- margin-top: 160px;
3
+ .emulator {
5
4
  background: image_url("emulators/blackberry.torch.landscape.png") no-repeat;
6
5
  width: 840px;
7
6
  height: 460px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
8
12
  .display-area {
9
13
  position: relative;
10
14
  top: 52px;
@@ -1,9 +1,14 @@
1
1
  // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
2
 
3
- .blackberry .emulator {
3
+ .emulator {
4
4
  background: image_url("emulators/blackberry.torch.portrait.png") no-repeat;
5
5
  width: 534px;
6
6
  height: 852px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
7
12
  .display-area {
8
13
  position: relative;
9
14
  top: 157px;
@@ -0,0 +1,20 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.s.landscape.png") no-repeat;
5
+ width: 1132px;
6
+ height: 600px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
12
+ .display-area {
13
+ position: relative;
14
+ top: 98px;
15
+ width: 800px;
16
+ height: 445px;
17
+ max-height: 445px;
18
+ color: #ffffff;
19
+ a {
20
+ color: #ff5500; } } }
@@ -0,0 +1,20 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.s.portrait.png") no-repeat;
5
+ width: 600px;
6
+ height: 1120px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
12
+ .display-area {
13
+ position: relative;
14
+ top: 198px;
15
+ width: 480px;
16
+ height: 765px;
17
+ max-height: 765px;
18
+ color: #ffffff;
19
+ a {
20
+ color: #ff5500; } } }
@@ -0,0 +1,20 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.s2.landscape.png") no-repeat;
5
+ width: 1072px;
6
+ height: 566px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
12
+ .display-area {
13
+ position: relative;
14
+ top: 79px;
15
+ width: 800px;
16
+ height: 443px;
17
+ max-height: 443px;
18
+ color: #ffffff;
19
+ a {
20
+ color: #ff5500; } } }
@@ -0,0 +1,20 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.s2.portrait.png") no-repeat;
5
+ width: 566px;
6
+ height: 1068px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
12
+ .display-area {
13
+ position: relative;
14
+ top: 169px;
15
+ width: 480px;
16
+ height: 765px;
17
+ max-height: 765px;
18
+ color: #ffffff;
19
+ a {
20
+ color: #ff5500; } } }
@@ -0,0 +1,20 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.tab.10.1.landscape.png") no-repeat;
5
+ width: 1438px;
6
+ height: 998px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .actions {
11
+ position: absolute; }
12
+ .display-area {
13
+ position: relative;
14
+ top: 151px;
15
+ width: 1280px;
16
+ height: 708px;
17
+ max-height: 708px;
18
+ color: #ffffff;
19
+ a {
20
+ color: #ff5500; } } }