compass-jquery-plugin 0.3.2.8 → 0.3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. data/README.md +24 -6
  2. data/VERSION.yml +3 -3
  3. data/lib/jquery/gridify/grid_column.rb +6 -6
  4. data/lib/jquery/gridify/grid_options.rb +4 -4
  5. data/lib/jquery/mark_it_up.rb +2 -0
  6. data/lib/jquery/mobile.rb +0 -1
  7. data/templates/dynatree/jquery.dynatree.js +2896 -2880
  8. data/templates/dynatree/jquery.dynatree.min.js +55 -54
  9. data/templates/dynatree/jquery/dynatree/aero.scss +4 -2
  10. data/templates/dynatree/jquery/dynatree/aqua.scss +4 -2
  11. data/templates/dynatree/jquery/dynatree/crystal.scss +4 -2
  12. data/templates/dynatree/jquery/dynatree/xp.scss +5 -3
  13. data/templates/emulators/emulators/bb.playbook.landscape.png +0 -0
  14. data/templates/emulators/emulators/bb.playbook.landscape.scss +18 -0
  15. data/templates/emulators/emulators/bb.playbook.portrait.png +0 -0
  16. data/templates/emulators/emulators/bb.playbook.portrait.scss +18 -0
  17. data/templates/emulators/emulators/{blackberry.torch.landscape.png → bb.torch.landscape.png} +0 -0
  18. data/templates/emulators/emulators/{blackberry.torch.landscape.scss → bb.torch.landscape.scss} +1 -3
  19. data/templates/emulators/emulators/{blackberry.torch.portrait.png → bb.torch.portrait.png} +0 -0
  20. data/templates/emulators/emulators/{blackberry.torch.portrait.scss → bb.torch.portrait.scss} +1 -3
  21. data/templates/emulators/emulators/galaxy.ace.landscape.png +0 -0
  22. data/templates/emulators/emulators/galaxy.ace.landscape.scss +18 -0
  23. data/templates/emulators/emulators/galaxy.ace.portrait.png +0 -0
  24. data/templates/emulators/emulators/galaxy.ace.portrait.scss +18 -0
  25. data/templates/emulators/emulators/galaxy.s.landscape.scss +0 -2
  26. data/templates/emulators/emulators/galaxy.s.portrait.scss +0 -2
  27. data/templates/emulators/emulators/galaxy.s2.landscape.scss +0 -2
  28. data/templates/emulators/emulators/galaxy.s2.portrait.scss +0 -2
  29. data/templates/emulators/emulators/galaxy.tab.10.1.landscape.scss +0 -2
  30. data/templates/emulators/emulators/galaxy.tab.10.1.portrait.scss +0 -2
  31. data/templates/emulators/emulators/galaxy.tab.7.landscape.scss +0 -2
  32. data/templates/emulators/emulators/galaxy.tab.7.portrait.scss +0 -2
  33. data/templates/emulators/emulators/galaxy.tab.8.9.landscape.scss +0 -2
  34. data/templates/emulators/emulators/galaxy.tab.8.9.portrait.scss +0 -2
  35. data/templates/emulators/emulators/htc.sensation.landscape.png +0 -0
  36. data/templates/emulators/emulators/htc.sensation.landscape.scss +18 -0
  37. data/templates/emulators/emulators/htc.sensation.portrait.png +0 -0
  38. data/templates/emulators/emulators/htc.sensation.portrait.scss +18 -0
  39. data/templates/emulators/emulators/ipad.landscape.scss +0 -2
  40. data/templates/emulators/emulators/ipad.portrait.scss +0 -2
  41. data/templates/emulators/emulators/iphone.3.landscape.scss +0 -2
  42. data/templates/emulators/emulators/iphone.3.portrait.scss +0 -2
  43. data/templates/emulators/emulators/{iphone.4.landscape .scss → iphone.4.landscape.scss} +0 -2
  44. data/templates/emulators/emulators/iphone.4.portrait.scss +0 -2
  45. data/templates/emulators/emulators/palm.pre.2.landscape.scss +0 -2
  46. data/templates/emulators/emulators/palm.pre.2.portrait.scss +0 -2
  47. data/templates/emulators/manifest.rb +17 -5
  48. data/templates/graphics/highcharts/dark-blue.js +159 -159
  49. data/templates/graphics/highcharts/dark-green.js +159 -159
  50. data/templates/graphics/highcharts/gray.js +154 -154
  51. data/templates/graphics/highcharts/grid.js +84 -84
  52. data/templates/graphics/highcharts/highslide-config.js +2 -2
  53. data/templates/graphics/highcharts/highslide-full.js +3310 -3310
  54. data/templates/graphics/highcharts/skies.js +72 -72
  55. data/templates/graphics/jquery.ganttView.js +1550 -1550
  56. data/templates/graphics/jquery.highcharts.js +11277 -11285
  57. data/templates/graphics/jquery.sparkline.js +1072 -1072
  58. data/templates/ical/jquery.ical.js +7637 -7637
  59. data/templates/ical/jquery/ical.print.scss +3 -3
  60. data/templates/jqgrid/i18n/jqgrid/locale-ar.js +127 -127
  61. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +131 -131
  62. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +131 -131
  63. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -128
  64. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -132
  65. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +129 -129
  66. data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -128
  67. data/templates/jqgrid/i18n/jqgrid/locale-de.js +134 -134
  68. data/templates/jqgrid/i18n/jqgrid/locale-el.js +127 -127
  69. data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -128
  70. data/templates/jqgrid/i18n/jqgrid/locale-es.js +129 -129
  71. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +141 -141
  72. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +128 -128
  73. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +127 -127
  74. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +127 -127
  75. data/templates/jqgrid/i18n/jqgrid/locale-he.js +128 -128
  76. data/templates/jqgrid/i18n/jqgrid/locale-hu.js +128 -128
  77. data/templates/jqgrid/i18n/jqgrid/locale-is.js +127 -127
  78. data/templates/jqgrid/i18n/jqgrid/locale-it.js +6 -6
  79. data/templates/jqgrid/i18n/jqgrid/locale-ja.js +153 -153
  80. data/templates/jqgrid/i18n/jqgrid/locale-lt.js +128 -128
  81. data/templates/jqgrid/i18n/jqgrid/locale-mne.js +134 -0
  82. data/templates/jqgrid/i18n/jqgrid/locale-mne.min.js +7 -0
  83. data/templates/jqgrid/i18n/jqgrid/locale-nl.js +145 -145
  84. data/templates/jqgrid/i18n/jqgrid/locale-no.js +12 -12
  85. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +128 -128
  86. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +128 -128
  87. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +126 -126
  88. data/templates/jqgrid/i18n/jqgrid/locale-ro.js +140 -140
  89. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +128 -128
  90. data/templates/jqgrid/i18n/jqgrid/locale-sk.js +128 -128
  91. data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -128
  92. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +128 -128
  93. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +127 -127
  94. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +128 -128
  95. data/templates/jqgrid/jquery.jqGrid.js +13477 -13443
  96. data/templates/jqgrid/jquery.jqGrid.min.js +292 -287
  97. data/templates/jqgrid/jquery/jqGrid.scss +13 -12
  98. data/templates/jqgrid/manifest.rb +2 -0
  99. data/templates/jqtouch/jquery.jqtouch.js +9601 -9556
  100. data/templates/jqtouch/jquery.jqtouch.min.js +3 -3
  101. data/templates/jqtouch/jquery/touch/default.scss +2 -2
  102. data/templates/jqtouch/jquery/touch/jqt.scss +2 -2
  103. data/templates/jqtouch/jquery/touch/jqtouch.scss +26 -5
  104. data/templates/jquery/amplify.store.js +211 -211
  105. data/templates/jquery/config/initializers/jquery.rb +2 -0
  106. data/templates/jquery/history.adapter.jquery.js +42 -36
  107. data/templates/jquery/history.html4.js +563 -563
  108. data/templates/jquery/history.html4.min.js +5 -5
  109. data/templates/jquery/history.js +1721 -1694
  110. data/templates/jquery/history.min.js +28 -27
  111. data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
  112. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +18 -18
  113. data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
  114. data/templates/jquery/i18n/jquery.ui/datepicker-az.js +20 -20
  115. data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +21 -21
  116. data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
  117. data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +19 -19
  118. data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
  119. data/templates/jquery/i18n/jquery.ui/datepicker-da.js +20 -20
  120. data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
  121. data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
  122. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +19 -19
  123. data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
  124. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +19 -19
  125. data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
  126. data/templates/jquery/i18n/jquery.ui/datepicker-es.js +19 -19
  127. data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
  128. data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
  129. data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +19 -19
  130. data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +19 -19
  131. data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
  132. data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
  133. data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +20 -20
  134. data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +19 -19
  135. data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
  136. data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
  137. data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +19 -19
  138. data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +19 -19
  139. data/templates/jquery/i18n/jquery.ui/datepicker-id.js +19 -19
  140. data/templates/jquery/i18n/jquery.ui/datepicker-is.js +19 -19
  141. data/templates/jquery/i18n/jquery.ui/datepicker-it.js +19 -19
  142. data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
  143. data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +19 -19
  144. data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +19 -19
  145. data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +19 -19
  146. data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +19 -19
  147. data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
  148. data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +19 -19
  149. data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
  150. data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
  151. data/templates/jquery/i18n/jquery.ui/datepicker-no.js +18 -18
  152. data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +19 -19
  153. data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +19 -19
  154. data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +19 -19
  155. data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +17 -17
  156. data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
  157. data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +19 -19
  158. data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +19 -19
  159. data/templates/jquery/i18n/jquery.ui/datepicker-sk.min.js +1 -1
  160. data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +19 -19
  161. data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
  162. data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
  163. data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
  164. data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +20 -20
  165. data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
  166. data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
  167. data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +19 -19
  168. data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +19 -19
  169. data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +19 -19
  170. data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
  171. data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +19 -19
  172. data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +19 -19
  173. data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
  174. data/templates/jquery/jquery-ui.js +11913 -11882
  175. data/templates/jquery/jquery-ui.min.js +340 -339
  176. data/templates/jquery/jquery.bgiframe.js +27 -27
  177. data/templates/jquery/jquery.contextMenu.js +202 -202
  178. data/templates/jquery/jquery.cookie.js +26 -26
  179. data/templates/jquery/jquery.dotimeout.js +227 -227
  180. data/templates/jquery/jquery.dst.js +89 -89
  181. data/templates/jquery/jquery.easing.js +226 -0
  182. data/templates/jquery/jquery.easing.min.js +8 -0
  183. data/templates/jquery/jquery.farbtastic.js +294 -294
  184. data/templates/jquery/jquery.flashMessages.js +14 -14
  185. data/templates/jquery/jquery.form.js +761 -761
  186. data/templates/jquery/jquery.haml.js +247 -247
  187. data/templates/jquery/jquery.hotkeys.js +79 -79
  188. data/templates/jquery/jquery.js +1490 -928
  189. data/templates/jquery/jquery.layout.js +2454 -2454
  190. data/templates/jquery/jquery.mediahelpers.js +216 -0
  191. data/templates/jquery/jquery.mediahelpers.min.js +3 -0
  192. data/templates/jquery/jquery.min.js +177 -166
  193. data/templates/jquery/jquery.mousewheel.js +57 -57
  194. data/templates/jquery/jquery.offline.js +171 -171
  195. data/templates/jquery/jquery.pngFix.js +72 -72
  196. data/templates/jquery/jquery.rails.js +145 -145
  197. data/templates/jquery/jquery.replacetext.js +80 -80
  198. data/templates/jquery/jquery.themeswitchertool.js +195 -195
  199. data/templates/jquery/jquery.tmpl.js +460 -460
  200. data/templates/jquery/jquery.tmplPlus.js +78 -78
  201. data/templates/jquery/jquery.tokeninput.js +480 -475
  202. data/templates/jquery/jquery/ui/_theme.scss +14 -14
  203. data/templates/jquery/jquery/ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
  204. data/templates/jquery/jquery/ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
  205. data/templates/jquery/jquery/ui/black-tie/ui-icons_ededed_256x240.png +0 -0
  206. data/templates/jquery/jquery/ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
  207. data/templates/jquery/jquery/ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  208. data/templates/jquery/jquery/ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
  209. data/templates/jquery/jquery/ui/vader/ui-icons_c98000_256x240.png +0 -0
  210. data/templates/jquery/jquery/ui/vader/ui-icons_f29a00_256x240.png +0 -0
  211. data/templates/jquery/json.js +66 -66
  212. data/templates/jquery/json2.js +177 -177
  213. data/templates/jquery/manifest.rb +4 -0
  214. data/templates/jstree/jquery.jstree.js +5918 -5918
  215. data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.blue.html.haml +9 -0
  216. data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.html.haml +9 -0
  217. data/templates/markitup/app/views/shared/_mark_it_up.preview.blue.html.haml +8 -0
  218. data/templates/markitup/app/views/shared/_mark_it_up.preview.html.haml +8 -0
  219. data/templates/markitup/config/initializers/mark_it_up.rb +40 -0
  220. data/templates/markitup/jquery.markitup.js +586 -0
  221. data/templates/markitup/jquery.markitup.min.js +1 -0
  222. data/templates/markitup/jquery/markitup/preview/body.blue.png +0 -0
  223. data/templates/markitup/jquery/markitup/preview/bullet.blue.png +0 -0
  224. data/templates/markitup/jquery/markitup/preview/preview.blue.scss +58 -0
  225. data/templates/markitup/jquery/markitup/preview/preview.scss +7 -0
  226. data/templates/markitup/jquery/markitup/sets/bbcode.scss +34 -0
  227. data/templates/markitup/jquery/markitup/sets/bbcode/bold.png +0 -0
  228. data/templates/markitup/jquery/markitup/sets/bbcode/clean.png +0 -0
  229. data/templates/markitup/jquery/markitup/sets/bbcode/code.png +0 -0
  230. data/templates/markitup/jquery/markitup/sets/bbcode/fonts.png +0 -0
  231. data/templates/markitup/jquery/markitup/sets/bbcode/italic.png +0 -0
  232. data/templates/markitup/jquery/markitup/sets/bbcode/link.png +0 -0
  233. data/templates/markitup/jquery/markitup/sets/bbcode/list-bullet.png +0 -0
  234. data/templates/markitup/jquery/markitup/sets/bbcode/list-item.png +0 -0
  235. data/templates/markitup/jquery/markitup/sets/bbcode/list-numeric.png +0 -0
  236. data/templates/markitup/jquery/markitup/sets/bbcode/picture.png +0 -0
  237. data/templates/markitup/jquery/markitup/sets/bbcode/preview.png +0 -0
  238. data/templates/markitup/jquery/markitup/sets/bbcode/quotes.png +0 -0
  239. data/templates/markitup/jquery/markitup/sets/bbcode/stroke.png +0 -0
  240. data/templates/markitup/jquery/markitup/sets/bbcode/underline.png +0 -0
  241. data/templates/markitup/jquery/markitup/sets/css.scss +54 -0
  242. data/templates/markitup/jquery/markitup/sets/css/bold.png +0 -0
  243. data/templates/markitup/jquery/markitup/sets/css/css.png +0 -0
  244. data/templates/markitup/jquery/markitup/sets/css/italic.png +0 -0
  245. data/templates/markitup/jquery/markitup/sets/css/picture.png +0 -0
  246. data/templates/markitup/jquery/markitup/sets/css/stroke.png +0 -0
  247. data/templates/markitup/jquery/markitup/sets/css/tag.png +0 -0
  248. data/templates/markitup/jquery/markitup/sets/css/text_align_center.png +0 -0
  249. data/templates/markitup/jquery/markitup/sets/css/text_align_justify.png +0 -0
  250. data/templates/markitup/jquery/markitup/sets/css/text_align_left.png +0 -0
  251. data/templates/markitup/jquery/markitup/sets/css/text_align_right.png +0 -0
  252. data/templates/markitup/jquery/markitup/sets/css/text_indent.png +0 -0
  253. data/templates/markitup/jquery/markitup/sets/css/text_letterspacing.png +0 -0
  254. data/templates/markitup/jquery/markitup/sets/css/text_linespacing.png +0 -0
  255. data/templates/markitup/jquery/markitup/sets/css/text_lowercase.png +0 -0
  256. data/templates/markitup/jquery/markitup/sets/css/text_padding_bottom.png +0 -0
  257. data/templates/markitup/jquery/markitup/sets/css/text_padding_left.png +0 -0
  258. data/templates/markitup/jquery/markitup/sets/css/text_padding_right.png +0 -0
  259. data/templates/markitup/jquery/markitup/sets/css/text_padding_top.png +0 -0
  260. data/templates/markitup/jquery/markitup/sets/css/text_uppercase.png +0 -0
  261. data/templates/markitup/jquery/markitup/sets/default.scss +22 -0
  262. data/templates/markitup/jquery/markitup/sets/default/bold.png +0 -0
  263. data/templates/markitup/jquery/markitup/sets/default/clean.png +0 -0
  264. data/templates/markitup/jquery/markitup/sets/default/image.png +0 -0
  265. data/templates/markitup/jquery/markitup/sets/default/italic.png +0 -0
  266. data/templates/markitup/jquery/markitup/sets/default/link.png +0 -0
  267. data/templates/markitup/jquery/markitup/sets/default/picture.png +0 -0
  268. data/templates/markitup/jquery/markitup/sets/default/preview.png +0 -0
  269. data/templates/markitup/jquery/markitup/sets/default/stroke.png +0 -0
  270. data/templates/markitup/jquery/markitup/sets/dotclear.scss +38 -0
  271. data/templates/markitup/jquery/markitup/sets/dotclear/bold.png +0 -0
  272. data/templates/markitup/jquery/markitup/sets/dotclear/code.png +0 -0
  273. data/templates/markitup/jquery/markitup/sets/dotclear/h1.png +0 -0
  274. data/templates/markitup/jquery/markitup/sets/dotclear/h2.png +0 -0
  275. data/templates/markitup/jquery/markitup/sets/dotclear/h3.png +0 -0
  276. data/templates/markitup/jquery/markitup/sets/dotclear/h4.png +0 -0
  277. data/templates/markitup/jquery/markitup/sets/dotclear/h5.png +0 -0
  278. data/templates/markitup/jquery/markitup/sets/dotclear/h6.png +0 -0
  279. data/templates/markitup/jquery/markitup/sets/dotclear/italic.png +0 -0
  280. data/templates/markitup/jquery/markitup/sets/dotclear/link.png +0 -0
  281. data/templates/markitup/jquery/markitup/sets/dotclear/list-bullet.png +0 -0
  282. data/templates/markitup/jquery/markitup/sets/dotclear/list-numeric.png +0 -0
  283. data/templates/markitup/jquery/markitup/sets/dotclear/picture.png +0 -0
  284. data/templates/markitup/jquery/markitup/sets/dotclear/preview.png +0 -0
  285. data/templates/markitup/jquery/markitup/sets/dotclear/quotes.png +0 -0
  286. data/templates/markitup/jquery/markitup/sets/dotclear/stroke.png +0 -0
  287. data/templates/markitup/jquery/markitup/sets/dotclear/url.png +0 -0
  288. data/templates/markitup/jquery/markitup/sets/html.scss +42 -0
  289. data/templates/markitup/jquery/markitup/sets/html/bold.png +0 -0
  290. data/templates/markitup/jquery/markitup/sets/html/clean.png +0 -0
  291. data/templates/markitup/jquery/markitup/sets/html/h1.png +0 -0
  292. data/templates/markitup/jquery/markitup/sets/html/h2.png +0 -0
  293. data/templates/markitup/jquery/markitup/sets/html/h3.png +0 -0
  294. data/templates/markitup/jquery/markitup/sets/html/h4.png +0 -0
  295. data/templates/markitup/jquery/markitup/sets/html/h5.png +0 -0
  296. data/templates/markitup/jquery/markitup/sets/html/h6.png +0 -0
  297. data/templates/markitup/jquery/markitup/sets/html/image.png +0 -0
  298. data/templates/markitup/jquery/markitup/sets/html/italic.png +0 -0
  299. data/templates/markitup/jquery/markitup/sets/html/link.png +0 -0
  300. data/templates/markitup/jquery/markitup/sets/html/list-bullet.png +0 -0
  301. data/templates/markitup/jquery/markitup/sets/html/list-item.png +0 -0
  302. data/templates/markitup/jquery/markitup/sets/html/list-numeric.png +0 -0
  303. data/templates/markitup/jquery/markitup/sets/html/paragraph.png +0 -0
  304. data/templates/markitup/jquery/markitup/sets/html/picture.png +0 -0
  305. data/templates/markitup/jquery/markitup/sets/html/preview.png +0 -0
  306. data/templates/markitup/jquery/markitup/sets/html/stroke.png +0 -0
  307. data/templates/markitup/jquery/markitup/sets/markdown.scss +38 -0
  308. data/templates/markitup/jquery/markitup/sets/markdown/bold.png +0 -0
  309. data/templates/markitup/jquery/markitup/sets/markdown/code.png +0 -0
  310. data/templates/markitup/jquery/markitup/sets/markdown/h1.png +0 -0
  311. data/templates/markitup/jquery/markitup/sets/markdown/h2.png +0 -0
  312. data/templates/markitup/jquery/markitup/sets/markdown/h3.png +0 -0
  313. data/templates/markitup/jquery/markitup/sets/markdown/h4.png +0 -0
  314. data/templates/markitup/jquery/markitup/sets/markdown/h5.png +0 -0
  315. data/templates/markitup/jquery/markitup/sets/markdown/h6.png +0 -0
  316. data/templates/markitup/jquery/markitup/sets/markdown/italic.png +0 -0
  317. data/templates/markitup/jquery/markitup/sets/markdown/link.png +0 -0
  318. data/templates/markitup/jquery/markitup/sets/markdown/list-bullet.png +0 -0
  319. data/templates/markitup/jquery/markitup/sets/markdown/list-numeric.png +0 -0
  320. data/templates/markitup/jquery/markitup/sets/markdown/picture.png +0 -0
  321. data/templates/markitup/jquery/markitup/sets/markdown/preview.png +0 -0
  322. data/templates/markitup/jquery/markitup/sets/markdown/quotes.png +0 -0
  323. data/templates/markitup/jquery/markitup/sets/markmin.scss +38 -0
  324. data/templates/markitup/jquery/markitup/sets/markmin/bold.png +0 -0
  325. data/templates/markitup/jquery/markitup/sets/markmin/code.png +0 -0
  326. data/templates/markitup/jquery/markitup/sets/markmin/h1.png +0 -0
  327. data/templates/markitup/jquery/markitup/sets/markmin/h2.png +0 -0
  328. data/templates/markitup/jquery/markitup/sets/markmin/h3.png +0 -0
  329. data/templates/markitup/jquery/markitup/sets/markmin/h4.png +0 -0
  330. data/templates/markitup/jquery/markitup/sets/markmin/h5.png +0 -0
  331. data/templates/markitup/jquery/markitup/sets/markmin/h6.png +0 -0
  332. data/templates/markitup/jquery/markitup/sets/markmin/italic.png +0 -0
  333. data/templates/markitup/jquery/markitup/sets/markmin/link.png +0 -0
  334. data/templates/markitup/jquery/markitup/sets/markmin/list-bullet.png +0 -0
  335. data/templates/markitup/jquery/markitup/sets/markmin/list-numeric.png +0 -0
  336. data/templates/markitup/jquery/markitup/sets/markmin/picture.png +0 -0
  337. data/templates/markitup/jquery/markitup/sets/markmin/preview.png +0 -0
  338. data/templates/markitup/jquery/markitup/sets/markmin/quotes.png +0 -0
  339. data/templates/markitup/jquery/markitup/sets/rest.scss +38 -0
  340. data/templates/markitup/jquery/markitup/sets/rest/bold.png +0 -0
  341. data/templates/markitup/jquery/markitup/sets/rest/code.png +0 -0
  342. data/templates/markitup/jquery/markitup/sets/rest/h1.png +0 -0
  343. data/templates/markitup/jquery/markitup/sets/rest/h2.png +0 -0
  344. data/templates/markitup/jquery/markitup/sets/rest/h3.png +0 -0
  345. data/templates/markitup/jquery/markitup/sets/rest/h4.png +0 -0
  346. data/templates/markitup/jquery/markitup/sets/rest/h5.png +0 -0
  347. data/templates/markitup/jquery/markitup/sets/rest/italic.png +0 -0
  348. data/templates/markitup/jquery/markitup/sets/rest/link.png +0 -0
  349. data/templates/markitup/jquery/markitup/sets/rest/list-bullet.png +0 -0
  350. data/templates/markitup/jquery/markitup/sets/rest/list-numeric.png +0 -0
  351. data/templates/markitup/jquery/markitup/sets/rest/picture.png +0 -0
  352. data/templates/markitup/jquery/markitup/sets/rest/preview.png +0 -0
  353. data/templates/markitup/jquery/markitup/sets/rest/quotes.png +0 -0
  354. data/templates/markitup/jquery/markitup/sets/textile.scss +44 -0
  355. data/templates/markitup/jquery/markitup/sets/textile/bold.png +0 -0
  356. data/templates/markitup/jquery/markitup/sets/textile/code.png +0 -0
  357. data/templates/markitup/jquery/markitup/sets/textile/h1.png +0 -0
  358. data/templates/markitup/jquery/markitup/sets/textile/h2.png +0 -0
  359. data/templates/markitup/jquery/markitup/sets/textile/h3.png +0 -0
  360. data/templates/markitup/jquery/markitup/sets/textile/h4.png +0 -0
  361. data/templates/markitup/jquery/markitup/sets/textile/h5.png +0 -0
  362. data/templates/markitup/jquery/markitup/sets/textile/h6.png +0 -0
  363. data/templates/markitup/jquery/markitup/sets/textile/italic.png +0 -0
  364. data/templates/markitup/jquery/markitup/sets/textile/link.png +0 -0
  365. data/templates/markitup/jquery/markitup/sets/textile/list-bullet.png +0 -0
  366. data/templates/markitup/jquery/markitup/sets/textile/list-numeric.png +0 -0
  367. data/templates/markitup/jquery/markitup/sets/textile/paragraph.png +0 -0
  368. data/templates/markitup/jquery/markitup/sets/textile/picture.png +0 -0
  369. data/templates/markitup/jquery/markitup/sets/textile/preview.png +0 -0
  370. data/templates/markitup/jquery/markitup/sets/textile/quotes.png +0 -0
  371. data/templates/markitup/jquery/markitup/sets/textile/stroke.png +0 -0
  372. data/templates/markitup/jquery/markitup/sets/textile/table.png +0 -0
  373. data/templates/markitup/jquery/markitup/sets/texy.scss +40 -0
  374. data/templates/markitup/jquery/markitup/sets/texy/bold.png +0 -0
  375. data/templates/markitup/jquery/markitup/sets/texy/code.png +0 -0
  376. data/templates/markitup/jquery/markitup/sets/texy/disconnect.png +0 -0
  377. data/templates/markitup/jquery/markitup/sets/texy/h1.png +0 -0
  378. data/templates/markitup/jquery/markitup/sets/texy/h2.png +0 -0
  379. data/templates/markitup/jquery/markitup/sets/texy/h3.png +0 -0
  380. data/templates/markitup/jquery/markitup/sets/texy/h4.png +0 -0
  381. data/templates/markitup/jquery/markitup/sets/texy/h5.png +0 -0
  382. data/templates/markitup/jquery/markitup/sets/texy/h6.png +0 -0
  383. data/templates/markitup/jquery/markitup/sets/texy/italic.png +0 -0
  384. data/templates/markitup/jquery/markitup/sets/texy/link.png +0 -0
  385. data/templates/markitup/jquery/markitup/sets/texy/list-bullet.png +0 -0
  386. data/templates/markitup/jquery/markitup/sets/texy/list-numeric.png +0 -0
  387. data/templates/markitup/jquery/markitup/sets/texy/page_white_code.png +0 -0
  388. data/templates/markitup/jquery/markitup/sets/texy/picture.png +0 -0
  389. data/templates/markitup/jquery/markitup/sets/texy/preview.png +0 -0
  390. data/templates/markitup/jquery/markitup/sets/texy/quotes.png +0 -0
  391. data/templates/markitup/jquery/markitup/sets/texy/stroke.png +0 -0
  392. data/templates/markitup/jquery/markitup/sets/txt2tags.scss +44 -0
  393. data/templates/markitup/jquery/markitup/sets/txt2tags/bold.png +0 -0
  394. data/templates/markitup/jquery/markitup/sets/txt2tags/code.png +0 -0
  395. data/templates/markitup/jquery/markitup/sets/txt2tags/disconnect.png +0 -0
  396. data/templates/markitup/jquery/markitup/sets/txt2tags/h1.png +0 -0
  397. data/templates/markitup/jquery/markitup/sets/txt2tags/h2.png +0 -0
  398. data/templates/markitup/jquery/markitup/sets/txt2tags/h3.png +0 -0
  399. data/templates/markitup/jquery/markitup/sets/txt2tags/h4.png +0 -0
  400. data/templates/markitup/jquery/markitup/sets/txt2tags/h5.png +0 -0
  401. data/templates/markitup/jquery/markitup/sets/txt2tags/italic.png +0 -0
  402. data/templates/markitup/jquery/markitup/sets/txt2tags/link.png +0 -0
  403. data/templates/markitup/jquery/markitup/sets/txt2tags/list-bullet.png +0 -0
  404. data/templates/markitup/jquery/markitup/sets/txt2tags/list-numeric.png +0 -0
  405. data/templates/markitup/jquery/markitup/sets/txt2tags/picture.png +0 -0
  406. data/templates/markitup/jquery/markitup/sets/txt2tags/preview.png +0 -0
  407. data/templates/markitup/jquery/markitup/sets/txt2tags/quotes.png +0 -0
  408. data/templates/markitup/jquery/markitup/sets/txt2tags/stroke.png +0 -0
  409. data/templates/markitup/jquery/markitup/sets/txt2tags/underline.png +0 -0
  410. data/templates/markitup/jquery/markitup/sets/wiki.scss +42 -0
  411. data/templates/markitup/jquery/markitup/sets/wiki/bold.png +0 -0
  412. data/templates/markitup/jquery/markitup/sets/wiki/code.png +0 -0
  413. data/templates/markitup/jquery/markitup/sets/wiki/h1.png +0 -0
  414. data/templates/markitup/jquery/markitup/sets/wiki/h2.png +0 -0
  415. data/templates/markitup/jquery/markitup/sets/wiki/h3.png +0 -0
  416. data/templates/markitup/jquery/markitup/sets/wiki/h4.png +0 -0
  417. data/templates/markitup/jquery/markitup/sets/wiki/h5.png +0 -0
  418. data/templates/markitup/jquery/markitup/sets/wiki/h6.png +0 -0
  419. data/templates/markitup/jquery/markitup/sets/wiki/italic.png +0 -0
  420. data/templates/markitup/jquery/markitup/sets/wiki/link.png +0 -0
  421. data/templates/markitup/jquery/markitup/sets/wiki/list-bullet.png +0 -0
  422. data/templates/markitup/jquery/markitup/sets/wiki/list-numeric.png +0 -0
  423. data/templates/markitup/jquery/markitup/sets/wiki/picture.png +0 -0
  424. data/templates/markitup/jquery/markitup/sets/wiki/preview.png +0 -0
  425. data/templates/markitup/jquery/markitup/sets/wiki/quotes.png +0 -0
  426. data/templates/markitup/jquery/markitup/sets/wiki/stroke.png +0 -0
  427. data/templates/markitup/jquery/markitup/sets/wiki/table.png +0 -0
  428. data/templates/markitup/jquery/markitup/sets/wiki/url.png +0 -0
  429. data/templates/markitup/jquery/markitup/sets/xbbcode.scss +42 -0
  430. data/templates/markitup/jquery/markitup/sets/xbbcode/bold.png +0 -0
  431. data/templates/markitup/jquery/markitup/sets/xbbcode/clean.png +0 -0
  432. data/templates/markitup/jquery/markitup/sets/xbbcode/h1.png +0 -0
  433. data/templates/markitup/jquery/markitup/sets/xbbcode/h2.png +0 -0
  434. data/templates/markitup/jquery/markitup/sets/xbbcode/h3.png +0 -0
  435. data/templates/markitup/jquery/markitup/sets/xbbcode/h4.png +0 -0
  436. data/templates/markitup/jquery/markitup/sets/xbbcode/h5.png +0 -0
  437. data/templates/markitup/jquery/markitup/sets/xbbcode/h6.png +0 -0
  438. data/templates/markitup/jquery/markitup/sets/xbbcode/image.png +0 -0
  439. data/templates/markitup/jquery/markitup/sets/xbbcode/italic.png +0 -0
  440. data/templates/markitup/jquery/markitup/sets/xbbcode/link.png +0 -0
  441. data/templates/markitup/jquery/markitup/sets/xbbcode/list-bullet.png +0 -0
  442. data/templates/markitup/jquery/markitup/sets/xbbcode/list-item.png +0 -0
  443. data/templates/markitup/jquery/markitup/sets/xbbcode/list-numeric.png +0 -0
  444. data/templates/markitup/jquery/markitup/sets/xbbcode/paragraph.png +0 -0
  445. data/templates/markitup/jquery/markitup/sets/xbbcode/picture.png +0 -0
  446. data/templates/markitup/jquery/markitup/sets/xbbcode/preview.png +0 -0
  447. data/templates/markitup/jquery/markitup/sets/xbbcode/stroke.png +0 -0
  448. data/templates/markitup/jquery/markitup/skins/aqua.scss +136 -0
  449. data/templates/markitup/jquery/markitup/skins/aqua/bg-container-white.png +0 -0
  450. data/templates/markitup/jquery/markitup/skins/aqua/bg-container.png +0 -0
  451. data/templates/markitup/jquery/markitup/skins/aqua/bg-footer-white.png +0 -0
  452. data/templates/markitup/jquery/markitup/skins/aqua/bg-footer.png +0 -0
  453. data/templates/markitup/jquery/markitup/skins/aqua/bg-header-white.png +0 -0
  454. data/templates/markitup/jquery/markitup/skins/aqua/bg-header.png +0 -0
  455. data/templates/markitup/jquery/markitup/skins/aqua/handle.png +0 -0
  456. data/templates/markitup/jquery/markitup/skins/aqua/menu.png +0 -0
  457. data/templates/markitup/jquery/markitup/skins/aqua/spacer.gif +0 -0
  458. data/templates/markitup/jquery/markitup/skins/aqua/submenu.png +0 -0
  459. data/templates/markitup/jquery/markitup/skins/jtageditor.scss +141 -0
  460. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-container.png +0 -0
  461. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-bbcode.png +0 -0
  462. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-dotclear.png +0 -0
  463. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-html.png +0 -0
  464. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-markdown.png +0 -0
  465. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-textile.png +0 -0
  466. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-wiki.png +0 -0
  467. data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor.png +0 -0
  468. data/templates/markitup/jquery/markitup/skins/jtageditor/handle.png +0 -0
  469. data/templates/markitup/jquery/markitup/skins/jtageditor/menu.png +0 -0
  470. data/templates/markitup/jquery/markitup/skins/jtageditor/submenu.png +0 -0
  471. data/templates/markitup/jquery/markitup/skins/live.scss +135 -0
  472. data/templates/markitup/jquery/markitup/skins/live/bg-container.png +0 -0
  473. data/templates/markitup/jquery/markitup/skins/live/bg-footer.png +0 -0
  474. data/templates/markitup/jquery/markitup/skins/live/bg-header.png +0 -0
  475. data/templates/markitup/jquery/markitup/skins/live/editor.png +0 -0
  476. data/templates/markitup/jquery/markitup/skins/live/handle.png +0 -0
  477. data/templates/markitup/jquery/markitup/skins/live/menu.png +0 -0
  478. data/templates/markitup/jquery/markitup/skins/live/submenu.png +0 -0
  479. data/templates/markitup/jquery/markitup/skins/markitup.scss +150 -0
  480. data/templates/markitup/jquery/markitup/skins/markitup/bg-container.png +0 -0
  481. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
  482. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
  483. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-html.png +0 -0
  484. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-json.png +0 -0
  485. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-markdown.png +0 -0
  486. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-textile.png +0 -0
  487. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-wiki.png +0 -0
  488. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-xml.png +0 -0
  489. data/templates/markitup/jquery/markitup/skins/markitup/bg-editor.png +0 -0
  490. data/templates/markitup/jquery/markitup/skins/markitup/handle.png +0 -0
  491. data/templates/markitup/jquery/markitup/skins/markitup/menu.png +0 -0
  492. data/templates/markitup/jquery/markitup/skins/markitup/submenu.png +0 -0
  493. data/templates/markitup/jquery/markitup/skins/simple.scss +117 -0
  494. data/templates/markitup/jquery/markitup/skins/simple/handle.png +0 -0
  495. data/templates/markitup/jquery/markitup/skins/simple/menu.png +0 -0
  496. data/templates/markitup/jquery/markitup/skins/simple/submenu.png +0 -0
  497. data/templates/markitup/manifest.rb +311 -0
  498. data/templates/markitup/markitup/jquery.markitup.set.bbcode.js +40 -0
  499. data/templates/markitup/markitup/jquery.markitup.set.bbcode.min.js +3 -0
  500. data/templates/markitup/markitup/jquery.markitup.set.css.js +53 -0
  501. data/templates/markitup/markitup/jquery.markitup.set.css.min.js +5 -0
  502. data/templates/markitup/markitup/jquery.markitup.set.default.js +30 -0
  503. data/templates/markitup/markitup/jquery.markitup.set.default.min.js +2 -0
  504. data/templates/markitup/markitup/jquery.markitup.set.dotclear.js +38 -0
  505. data/templates/markitup/markitup/jquery.markitup.set.dotclear.min.js +3 -0
  506. data/templates/markitup/markitup/jquery.markitup.set.html.js +40 -0
  507. data/templates/markitup/markitup/jquery.markitup.set.html.min.js +4 -0
  508. data/templates/markitup/markitup/jquery.markitup.set.markdown.js +53 -0
  509. data/templates/markitup/markitup/jquery.markitup.set.markdown.min.js +3 -0
  510. data/templates/markitup/markitup/jquery.markitup.set.markmin.js +50 -0
  511. data/templates/markitup/markitup/jquery.markitup.set.markmin.min.js +3 -0
  512. data/templates/markitup/markitup/jquery.markitup.set.rest.js +52 -0
  513. data/templates/markitup/markitup/jquery.markitup.set.rest.min.js +3 -0
  514. data/templates/markitup/markitup/jquery.markitup.set.textile.js +58 -0
  515. data/templates/markitup/markitup/jquery.markitup.set.textile.min.js +4 -0
  516. data/templates/markitup/markitup/jquery.markitup.set.texy.js +52 -0
  517. data/templates/markitup/markitup/jquery.markitup.set.texy.min.js +4 -0
  518. data/templates/markitup/markitup/jquery.markitup.set.txt2tags.js +42 -0
  519. data/templates/markitup/markitup/jquery.markitup.set.txt2tags.min.js +3 -0
  520. data/templates/markitup/markitup/jquery.markitup.set.wiki.js +61 -0
  521. data/templates/markitup/markitup/jquery.markitup.set.wiki.min.js +4 -0
  522. data/templates/markitup/markitup/jquery.markitup.set.xbbcode.js +36 -0
  523. data/templates/markitup/markitup/jquery.markitup.set.xbbcode.min.js +4 -0
  524. data/templates/mobile/config/initializers/mobile.rb +2 -0
  525. data/templates/mobile/jquery.mobile.js +4545 -4454
  526. data/templates/mobile/jquery.mobile.min.js +16 -7
  527. data/templates/mobile/jquery/mobile/960.fluid.scss +191 -0
  528. data/templates/mobile/jquery/mobile/960.scss +213 -0
  529. data/templates/mobile/jquery/mobile/_base.scss +37 -20
  530. data/templates/mobile/jquery/mobile/default.scss +48 -56
  531. data/templates/mobile/jquery/mobile/valencia.scss +43 -44
  532. data/templates/mobile/manifest.rb +2 -0
  533. data/templates/ribbon/jquery.ribbon.js +195 -195
  534. data/templates/ribbon/jquery.ribbon.min.js +1 -1
  535. data/templates/ribbon/jquery/ribbon/office.scss +12 -12
  536. data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
  537. data/templates/secret_sauce/secret_sauce.js +8 -8
  538. data/templates/tools/flowplayer.js +897 -897
  539. data/templates/tools/jquery.tools.js +3647 -3647
  540. data/templates/tools/jquery.tools.min.js +47 -47
  541. data/templates/tools/swfobject.js +760 -760
  542. metadata +350 -22
@@ -2,48 +2,48 @@ var _canLog=!0;function _log(f){if(_canLog){var k=Array.prototype.slice.apply(ar
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
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
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=[];
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 d=0,e=this.childList.length;d<e;d++)c.children.push(this.childList[d].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,d=this.getLevel(),e=this.data,g="";d<b.minExpandLevel?d>1&&(g+=c.tagConnector):g+=this.hasChildren()!==!1?c.tagExpander:c.tagConnector;b.checkbox&&e.hideCheckbox!==!0&&!e.isStatusNode&&(g+=c.tagCheckbox);e.icon?g+="<img src='"+b.imagePath+e.icon+"' alt='' />":e.icon===!1||(g+=c.tagNodeIcon);c="";b.onCustomRender&&(c=b.onCustomRender.call(a,this)||"");c||(a=e.tooltip?" title='"+e.tooltip+"'":"",c=b.noLink||e.noLink?"<span style='display: inline-block;' class='"+
7
+ b.classNames.title+"'"+a+">"+e.title+"</span>":"<a href='#' class='"+b.classNames.title+"'"+a+">"+e.title+"</a>");g+=c;return g},_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],g=b.dtnode;e!==g?(this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+e+" != "+g),this.ul.insertBefore(e.li,g.li)):b=b.nextSibling}},render:function(a,b){var c=this.tree,d=this.parent,e=this.data,g=c.options,h=g.classNames,i=this.isLastSibling();
8
+ if(!d&&!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(d){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(e.key&&g.generateIds)this.li.id=g.idPrefix+e.key;this.span=document.createElement("span");this.span.className=h.title;this.li.appendChild(this.span);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=
9
+ this._getInnerHtml();var j=[];j.push(h.node);e.isFolder&&j.push(h.folder);this.bExpanded&&j.push(h.expanded);this.hasChildren()!==!1&&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);j.push(h.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(e.isLazy&&this.childList===null?"d":"")+(i?"l":""));j.push(h.combinedIconPrefix+
10
+ (this.bExpanded?"e":"c")+(e.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(e=this.childList.length;c<e;c++)this.childList[c].render(!1,b);this._fixOrder()}if(this.ul)c=this.ul.style.display==="none",e=!!this.bExpanded,a&&g.fx&&c===e?(d=g.fx.duration||200,f(this.ul).animate(g.fx,d)):this.ul.style.display=this.bExpanded||!d?"":"none"},getKeyPath:function(a){var b=[];
11
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
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;
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,d=b;c<d;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 d=0,e=c.length;d<e;d++)c[d].childList&&c[d].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,d=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+d,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=
16
+ !1;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;)(a||d.parent)&&c.unshift(d),d=d.parent;return c},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},_getTypeForOuterNodeEvent:function(a){var b=this.tree.options.classNames,c=a.target;if(c.className.indexOf(b.node)<0)return null;for(var d=
17
+ a.pageX-c.offsetLeft,a=a.pageY-c.offsetTop,e=0,g=c.childNodes.length;e<g;e++){var f=c.childNodes[e],i=f.offsetLeft-c.offsetLeft,j=f.offsetTop-c.offsetTop,s=f.clientWidth,k=f.clientHeight;if(d>=i&&d<=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
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
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
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
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)},
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 d=!0;b=0;for(c=a.childList.length;b<c;b++){var e=a.childList[b];if(!e.bSelected&&!e.data.isStatusNode){d=!1;break}}d&&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);d=!1;b=0;for(c=a.childList.length;b<c;b++)if(a.childList[b].bSelected||a.childList[b].hasSubSel){d=!0;break}a._setSubSel(d);a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;if(!this.data.isStatusNode&&this.bSelected!==a&&(!b||!(d.onQuerySelect&&d.onQuerySelect.call(this.tree,a,this)===!1)))d.selectMode==1&&a&&this.tree.visit(function(a){if(a.bSelected)return a._select(!1,!1,!1),!1}),(this.bSelected=a)?(d.persist&&this.tree.persistence.addSelect(this.data.key),
24
+ f(this.span).addClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.onSelect.call(this.tree,!0,this)):(d.persist&&this.tree.persistence.clearSelect(this.data.key),f(this.span).removeClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.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
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
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),
27
+ c.autoCollapse)for(var d=this._parentList(!1,!0),e=0,f=d.length;e<f;e++)d[e].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
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
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
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),
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 d=this._parentList(!1,!0),e=d.length-1;e>=0;e--)if(c=d[e].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
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,
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 d=0,e=this.childList.length;d<e;d++)if(c=this.childList[d].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,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=
35
+ 0,f=d.length;e<f;e++){var h=d[e];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(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=
37
+ a.split(c.options.keyPathSeparator);if(d[0]==="")throw"Key path must be relative (don't start with '/')";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===void 0)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,i);var j=this;i.reloadChildren(function(e,f){f?(c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",e,a,e),b.call(c,i,"loaded"),e._loadKeyPath(d.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(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(!1);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=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(d.classNames.lastsib);if(b){var g=f.inArray(b,this.childList);if(g<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(g,0,a)}else this.childList.push(a);g=c.isInitializing();if(d.persist&&e.cookiesFound&&g){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=f.inArray(a.data.key,e.expandedKeyList)>=0;a.bSelected=f.inArray(a.data.key,
40
+ e.selectedKeyList)>=0}else{if(a.data.activate&&(c.activeNode=a,d.persist))e.activeKey=a.data.key;if(a.data.focus&&(c.focusNode=a,d.persist))e.focusedKey=a.data.key;a.bExpanded=a.data.expand===!0;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===!0;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=!0;if(a.bSelected&&d.selectMode==3)for(d=this;d;)d.hasSubSel||d._setSubSel(!0),d=d.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),d=null,e=0,f=a.length;e<f;e++){var h=a[e],i=this._addChildNode(new o(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,
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 d=a.success,e=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=f.extend({},this.tree.options.ajaxDefaults,a,{success:function(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";d&&d.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,d){b.tree.logWarning("appendAjax failed:",c,":\n",a,"\n",d);e&&e.call(h,b,a,c,d);b.tree.$tree.trigger(g,[b,!1]);b.setLazyNodeStatus(DTNodeStatus_Error,{info:c,tooltip:""+d})}});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 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=!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=e;if(e.hasChildren())switch(b){case "child":e.childList.push(this);
45
+ break;case "before":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c,0,this);break;case "after":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c+1,0,this);break;default:throw"Invalid mode "+b;}else if(e.childList=[this],!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)throw this.visit(function(b){b.tree=a.tree},null,!0),"Not yet implemented.";d.isDescendantOf(e)||
46
+ d.render();e.isDescendantOf(d)||e.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
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
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
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>=
@@ -51,30 +51,31 @@ f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)
51
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
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
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,
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 d=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 e=this.tnRoot,g=b.persist&&this.persistence.isReloading(),h=!1,i=this.enableUpdate(!1);this.logDebug("Dynatree._load(): read tree structure...");
55
+ b.children?e.addChild(b.children):b.initAjax&&b.initAjax.url?(h=!0,e.data.isLazy=!0,this._reloadAjax(a)):b.initId?this._createFromTag(e,f("#"+b.initId)):(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();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,d=f.extend({},b.initAjax);if(d.addActiveKey)d.data.activeKey=c.activeKey;if(d.addFocusedKey)d.data.focusedKey=c.focusedKey;if(d.addExpandedKeyList)d.data.expandedKeyList=c.expandedKeyList.join(",");if(d.addSelectedKeyList)d.data.selectedKeyList=
57
+ 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(c){b.onPostInit.call(c.tree,e,!1);a&&a.call(c.tree,"ok")};d.error=function(c){b.onPostInit.call(c.tree,e,!0);a&&a.call(c.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(d)},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=[],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(){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
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
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
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);
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),e=b.find(">span:first"),g=b.find(">a:first"),h=null,i=null;e.length?e=e.html():g.length?(e=g.html(),h=g.attr("href"),
63
+ i=g.attr("target")):(e=b.html(),g=e.search(/<ul/i),e=g>=0?f.trim(e.substring(0,g)):f.trim(e));g={title:e,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(h)g.href=h,g.target=i;if(b.attr("title"))g.tooltip=b.attr("title");if(b.attr("id"))g.key=b.attr("id");if(b.attr("data")&&(h=f.trim(b.attr("data")))){h.charAt(0)!="{"&&(h="{"+h+"}");try{f.extend(g,
64
+ eval("("+h+")"))}catch(j){throw"Error parsing node data: "+j+"\ndata:\n'"+h+"'";}}h=a.addChild(g);b=b.find(">ul:first");b.length&&c._createFromTag(h,b)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,d,e){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(d==="after"||d==="before"||d==="over"){var g=b.position();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");
65
+ this.$dndMarker.addClass("dynatree-drop-before");g.top-=8;break;case "after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-after");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();
66
+ d==="after"?b.addClass("dynatree-drop-after"):b.removeClass("dynatree-drop-after");d==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");e===!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"));e===!1?(a&&a.addClass("dynatree-drop-reject"),b.addClass("dynatree-drop-reject"),c.addClass("dynatree-drop-reject")):
67
+ (a&&a.removeClass("dynatree-drop-reject"),b.removeClass("dynatree-drop-reject"),c.removeClass("dynatree-drop-reject"))},_onDragEvent:function(a,b,c,d,e,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(d.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"),
68
+ e.helper.trigger("mouseup"),e.helper.hide()):j.addClass("dynatree-drag-source");break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;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)};e.helper.data("enterResponse",i);break;case "over":g=e.helper.data("enterResponse");a=null;if(g===!1)break;else if(typeof g==="string")a=g;else{var k=j.offset(),d={x:d.pageX-k.left,
69
+ y:d.pageY-k.top},j={x:d.x/j.width(),y:d.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<=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));e.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==!1&&!b.bExpanded&&b.scheduleAction("expand",
70
+ h.autoExpandMS);a&&h.onDragOver&&(i=h.onDragOver(b,c,a));this._setDndStatus(c,b,e.helper,a,i!==!1);break;case "drop":if((a=e.helper.data("hitMode"))&&h.onDrop)h.onDrop(b,c,a,e,g);break;case "leave":b.scheduleAction("cancel");e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.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: "+
71
+ 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)<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.",
72
+ 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.")},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 e=b.tree,f=e.options;e.logDebug("event(%s): dtnode: %s",
73
+ a.type,b);var h=e.phase;e.phase="userEvent";try{switch(a.type){case "click":return f.onClick&&f.onClick.call(e,b,a)===!1?!1:b._onClick(a);case "dblclick":return f.onDblClick&&f.onDblClick.call(e,b,a)===!1?!1:b._onDblClick(a);case "keydown":return f.onKeydown&&f.onKeydown.call(e,b,a)===!1?!1:b._onKeydown(a);case "keypress":return f.onKeypress&&f.onKeypress.call(e,b,a)===!1?!1:b._onKeypress(a)}}catch(i){e.logWarning("bind(%o): dtnode: %o, error: %o",a,b,i)}finally{e.phase=h}});b=this.tree.divTree;b.addEventListener?
74
+ (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();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()},
75
+ 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",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,
76
+ onPostInit:null,onActivate:null,onDeactivate:null,onSelect:null,onExpand:null,onLazyRead:null,onCustomRender:null,onRender:null,dnd:{onDragStart:null,onDragStop:null,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",
77
+ node:"dynatree-node",folder:"dynatree-folder",empty:"dynatree-empty",vline:"dynatree-vline",expander:"dynatree-expander",connector:"dynatree-connector",checkbox:"dynatree-checkbox",nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",nodeWait:"dynatree-statusnode-wait",hidden:"dynatree-hidden",combinedExpanderPrefix:"dynatree-exp-",combinedIconPrefix:"dynatree-ico-",nodeLoading:"dynatree-loading",hasChildren:"dynatree-has-children",
78
+ active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},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,
79
+ 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"),d=b.helper.data("dtSourceNode")||null;if(d)return c.offset.click.top=-2,c.offset.click.left=16,d.tree._onDragEvent("start",d,null,a,b,c)},drag:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,g=k(a.target);a.target&&!g&&f(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>
80
+ 0||(b.helper.data("dtTargetNode",g),e&&e!==g&&e.tree._onDragEvent("leave",e,d,a,b,c),g&&g.tree.options.dnd.onDrop&&(g===e?g.tree._onDragEvent("over",g,d,a,b,c):g.tree._onDragEvent("enter",g,d,a,b,c)))},stop:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,g=a.type=="mouseup"&&a.which==1;g||logMsg("Drag was cancelled");e&&(g&&e.tree._onDragEvent("drop",e,d,a,b,c),e.tree._onDragEvent("leave",e,d,a,b,c));d&&d.tree._onDragEvent("stop",
81
+ d,null,a,b,c)}}),q=!0)}})(jQuery);
@@ -315,7 +315,9 @@ div {
315
315
  &.dynatree-drop-after, &.dynatree-drop-before {
316
316
  width: 64px;
317
317
  background-position: 0 -144px; }
318
- &.dynatree-drop-copy, &.dynatree-drop-move {
318
+ &.dynatree-drop-copy {
319
+ background-position: -64px -128px; }
320
+ &.dynatree-drop-move {
319
321
  background-position: -64px -128px; } }
320
322
 
321
323
  /*** Source node while dragging ***********************************************/
@@ -334,7 +336,7 @@ span {
334
336
  background-image: url("drop_child.gif");*/ }
335
337
  &.dynatree-drop-accept a {
336
338
  /*border: 1px solid green;*/
337
- background-color: #3169c6 !important;
339
+ background-color: #3169C6 !important;
338
340
  color: white !important;
339
341
  /* @ IE6 */
340
342
  text-decoration: none; }
@@ -315,7 +315,9 @@ div {
315
315
  &.dynatree-drop-after, &.dynatree-drop-before {
316
316
  width: 64px;
317
317
  background-position: 0 -144px; }
318
- &.dynatree-drop-copy, &.dynatree-drop-move {
318
+ &.dynatree-drop-copy {
319
+ background-position: -64px -128px; }
320
+ &.dynatree-drop-move {
319
321
  background-position: -64px -128px; } }
320
322
 
321
323
  /*** Source node while dragging ***********************************************/
@@ -334,7 +336,7 @@ span {
334
336
  background-image: url("drop_child.gif");*/ }
335
337
  &.dynatree-drop-accept a {
336
338
  /*border: 1px solid green;*/
337
- background-color: #3169c6 !important;
339
+ background-color: #3169C6 !important;
338
340
  color: white !important;
339
341
  /* @ IE6 */
340
342
  text-decoration: none; }
@@ -315,7 +315,9 @@ div {
315
315
  &.dynatree-drop-after, &.dynatree-drop-before {
316
316
  width: 64px;
317
317
  background-position: 0 -144px; }
318
- &.dynatree-drop-copy, &.dynatree-drop-move {
318
+ &.dynatree-drop-copy {
319
+ background-position: -64px -128px; }
320
+ &.dynatree-drop-move {
319
321
  background-position: -64px -128px; } }
320
322
 
321
323
  /*** Source node while dragging ***********************************************/
@@ -334,7 +336,7 @@ span {
334
336
  background-image: url("drop_child.gif");*/ }
335
337
  &.dynatree-drop-accept a {
336
338
  /*border: 1px solid green;*/
337
- background-color: #3169c6 !important;
339
+ background-color: #3169C6 !important;
338
340
  color: white !important;
339
341
  /* @ IE6 */
340
342
  text-decoration: none; }
@@ -256,7 +256,7 @@ span {
256
256
  color: green;
257
257
  font-style: italic; }
258
258
  &.dynatree-active a {
259
- background-color: #3169c6 !important;
259
+ background-color: #3169C6 !important;
260
260
  color: white !important;
261
261
  /* @ IE6 */ } }
262
262
 
@@ -299,7 +299,9 @@ div {
299
299
  &.dynatree-drop-after, &.dynatree-drop-before {
300
300
  width: 64px;
301
301
  background-position: 0 -144px; }
302
- &.dynatree-drop-copy, &.dynatree-drop-move {
302
+ &.dynatree-drop-copy {
303
+ background-position: -64px -128px; }
304
+ &.dynatree-drop-move {
303
305
  background-position: -64px -128px; } }
304
306
 
305
307
  /*** Source node while dragging ***********************************************/
@@ -318,7 +320,7 @@ span {
318
320
  background-image: url("drop_child.gif");*/ }
319
321
  &.dynatree-drop-accept a {
320
322
  /*border: 1px solid green;*/
321
- background-color: #3169c6 !important;
323
+ background-color: #3169C6 !important;
322
324
  color: white !important;
323
325
  /* @ IE6 */
324
326
  text-decoration: none; }
@@ -0,0 +1,18 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/bb.playbook.landscape.png") no-repeat;
5
+ width: 1300px;
6
+ height: 872px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .display-area {
11
+ position: relative;
12
+ top: 135px;
13
+ width: 1024px;
14
+ height: 600px;
15
+ max-height: 600px;
16
+ color: #ffffff;
17
+ a {
18
+ color: #ff5500; } } }
@@ -0,0 +1,18 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/bb.playbook.portrait.png") no-repeat;
5
+ width: 872px;
6
+ height: 1300px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .display-area {
11
+ position: relative;
12
+ top: 135px;
13
+ width: 600px;
14
+ height: 1024px;
15
+ max-height: 1024px;
16
+ color: #ffffff;
17
+ a {
18
+ color: #ff5500; } } }
@@ -1,14 +1,12 @@
1
1
  // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
2
 
3
3
  .emulator {
4
- background: image_url("emulators/blackberry.torch.landscape.png") no-repeat;
4
+ background: image_url("emulators/bb.torch.landscape.png") no-repeat;
5
5
  width: 840px;
6
6
  height: 460px;
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 52px;
@@ -1,14 +1,12 @@
1
1
  // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
2
 
3
3
  .emulator {
4
- background: image_url("emulators/blackberry.torch.portrait.png") no-repeat;
4
+ background: image_url("emulators/bb.torch.portrait.png") no-repeat;
5
5
  width: 534px;
6
6
  height: 852px;
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 157px;
@@ -0,0 +1,18 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.ace.landscape.png") no-repeat;
5
+ width: 725px;
6
+ height: 386px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .display-area {
11
+ position: relative;
12
+ top: 55px;
13
+ width: 480px;
14
+ height: 296px;
15
+ max-height: 296px;
16
+ color: #ffffff;
17
+ a {
18
+ color: #ff5500; } } }
@@ -0,0 +1,18 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .emulator {
4
+ background: image_url("emulators/galaxy.ace.portrait.png") no-repeat;
5
+ width: 386px;
6
+ height: 725px;
7
+ -moz-transform-origin: 0 0;
8
+ -o-transform-origin: 0 0;
9
+ -webkit-transform-origin: 0 0;
10
+ .display-area {
11
+ position: relative;
12
+ top: 147px;
13
+ width: 320px;
14
+ height: 456px;
15
+ max-height: 456px;
16
+ color: #ffffff;
17
+ a {
18
+ color: #ff5500; } } }
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 98px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 198px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 79px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 169px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 151px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 128px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 126px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 120px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 182px;
@@ -7,8 +7,6 @@
7
7
  -moz-transform-origin: 0 0;
8
8
  -o-transform-origin: 0 0;
9
9
  -webkit-transform-origin: 0 0;
10
- .actions {
11
- position: absolute; }
12
10
  .display-area {
13
11
  position: relative;
14
12
  top: 190px;