rwiki 0.2.4 → 0.2.5

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 (1121) hide show
  1. data/.rspec +2 -0
  2. data/CHANGELOG.textile +21 -0
  3. data/Gemfile +40 -23
  4. data/Gemfile.lock +181 -0
  5. data/README.textile +0 -1
  6. data/Rakefile +28 -23
  7. data/bin/rwiki +15 -5
  8. data/bin/rwiki-migrate +11 -0
  9. data/config.ru +4 -3
  10. data/config/assets.yml +52 -0
  11. data/config/config.yml.example +1 -1
  12. data/config/deploy.rb +5 -8
  13. data/features/create_page.feature +46 -43
  14. data/features/delete_page.feature +17 -19
  15. data/features/display_page.feature +19 -21
  16. data/features/edit_page.feature +76 -0
  17. data/features/fuzzy_finder.feature +2 -3
  18. data/features/history.feature +27 -48
  19. data/features/internal_links.feature +10 -0
  20. data/features/loading_mask.feature +18 -0
  21. data/features/move_page.feature +36 -0
  22. data/features/rename_node.feature +78 -0
  23. data/features/step_definitions/common_steps.rb +69 -13
  24. data/features/step_definitions/dialog_box_steps.rb +1 -1
  25. data/features/step_definitions/history_steps.rb +4 -0
  26. data/features/step_definitions/tab_panel_steps.rb +12 -2
  27. data/features/step_definitions/toolbar_steps.rb +7 -0
  28. data/features/step_definitions/tree_panel_steps.rb +69 -37
  29. data/features/support/env.rb +22 -12
  30. data/features/support/paths.rb +1 -1
  31. data/features/tab_contextmenu.feature +44 -0
  32. data/features/tab_panel.feature +17 -31
  33. data/features/tree_panel.feature +20 -17
  34. data/lib/rwiki.rb +15 -7
  35. data/lib/rwiki/app.rb +68 -44
  36. data/lib/rwiki/configuration.rb +24 -12
  37. data/lib/rwiki/page.rb +190 -0
  38. data/lib/rwiki/rake.rb +5 -0
  39. data/lib/rwiki/rake/migrate.rb +73 -0
  40. data/lib/rwiki/utils.rb +6 -0
  41. data/lib/rwiki/utils/file_helper.rb +117 -0
  42. data/lib/rwiki/utils/textile_helper.rb +69 -0
  43. data/lib/rwiki/version.rb +10 -0
  44. data/{test/fixtures/pages/Info/dummy → log/.gitkeep} +0 -0
  45. data/public/{resources/ext/images → images/vendor/ext}/access/box/corners-blue.gif +0 -0
  46. data/public/{resources/ext/images → images/vendor/ext}/access/box/corners.gif +0 -0
  47. data/public/{resources/ext/images → images/vendor/ext}/access/box/l-blue.gif +0 -0
  48. data/public/{resources/ext/images → images/vendor/ext}/access/box/l.gif +0 -0
  49. data/public/{resources/ext/images → images/vendor/ext}/access/box/r-blue.gif +0 -0
  50. data/public/{resources/ext/images → images/vendor/ext}/access/box/r.gif +0 -0
  51. data/public/{resources/ext/images → images/vendor/ext}/access/box/tb-blue.gif +0 -0
  52. data/public/{resources/ext/images → images/vendor/ext}/access/box/tb.gif +0 -0
  53. data/public/{resources/ext/images → images/vendor/ext}/access/button/arrow.gif +0 -0
  54. data/public/{resources/ext/images → images/vendor/ext}/access/button/btn.gif +0 -0
  55. data/public/{resources/ext/images → images/vendor/ext}/access/button/group-cs.gif +0 -0
  56. data/public/{resources/ext/images → images/vendor/ext}/access/button/group-lr.gif +0 -0
  57. data/public/{resources/ext/images → images/vendor/ext}/access/button/group-tb.gif +0 -0
  58. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-b-noline.gif +0 -0
  59. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-b.gif +0 -0
  60. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-bo.gif +0 -0
  61. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-noline.gif +0 -0
  62. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-o.gif +0 -0
  63. data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow.gif +0 -0
  64. data/public/{resources/ext/images → images/vendor/ext}/access/editor/tb-sprite.gif +0 -0
  65. data/public/{resources/ext/images → images/vendor/ext}/access/form/checkbox.gif +0 -0
  66. data/public/{resources/ext/images → images/vendor/ext}/access/form/clear-trigger.gif +0 -0
  67. data/public/{resources/ext/images → images/vendor/ext}/access/form/clear-trigger.psd +0 -0
  68. data/public/{resources/ext/images → images/vendor/ext}/access/form/date-trigger.gif +0 -0
  69. data/public/{resources/ext/images → images/vendor/ext}/access/form/date-trigger.psd +0 -0
  70. data/public/{resources/ext/images → images/vendor/ext}/access/form/error-tip-corners.gif +0 -0
  71. data/public/{resources/ext/images → images/vendor/ext}/access/form/exclamation.gif +0 -0
  72. data/public/{resources/ext/images → images/vendor/ext}/access/form/radio.gif +0 -0
  73. data/public/{resources/ext/images → images/vendor/ext}/access/form/search-trigger.gif +0 -0
  74. data/public/{resources/ext/images → images/vendor/ext}/access/form/search-trigger.psd +0 -0
  75. data/public/{resources/ext/images → images/vendor/ext}/access/form/text-bg.gif +0 -0
  76. data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger-tpl.gif +0 -0
  77. data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger.gif +0 -0
  78. data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger.psd +0 -0
  79. data/public/{resources/ext/images → images/vendor/ext}/access/grid/arrow-left-white.gif +0 -0
  80. data/public/{resources/ext/images → images/vendor/ext}/access/grid/arrow-right-white.gif +0 -0
  81. data/public/{resources/ext/images → images/vendor/ext}/access/grid/col-move-bottom.gif +0 -0
  82. data/public/{resources/ext/images → images/vendor/ext}/access/grid/col-move-top.gif +0 -0
  83. data/public/{resources/ext/images → images/vendor/ext}/access/grid/columns.gif +0 -0
  84. data/public/{resources/ext/images → images/vendor/ext}/access/grid/dirty.gif +0 -0
  85. data/public/{resources/ext/images → images/vendor/ext}/access/grid/done.gif +0 -0
  86. data/public/{resources/ext/images → images/vendor/ext}/access/grid/drop-no.gif +0 -0
  87. data/public/{resources/ext/images → images/vendor/ext}/access/grid/drop-yes.gif +0 -0
  88. data/public/{resources/ext/images → images/vendor/ext}/access/grid/footer-bg.gif +0 -0
  89. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-blue-hd.gif +0 -0
  90. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-blue-split.gif +0 -0
  91. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-hrow.gif +0 -0
  92. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-loading.gif +0 -0
  93. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-split.gif +0 -0
  94. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-vista-hd.gif +0 -0
  95. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hd-btn.gif +0 -0
  96. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hrow-over.gif +0 -0
  97. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hrow.gif +0 -0
  98. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-special-col-bg.gif +0 -0
  99. data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-special-col-sel-bg.gif +0 -0
  100. data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-by.gif +0 -0
  101. data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-collapse.gif +0 -0
  102. data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-expand-sprite.gif +0 -0
  103. data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-expand.gif +0 -0
  104. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hd-pop.gif +0 -0
  105. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-asc.gif +0 -0
  106. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-desc.gif +0 -0
  107. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-lock.gif +0 -0
  108. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-lock.png +0 -0
  109. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-unlock.gif +0 -0
  110. data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-unlock.png +0 -0
  111. data/public/{resources/ext/images → images/vendor/ext}/access/grid/invalid_line.gif +0 -0
  112. data/public/{resources/ext/images → images/vendor/ext}/access/grid/loading.gif +0 -0
  113. data/public/{resources/ext/images → images/vendor/ext}/access/grid/mso-hd.gif +0 -0
  114. data/public/{resources/ext/images → images/vendor/ext}/access/grid/nowait.gif +0 -0
  115. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-first-disabled.gif +0 -0
  116. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-first.gif +0 -0
  117. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-last-disabled.gif +0 -0
  118. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-last.gif +0 -0
  119. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-next-disabled.gif +0 -0
  120. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-next.gif +0 -0
  121. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-prev-disabled.gif +0 -0
  122. data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-prev.gif +0 -0
  123. data/public/{resources/ext/images → images/vendor/ext}/access/grid/pick-button.gif +0 -0
  124. data/public/{resources/ext/images → images/vendor/ext}/access/grid/refresh.gif +0 -0
  125. data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-check-sprite.gif +0 -0
  126. data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-expand-sprite.gif +0 -0
  127. data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-over.gif +0 -0
  128. data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-sel.gif +0 -0
  129. data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort-hd.gif +0 -0
  130. data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort_asc.gif +0 -0
  131. data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort_desc.gif +0 -0
  132. data/public/{resources/ext/images → images/vendor/ext}/access/grid/wait.gif +0 -0
  133. data/public/{resources/ext/images → images/vendor/ext}/access/menu/checked.gif +0 -0
  134. data/public/{resources/ext/images → images/vendor/ext}/access/menu/group-checked.gif +0 -0
  135. data/public/{resources/ext/images → images/vendor/ext}/access/menu/item-over.gif +0 -0
  136. data/public/{resources/ext/images → images/vendor/ext}/access/menu/menu-parent.gif +0 -0
  137. data/public/{resources/ext/images → images/vendor/ext}/access/menu/menu.gif +0 -0
  138. data/public/{resources/ext/images → images/vendor/ext}/access/menu/unchecked.gif +0 -0
  139. data/public/{resources/ext/images → images/vendor/ext}/access/panel/corners-sprite.gif +0 -0
  140. data/public/{resources/ext/images → images/vendor/ext}/access/panel/left-right.gif +0 -0
  141. data/public/{resources/ext/images → images/vendor/ext}/access/panel/light-hd.gif +0 -0
  142. data/public/{resources/ext/images → images/vendor/ext}/access/panel/tool-sprite-tpl.gif +0 -0
  143. data/public/{resources/ext/images → images/vendor/ext}/access/panel/tool-sprites.gif +0 -0
  144. data/public/{resources/ext/images → images/vendor/ext}/access/panel/tools-sprites-trans.gif +0 -0
  145. data/public/{resources/ext/images → images/vendor/ext}/access/panel/top-bottom.gif +0 -0
  146. data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-corners-sprite.gif +0 -0
  147. data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-left-right.gif +0 -0
  148. data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-top-bottom.gif +0 -0
  149. data/public/{resources/ext/images → images/vendor/ext}/access/progress/progress-bg.gif +0 -0
  150. data/public/{resources/ext/images → images/vendor/ext}/access/qtip/close.gif +0 -0
  151. data/public/{resources/ext/images → images/vendor/ext}/access/qtip/tip-anchor-sprite.gif +0 -0
  152. data/public/{resources/ext/images → images/vendor/ext}/access/qtip/tip-sprite.gif +0 -0
  153. data/public/{resources/ext/images → images/vendor/ext}/access/shared/glass-bg.gif +0 -0
  154. data/public/{resources/ext/images → images/vendor/ext}/access/shared/hd-sprite.gif +0 -0
  155. data/public/{resources/ext/images → images/vendor/ext}/access/shared/left-btn.gif +0 -0
  156. data/public/{resources/ext/images → images/vendor/ext}/access/shared/right-btn.gif +0 -0
  157. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/e-handle-dark.gif +0 -0
  158. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/e-handle.gif +0 -0
  159. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/ne-handle-dark.gif +0 -0
  160. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/ne-handle.gif +0 -0
  161. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/nw-handle-dark.gif +0 -0
  162. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/nw-handle.gif +0 -0
  163. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/s-handle-dark.gif +0 -0
  164. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/s-handle.gif +0 -0
  165. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/se-handle-dark.gif +0 -0
  166. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/se-handle.gif +0 -0
  167. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/square.gif +0 -0
  168. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/sw-handle-dark.gif +0 -0
  169. data/public/{resources/ext/images → images/vendor/ext}/access/sizer/sw-handle.gif +0 -0
  170. data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-bg.png +0 -0
  171. data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-thumb.png +0 -0
  172. data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-v-bg.png +0 -0
  173. data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-v-thumb.png +0 -0
  174. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/scroll-left.gif +0 -0
  175. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/scroll-right.gif +0 -0
  176. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-inactive-left-bg.gif +0 -0
  177. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-inactive-right-bg.gif +0 -0
  178. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-left-bg.gif +0 -0
  179. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-right-bg.gif +0 -0
  180. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-close.gif +0 -0
  181. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-strip-bg.gif +0 -0
  182. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-strip-btm-bg.gif +0 -0
  183. data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tabs-sprite.gif +0 -0
  184. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/bg.gif +0 -0
  185. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-arrow-light.gif +0 -0
  186. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-arrow.gif +0 -0
  187. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-over-bg.gif +0 -0
  188. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/gray-bg.gif +0 -0
  189. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/more.gif +0 -0
  190. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/s-arrow-bo.gif +0 -0
  191. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-btn-sprite.gif +0 -0
  192. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-xl-btn-sprite.gif +0 -0
  193. data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-xl-sep.gif +0 -0
  194. data/public/{resources/ext/images → images/vendor/ext}/access/tree/arrows.gif +0 -0
  195. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-add.gif +0 -0
  196. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-between.gif +0 -0
  197. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-no.gif +0 -0
  198. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-over.gif +0 -0
  199. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-under.gif +0 -0
  200. data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-yes.gif +0 -0
  201. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-minus-nl.gif +0 -0
  202. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-minus.gif +0 -0
  203. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-plus-nl.gif +0 -0
  204. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-plus.gif +0 -0
  205. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end.gif +0 -0
  206. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-line.gif +0 -0
  207. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-minus-nl.gif +0 -0
  208. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-minus.gif +0 -0
  209. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-plus-nl.gif +0 -0
  210. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-plus.gif +0 -0
  211. data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow.gif +0 -0
  212. data/public/{resources/ext/images → images/vendor/ext}/access/tree/folder-open.gif +0 -0
  213. data/public/{resources/ext/images → images/vendor/ext}/access/tree/folder.gif +0 -0
  214. data/public/{resources/ext/images → images/vendor/ext}/access/tree/leaf.gif +0 -0
  215. data/public/{resources/ext/images → images/vendor/ext}/access/tree/loading.gif +0 -0
  216. data/public/{resources/ext/images → images/vendor/ext}/access/tree/s.gif +0 -0
  217. data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-error.gif +0 -0
  218. data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-info.gif +0 -0
  219. data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-question.gif +0 -0
  220. data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-warning.gif +0 -0
  221. data/public/{resources/ext/images → images/vendor/ext}/access/window/left-corners.png +0 -0
  222. data/public/{resources/ext/images → images/vendor/ext}/access/window/left-right.png +0 -0
  223. data/public/{resources/ext/images → images/vendor/ext}/access/window/right-corners.png +0 -0
  224. data/public/{resources/ext/images → images/vendor/ext}/access/window/top-bottom.png +0 -0
  225. data/public/{resources/ext/images → images/vendor/ext}/default/box/corners-blue.gif +0 -0
  226. data/public/{resources/ext/images → images/vendor/ext}/default/box/corners.gif +0 -0
  227. data/public/{resources/ext/images → images/vendor/ext}/default/box/l-blue.gif +0 -0
  228. data/public/{resources/ext/images → images/vendor/ext}/default/box/l.gif +0 -0
  229. data/public/{resources/ext/images → images/vendor/ext}/default/box/r-blue.gif +0 -0
  230. data/public/{resources/ext/images → images/vendor/ext}/default/box/r.gif +0 -0
  231. data/public/{resources/ext/images → images/vendor/ext}/default/box/tb-blue.gif +0 -0
  232. data/public/{resources/ext/images → images/vendor/ext}/default/box/tb.gif +0 -0
  233. data/public/{resources/ext/images → images/vendor/ext}/default/button/arrow.gif +0 -0
  234. data/public/{resources/ext/images → images/vendor/ext}/default/button/btn.gif +0 -0
  235. data/public/{resources/ext/images → images/vendor/ext}/default/button/group-cs.gif +0 -0
  236. data/public/{resources/ext/images → images/vendor/ext}/default/button/group-lr.gif +0 -0
  237. data/public/{resources/ext/images → images/vendor/ext}/default/button/group-tb.gif +0 -0
  238. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-b-noline.gif +0 -0
  239. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-b.gif +0 -0
  240. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-bo.gif +0 -0
  241. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-noline.gif +0 -0
  242. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-o.gif +0 -0
  243. data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow.gif +0 -0
  244. data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-add.gif +0 -0
  245. data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-no.gif +0 -0
  246. data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-yes.gif +0 -0
  247. data/public/{resources/ext/images → images/vendor/ext}/default/editor/tb-sprite.gif +0 -0
  248. data/public/{resources/ext/images → images/vendor/ext}/default/form/checkbox.gif +0 -0
  249. data/public/{resources/ext/images → images/vendor/ext}/default/form/clear-trigger.gif +0 -0
  250. data/public/{resources/ext/images → images/vendor/ext}/default/form/clear-trigger.psd +0 -0
  251. data/public/{resources/ext/images → images/vendor/ext}/default/form/date-trigger.gif +0 -0
  252. data/public/{resources/ext/images → images/vendor/ext}/default/form/date-trigger.psd +0 -0
  253. data/public/{resources/ext/images → images/vendor/ext}/default/form/error-tip-corners.gif +0 -0
  254. data/public/{resources/ext/images → images/vendor/ext}/default/form/exclamation.gif +0 -0
  255. data/public/{resources/ext/images → images/vendor/ext}/default/form/radio.gif +0 -0
  256. data/public/{resources/ext/images → images/vendor/ext}/default/form/search-trigger.gif +0 -0
  257. data/public/{resources/ext/images → images/vendor/ext}/default/form/search-trigger.psd +0 -0
  258. data/public/{resources/ext/images → images/vendor/ext}/default/form/text-bg.gif +0 -0
  259. data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-square.gif +0 -0
  260. data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-square.psd +0 -0
  261. data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-tpl.gif +0 -0
  262. data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger.gif +0 -0
  263. data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger.psd +0 -0
  264. data/public/{resources/ext/images → images/vendor/ext}/default/gradient-bg.gif +0 -0
  265. data/public/{resources/ext/images → images/vendor/ext}/default/grid/arrow-left-white.gif +0 -0
  266. data/public/{resources/ext/images → images/vendor/ext}/default/grid/arrow-right-white.gif +0 -0
  267. data/public/{resources/ext/images → images/vendor/ext}/default/grid/col-move-bottom.gif +0 -0
  268. data/public/{resources/ext/images → images/vendor/ext}/default/grid/col-move-top.gif +0 -0
  269. data/public/{resources/ext/images → images/vendor/ext}/default/grid/columns.gif +0 -0
  270. data/public/{resources/ext/images → images/vendor/ext}/default/grid/dirty.gif +0 -0
  271. data/public/{resources/ext/images → images/vendor/ext}/default/grid/done.gif +0 -0
  272. data/public/{resources/ext/images → images/vendor/ext}/default/grid/drop-no.gif +0 -0
  273. data/public/{resources/ext/images → images/vendor/ext}/default/grid/drop-yes.gif +0 -0
  274. data/public/{resources/ext/images → images/vendor/ext}/default/grid/footer-bg.gif +0 -0
  275. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-blue-hd.gif +0 -0
  276. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-blue-split.gif +0 -0
  277. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-hrow.gif +0 -0
  278. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-loading.gif +0 -0
  279. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-split.gif +0 -0
  280. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-vista-hd.gif +0 -0
  281. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hd-btn.gif +0 -0
  282. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hrow-over.gif +0 -0
  283. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hrow.gif +0 -0
  284. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-rowheader.gif +0 -0
  285. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-special-col-bg.gif +0 -0
  286. data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-special-col-sel-bg.gif +0 -0
  287. data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-by.gif +0 -0
  288. data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-collapse.gif +0 -0
  289. data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-expand-sprite.gif +0 -0
  290. data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-expand.gif +0 -0
  291. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hd-pop.gif +0 -0
  292. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-asc.gif +0 -0
  293. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-desc.gif +0 -0
  294. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-lock.gif +0 -0
  295. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-lock.png +0 -0
  296. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-unlock.gif +0 -0
  297. data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-unlock.png +0 -0
  298. data/public/{resources/ext/images → images/vendor/ext}/default/grid/invalid_line.gif +0 -0
  299. data/public/{resources/ext/images → images/vendor/ext}/default/grid/loading.gif +0 -0
  300. data/public/{resources/ext/images → images/vendor/ext}/default/grid/mso-hd.gif +0 -0
  301. data/public/{resources/ext/images → images/vendor/ext}/default/grid/nowait.gif +0 -0
  302. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-first-disabled.gif +0 -0
  303. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-first.gif +0 -0
  304. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-last-disabled.gif +0 -0
  305. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-last.gif +0 -0
  306. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-next-disabled.gif +0 -0
  307. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-next.gif +0 -0
  308. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-prev-disabled.gif +0 -0
  309. data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-prev.gif +0 -0
  310. data/public/{resources/ext/images → images/vendor/ext}/default/grid/pick-button.gif +0 -0
  311. data/public/{resources/ext/images → images/vendor/ext}/default/grid/refresh-disabled.gif +0 -0
  312. data/public/{resources/ext/images → images/vendor/ext}/default/grid/refresh.gif +0 -0
  313. data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-check-sprite.gif +0 -0
  314. data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-expand-sprite.gif +0 -0
  315. data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-over.gif +0 -0
  316. data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-sel.gif +0 -0
  317. data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort-hd.gif +0 -0
  318. data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort_asc.gif +0 -0
  319. data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort_desc.gif +0 -0
  320. data/public/{resources/ext/images → images/vendor/ext}/default/grid/wait.gif +0 -0
  321. data/public/{resources/ext/images → images/vendor/ext}/default/layout/collapse.gif +0 -0
  322. data/public/{resources/ext/images → images/vendor/ext}/default/layout/expand.gif +0 -0
  323. data/public/{resources/ext/images → images/vendor/ext}/default/layout/gradient-bg.gif +0 -0
  324. data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-bottom.gif +0 -0
  325. data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-left.gif +0 -0
  326. data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-right.gif +0 -0
  327. data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-top.gif +0 -0
  328. data/public/{resources/ext/images → images/vendor/ext}/default/layout/ns-collapse.gif +0 -0
  329. data/public/{resources/ext/images → images/vendor/ext}/default/layout/ns-expand.gif +0 -0
  330. data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-close.gif +0 -0
  331. data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-title-bg.gif +0 -0
  332. data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-title-light-bg.gif +0 -0
  333. data/public/{resources/ext/images → images/vendor/ext}/default/layout/stick.gif +0 -0
  334. data/public/{resources/ext/images → images/vendor/ext}/default/layout/stuck.gif +0 -0
  335. data/public/{resources/ext/images → images/vendor/ext}/default/layout/tab-close-on.gif +0 -0
  336. data/public/{resources/ext/images → images/vendor/ext}/default/layout/tab-close.gif +0 -0
  337. data/public/{resources/ext/images → images/vendor/ext}/default/menu/checked.gif +0 -0
  338. data/public/{resources/ext/images → images/vendor/ext}/default/menu/group-checked.gif +0 -0
  339. data/public/{resources/ext/images → images/vendor/ext}/default/menu/item-over.gif +0 -0
  340. data/public/{resources/ext/images → images/vendor/ext}/default/menu/menu-parent.gif +0 -0
  341. data/public/{resources/ext/images → images/vendor/ext}/default/menu/menu.gif +0 -0
  342. data/public/{resources/ext/images → images/vendor/ext}/default/menu/unchecked.gif +0 -0
  343. data/public/{resources/ext/images → images/vendor/ext}/default/panel/corners-sprite.gif +0 -0
  344. data/public/{resources/ext/images → images/vendor/ext}/default/panel/left-right.gif +0 -0
  345. data/public/{resources/ext/images → images/vendor/ext}/default/panel/light-hd.gif +0 -0
  346. data/public/{resources/ext/images → images/vendor/ext}/default/panel/tool-sprite-tpl.gif +0 -0
  347. data/public/{resources/ext/images/yourtheme → images/vendor/ext/default}/panel/tool-sprites.gif +0 -0
  348. data/public/{resources/ext/images → images/vendor/ext}/default/panel/tools-sprites-trans.gif +0 -0
  349. data/public/{resources/ext/images → images/vendor/ext}/default/panel/top-bottom.gif +0 -0
  350. data/public/{resources/ext/images → images/vendor/ext}/default/panel/top-bottom.png +0 -0
  351. data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-corners-sprite.gif +0 -0
  352. data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-left-right.gif +0 -0
  353. data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-top-bottom.gif +0 -0
  354. data/public/{resources/ext/images → images/vendor/ext}/default/progress/progress-bg.gif +0 -0
  355. data/public/{resources/ext/images → images/vendor/ext}/default/qtip/bg.gif +0 -0
  356. data/public/{resources/ext/images → images/vendor/ext}/default/qtip/close.gif +0 -0
  357. data/public/{resources/ext/images → images/vendor/ext}/default/qtip/tip-anchor-sprite.gif +0 -0
  358. data/public/{resources/ext/images → images/vendor/ext}/default/qtip/tip-sprite.gif +0 -0
  359. data/public/{resources/ext/images → images/vendor/ext}/default/s.gif +0 -0
  360. data/public/{resources/ext/images → images/vendor/ext}/default/shadow-c.png +0 -0
  361. data/public/{resources/ext/images → images/vendor/ext}/default/shadow-lr.png +0 -0
  362. data/public/{resources/ext/images → images/vendor/ext}/default/shadow.png +0 -0
  363. data/public/{resources/ext/images → images/vendor/ext}/default/shared/blue-loading.gif +0 -0
  364. data/public/{resources/ext/images → images/vendor/ext}/default/shared/calendar.gif +0 -0
  365. data/public/{resources/ext/images → images/vendor/ext}/default/shared/glass-bg.gif +0 -0
  366. data/public/{resources/ext/images → images/vendor/ext}/default/shared/hd-sprite.gif +0 -0
  367. data/public/{resources/ext/images → images/vendor/ext}/default/shared/large-loading.gif +0 -0
  368. data/public/{resources/ext/images → images/vendor/ext}/default/shared/left-btn.gif +0 -0
  369. data/public/{resources/ext/images → images/vendor/ext}/default/shared/loading-balls.gif +0 -0
  370. data/public/{resources/ext/images → images/vendor/ext}/default/shared/right-btn.gif +0 -0
  371. data/public/{resources/ext/images → images/vendor/ext}/default/shared/warning.gif +0 -0
  372. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/e-handle-dark.gif +0 -0
  373. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/e-handle.gif +0 -0
  374. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/ne-handle-dark.gif +0 -0
  375. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/ne-handle.gif +0 -0
  376. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/nw-handle-dark.gif +0 -0
  377. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/nw-handle.gif +0 -0
  378. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/s-handle-dark.gif +0 -0
  379. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/s-handle.gif +0 -0
  380. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/se-handle-dark.gif +0 -0
  381. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/se-handle.gif +0 -0
  382. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/square.gif +0 -0
  383. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/sw-handle-dark.gif +0 -0
  384. data/public/{resources/ext/images → images/vendor/ext}/default/sizer/sw-handle.gif +0 -0
  385. data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-bg.png +0 -0
  386. data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-thumb.png +0 -0
  387. data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-v-bg.png +0 -0
  388. data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-v-thumb.png +0 -0
  389. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroll-left.gif +0 -0
  390. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroll-right.gif +0 -0
  391. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroller-bg.gif +0 -0
  392. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  393. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  394. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-left-bg.gif +0 -0
  395. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-over-left-bg.gif +0 -0
  396. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-over-right-bg.gif +0 -0
  397. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-right-bg.gif +0 -0
  398. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-close.gif +0 -0
  399. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-bg.gif +0 -0
  400. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-bg.png +0 -0
  401. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-btm-bg.gif +0 -0
  402. data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tabs-sprite.gif +0 -0
  403. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/bg.gif +0 -0
  404. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-arrow-light.gif +0 -0
  405. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-arrow.gif +0 -0
  406. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-over-bg.gif +0 -0
  407. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/gray-bg.gif +0 -0
  408. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/more.gif +0 -0
  409. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-bg.gif +0 -0
  410. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-btn-sprite.gif +0 -0
  411. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  412. data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-xl-sep.gif +0 -0
  413. data/public/{resources/ext/images → images/vendor/ext}/default/tree/arrows.gif +0 -0
  414. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-add.gif +0 -0
  415. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-between.gif +0 -0
  416. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-no.gif +0 -0
  417. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-over.gif +0 -0
  418. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-under.gif +0 -0
  419. data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-yes.gif +0 -0
  420. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-minus-nl.gif +0 -0
  421. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-minus.gif +0 -0
  422. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-plus-nl.gif +0 -0
  423. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-plus.gif +0 -0
  424. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end.gif +0 -0
  425. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-line.gif +0 -0
  426. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-minus-nl.gif +0 -0
  427. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-minus.gif +0 -0
  428. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-plus-nl.gif +0 -0
  429. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-plus.gif +0 -0
  430. data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow.gif +0 -0
  431. data/public/{resources/ext/images → images/vendor/ext}/default/tree/folder-open.gif +0 -0
  432. data/public/{resources/ext/images → images/vendor/ext}/default/tree/folder.gif +0 -0
  433. data/public/{resources/ext/images → images/vendor/ext}/default/tree/leaf.gif +0 -0
  434. data/public/{resources/ext/images → images/vendor/ext}/default/tree/loading.gif +0 -0
  435. data/public/{resources/ext/images → images/vendor/ext}/default/tree/s.gif +0 -0
  436. data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-error.gif +0 -0
  437. data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-info.gif +0 -0
  438. data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-question.gif +0 -0
  439. data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-warning.gif +0 -0
  440. data/public/{resources/ext/images → images/vendor/ext}/default/window/left-corners.png +0 -0
  441. data/public/{resources/ext/images → images/vendor/ext}/default/window/left-corners.psd +0 -0
  442. data/public/{resources/ext/images → images/vendor/ext}/default/window/left-right.png +0 -0
  443. data/public/{resources/ext/images → images/vendor/ext}/default/window/left-right.psd +0 -0
  444. data/public/{resources/ext/images → images/vendor/ext}/default/window/right-corners.png +0 -0
  445. data/public/{resources/ext/images → images/vendor/ext}/default/window/right-corners.psd +0 -0
  446. data/public/{resources/ext/images → images/vendor/ext}/default/window/top-bottom.png +0 -0
  447. data/public/{resources/ext/images → images/vendor/ext}/default/window/top-bottom.psd +0 -0
  448. data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn-arrow.gif +0 -0
  449. data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn-sprite.gif +0 -0
  450. data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn.gif +0 -0
  451. data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-cs.gif +0 -0
  452. data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-lr.gif +0 -0
  453. data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-tb.gif +0 -0
  454. data/public/{resources/ext/images → images/vendor/ext}/gray/button/s-arrow-bo.gif +0 -0
  455. data/public/{resources/ext/images → images/vendor/ext}/gray/button/s-arrow-o.gif +0 -0
  456. data/public/{resources/ext/images → images/vendor/ext}/gray/form/clear-trigger.gif +0 -0
  457. data/public/{resources/ext/images → images/vendor/ext}/gray/form/date-trigger.gif +0 -0
  458. data/public/{resources/ext/images → images/vendor/ext}/gray/form/search-trigger.gif +0 -0
  459. data/public/{resources/ext/images → images/vendor/ext}/gray/form/trigger-square.gif +0 -0
  460. data/public/{resources/ext/images → images/vendor/ext}/gray/form/trigger.gif +0 -0
  461. data/public/{resources/ext/images → images/vendor/ext}/gray/gradient-bg.gif +0 -0
  462. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/col-move-bottom.gif +0 -0
  463. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/col-move-top.gif +0 -0
  464. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hd-btn.gif +0 -0
  465. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow-over.gif +0 -0
  466. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow-over2.gif +0 -0
  467. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow.gif +0 -0
  468. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow2.gif +0 -0
  469. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-bg.gif +0 -0
  470. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-bg2.gif +0 -0
  471. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-sel-bg.gif +0 -0
  472. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-collapse.gif +0 -0
  473. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-expand-sprite.gif +0 -0
  474. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-expand.gif +0 -0
  475. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-first.gif +0 -0
  476. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-last.gif +0 -0
  477. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-next.gif +0 -0
  478. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-prev.gif +0 -0
  479. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/refresh.gif +0 -0
  480. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/row-expand-sprite.gif +0 -0
  481. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/sort_asc.gif +0 -0
  482. data/public/{resources/ext/images → images/vendor/ext}/gray/grid/sort_desc.gif +0 -0
  483. data/public/{resources/ext/images → images/vendor/ext}/gray/menu/group-checked.gif +0 -0
  484. data/public/{resources/ext/images → images/vendor/ext}/gray/menu/item-over-disabled.gif +0 -0
  485. data/public/{resources/ext/images → images/vendor/ext}/gray/menu/item-over.gif +0 -0
  486. data/public/{resources/ext/images → images/vendor/ext}/gray/menu/menu-parent.gif +0 -0
  487. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/corners-sprite.gif +0 -0
  488. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/left-right.gif +0 -0
  489. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/light-hd.gif +0 -0
  490. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/tool-sprite-tpl.gif +0 -0
  491. data/public/images/vendor/ext/gray/panel/tool-sprites.gif +0 -0
  492. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/tools-sprites-trans.gif +0 -0
  493. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/top-bottom.gif +0 -0
  494. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/top-bottom.png +0 -0
  495. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-corners-sprite.gif +0 -0
  496. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-left-right.gif +0 -0
  497. data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-top-bottom.gif +0 -0
  498. data/public/{resources/ext/images → images/vendor/ext}/gray/progress/progress-bg.gif +0 -0
  499. data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/bg.gif +0 -0
  500. data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/close.gif +0 -0
  501. data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/tip-anchor-sprite.gif +0 -0
  502. data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/tip-sprite.gif +0 -0
  503. data/public/{resources/ext/images → images/vendor/ext}/gray/s.gif +0 -0
  504. data/public/{resources/ext/images → images/vendor/ext}/gray/shared/hd-sprite.gif +0 -0
  505. data/public/{resources/ext/images → images/vendor/ext}/gray/shared/left-btn.gif +0 -0
  506. data/public/{resources/ext/images → images/vendor/ext}/gray/shared/right-btn.gif +0 -0
  507. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/e-handle.gif +0 -0
  508. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/ne-handle.gif +0 -0
  509. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/nw-handle.gif +0 -0
  510. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/s-handle.gif +0 -0
  511. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/se-handle.gif +0 -0
  512. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/square.gif +0 -0
  513. data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/sw-handle.gif +0 -0
  514. data/public/{resources/ext/images → images/vendor/ext}/gray/slider/slider-thumb.png +0 -0
  515. data/public/{resources/ext/images → images/vendor/ext}/gray/slider/slider-v-thumb.png +0 -0
  516. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroll-left.gif +0 -0
  517. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroll-right.gif +0 -0
  518. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroller-bg.gif +0 -0
  519. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
  520. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
  521. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-left-bg.gif +0 -0
  522. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-over-left-bg.gif +0 -0
  523. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-over-right-bg.gif +0 -0
  524. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-right-bg.gif +0 -0
  525. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-close.gif +0 -0
  526. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-bg.gif +0 -0
  527. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-bg.png +0 -0
  528. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-btm-bg.gif +0 -0
  529. data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tabs-sprite.gif +0 -0
  530. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/bg.gif +0 -0
  531. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-arrow-light.gif +0 -0
  532. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-arrow.gif +0 -0
  533. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-over-bg.gif +0 -0
  534. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/gray-bg.gif +0 -0
  535. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/more.gif +0 -0
  536. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/tb-bg.gif +0 -0
  537. data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/tb-btn-sprite.gif +0 -0
  538. data/public/{resources/ext/images → images/vendor/ext}/gray/tree/arrows.gif +0 -0
  539. data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-minus-nl.gif +0 -0
  540. data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-minus.gif +0 -0
  541. data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-plus-nl.gif +0 -0
  542. data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-plus.gif +0 -0
  543. data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-error.gif +0 -0
  544. data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-info.gif +0 -0
  545. data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-question.gif +0 -0
  546. data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-warning.gif +0 -0
  547. data/public/{resources/ext/images → images/vendor/ext}/gray/window/left-corners.png +0 -0
  548. data/public/{resources/ext/images → images/vendor/ext}/gray/window/left-right.png +0 -0
  549. data/public/{resources/ext/images → images/vendor/ext}/gray/window/right-corners.png +0 -0
  550. data/public/{resources/ext/images → images/vendor/ext}/gray/window/top-bottom.png +0 -0
  551. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-center.gif +0 -0
  552. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-left.gif +0 -0
  553. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-right.gif +0 -0
  554. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/close.gif +0 -0
  555. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/collapse.gif +0 -0
  556. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/dlg-bg.gif +0 -0
  557. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/e-handle.gif +0 -0
  558. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/expand.gif +0 -0
  559. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/hd-sprite.gif +0 -0
  560. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/s-handle.gif +0 -0
  561. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/se-handle.gif +0 -0
  562. data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/w-handle.gif +0 -0
  563. data/public/{resources/ext/images → images/vendor/ext}/vista/gradient-bg.gif +0 -0
  564. data/public/{resources/ext/images → images/vendor/ext}/vista/grid/grid-split.gif +0 -0
  565. data/public/{resources/ext/images → images/vendor/ext}/vista/grid/grid-vista-hd.gif +0 -0
  566. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/collapse.gif +0 -0
  567. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/expand.gif +0 -0
  568. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/gradient-bg.gif +0 -0
  569. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/ns-collapse.gif +0 -0
  570. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/ns-expand.gif +0 -0
  571. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-close.gif +0 -0
  572. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-title-bg.gif +0 -0
  573. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-title-light-bg.gif +0 -0
  574. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/stick.gif +0 -0
  575. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/tab-close-on.gif +0 -0
  576. data/public/{resources/ext/images → images/vendor/ext}/vista/layout/tab-close.gif +0 -0
  577. data/public/{resources/ext/images → images/vendor/ext}/vista/qtip/bg.gif +0 -0
  578. data/public/{resources/ext/images → images/vendor/ext}/vista/qtip/tip-sprite.gif +0 -0
  579. data/public/{resources/ext/images → images/vendor/ext}/vista/s.gif +0 -0
  580. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/e-handle-dark.gif +0 -0
  581. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/e-handle.gif +0 -0
  582. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/ne-handle-dark.gif +0 -0
  583. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/ne-handle.gif +0 -0
  584. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/nw-handle-dark.gif +0 -0
  585. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/nw-handle.gif +0 -0
  586. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/s-handle-dark.gif +0 -0
  587. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/s-handle.gif +0 -0
  588. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/se-handle-dark.gif +0 -0
  589. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/se-handle.gif +0 -0
  590. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/sw-handle-dark.gif +0 -0
  591. data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/sw-handle.gif +0 -0
  592. data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-inactive-left-bg.gif +0 -0
  593. data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-inactive-right-bg.gif +0 -0
  594. data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-left-bg.gif +0 -0
  595. data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-right-bg.gif +0 -0
  596. data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-sprite.gif +0 -0
  597. data/public/{resources/ext/images → images/vendor/ext}/vista/toolbar/gray-bg.gif +0 -0
  598. data/public/{resources/ext/images → images/vendor/ext}/vista/toolbar/tb-btn-sprite.gif +0 -0
  599. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/README.txt +0 -0
  600. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/corners-blue.gif +0 -0
  601. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/corners.gif +0 -0
  602. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/l-blue.gif +0 -0
  603. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/l.gif +0 -0
  604. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/r-blue.gif +0 -0
  605. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/r.gif +0 -0
  606. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/tb-blue.gif +0 -0
  607. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/tb.gif +0 -0
  608. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/arrow.gif +0 -0
  609. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/btn.gif +0 -0
  610. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-cs.gif +0 -0
  611. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-lr.gif +0 -0
  612. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-tb.gif +0 -0
  613. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-b-noline.gif +0 -0
  614. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-b.gif +0 -0
  615. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-bo.gif +0 -0
  616. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-noline.gif +0 -0
  617. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-o.gif +0 -0
  618. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow.gif +0 -0
  619. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-add.gif +0 -0
  620. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-no.gif +0 -0
  621. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-yes.gif +0 -0
  622. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/editor/tb-sprite.gif +0 -0
  623. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/checkbox.gif +0 -0
  624. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/clear-trigger.gif +0 -0
  625. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/clear-trigger.psd +0 -0
  626. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/date-trigger.gif +0 -0
  627. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/date-trigger.psd +0 -0
  628. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/error-tip-corners.gif +0 -0
  629. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/exclamation.gif +0 -0
  630. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/radio.gif +0 -0
  631. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/search-trigger.gif +0 -0
  632. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/search-trigger.psd +0 -0
  633. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/text-bg.gif +0 -0
  634. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-square.gif +0 -0
  635. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-square.psd +0 -0
  636. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-tpl.gif +0 -0
  637. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger.gif +0 -0
  638. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger.psd +0 -0
  639. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/gradient-bg.gif +0 -0
  640. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/arrow-left-white.gif +0 -0
  641. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/arrow-right-white.gif +0 -0
  642. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/col-move-bottom.gif +0 -0
  643. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/col-move-top.gif +0 -0
  644. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/columns.gif +0 -0
  645. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/dirty.gif +0 -0
  646. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/done.gif +0 -0
  647. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/drop-no.gif +0 -0
  648. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/drop-yes.gif +0 -0
  649. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/footer-bg.gif +0 -0
  650. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-blue-hd.gif +0 -0
  651. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-blue-split.gif +0 -0
  652. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-hrow.gif +0 -0
  653. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-loading.gif +0 -0
  654. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-split.gif +0 -0
  655. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-vista-hd.gif +0 -0
  656. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hd-btn.gif +0 -0
  657. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hrow-over.gif +0 -0
  658. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hrow.gif +0 -0
  659. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-special-col-bg.gif +0 -0
  660. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-special-col-sel-bg.gif +0 -0
  661. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-by.gif +0 -0
  662. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-collapse.gif +0 -0
  663. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-expand-sprite.gif +0 -0
  664. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-expand.gif +0 -0
  665. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hd-pop.gif +0 -0
  666. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-asc.gif +0 -0
  667. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-desc.gif +0 -0
  668. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-lock.gif +0 -0
  669. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-lock.png +0 -0
  670. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-unlock.gif +0 -0
  671. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-unlock.png +0 -0
  672. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/invalid_line.gif +0 -0
  673. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/loading.gif +0 -0
  674. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/mso-hd.gif +0 -0
  675. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/nowait.gif +0 -0
  676. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-first-disabled.gif +0 -0
  677. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-first.gif +0 -0
  678. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-last-disabled.gif +0 -0
  679. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-last.gif +0 -0
  680. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-next-disabled.gif +0 -0
  681. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-next.gif +0 -0
  682. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-prev-disabled.gif +0 -0
  683. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-prev.gif +0 -0
  684. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/pick-button.gif +0 -0
  685. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/refresh.gif +0 -0
  686. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-check-sprite.gif +0 -0
  687. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-expand-sprite.gif +0 -0
  688. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-over.gif +0 -0
  689. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-sel.gif +0 -0
  690. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort-hd.gif +0 -0
  691. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort_asc.gif +0 -0
  692. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort_desc.gif +0 -0
  693. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/wait.gif +0 -0
  694. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/collapse.gif +0 -0
  695. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/expand.gif +0 -0
  696. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/gradient-bg.gif +0 -0
  697. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-bottom.gif +0 -0
  698. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-left.gif +0 -0
  699. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-right.gif +0 -0
  700. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-top.gif +0 -0
  701. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/ns-collapse.gif +0 -0
  702. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/ns-expand.gif +0 -0
  703. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-close.gif +0 -0
  704. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-title-bg.gif +0 -0
  705. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-title-light-bg.gif +0 -0
  706. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/stick.gif +0 -0
  707. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/stuck.gif +0 -0
  708. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/tab-close-on.gif +0 -0
  709. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/tab-close.gif +0 -0
  710. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/checked.gif +0 -0
  711. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/group-checked.gif +0 -0
  712. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/item-over.gif +0 -0
  713. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/menu-parent.gif +0 -0
  714. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/menu.gif +0 -0
  715. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/unchecked.gif +0 -0
  716. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/corners-sprite.gif +0 -0
  717. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/left-right.gif +0 -0
  718. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/light-hd.gif +0 -0
  719. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/tool-sprite-tpl.gif +0 -0
  720. data/public/images/vendor/ext/yourtheme/panel/tool-sprites.gif +0 -0
  721. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/tools-sprites-trans.gif +0 -0
  722. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/top-bottom.gif +0 -0
  723. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/top-bottom.png +0 -0
  724. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-corners-sprite.gif +0 -0
  725. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-left-right.gif +0 -0
  726. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-top-bottom.gif +0 -0
  727. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/progress/progress-bg.gif +0 -0
  728. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/bg.gif +0 -0
  729. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/close.gif +0 -0
  730. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/tip-anchor-sprite.gif +0 -0
  731. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/tip-sprite.gif +0 -0
  732. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/s.gif +0 -0
  733. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow-c.png +0 -0
  734. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow-lr.png +0 -0
  735. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow.png +0 -0
  736. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/blue-loading.gif +0 -0
  737. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/calendar.gif +0 -0
  738. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/glass-bg.gif +0 -0
  739. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/hd-sprite.gif +0 -0
  740. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/large-loading.gif +0 -0
  741. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/left-btn.gif +0 -0
  742. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/loading-balls.gif +0 -0
  743. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/right-btn.gif +0 -0
  744. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/warning.gif +0 -0
  745. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/e-handle-dark.gif +0 -0
  746. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/e-handle.gif +0 -0
  747. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/ne-handle-dark.gif +0 -0
  748. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/ne-handle.gif +0 -0
  749. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/nw-handle-dark.gif +0 -0
  750. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/nw-handle.gif +0 -0
  751. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/s-handle-dark.gif +0 -0
  752. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/s-handle.gif +0 -0
  753. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/se-handle-dark.gif +0 -0
  754. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/se-handle.gif +0 -0
  755. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/square.gif +0 -0
  756. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/sw-handle-dark.gif +0 -0
  757. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/sw-handle.gif +0 -0
  758. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-bg.png +0 -0
  759. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-thumb.png +0 -0
  760. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-v-bg.png +0 -0
  761. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-v-thumb.png +0 -0
  762. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroll-left.gif +0 -0
  763. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroll-right.gif +0 -0
  764. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroller-bg.gif +0 -0
  765. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-inactive-left-bg.gif +0 -0
  766. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-inactive-right-bg.gif +0 -0
  767. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-left-bg.gif +0 -0
  768. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-over-left-bg.gif +0 -0
  769. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-over-right-bg.gif +0 -0
  770. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-right-bg.gif +0 -0
  771. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-close.gif +0 -0
  772. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-bg.gif +0 -0
  773. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-bg.png +0 -0
  774. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-btm-bg.gif +0 -0
  775. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tabs-sprite.gif +0 -0
  776. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/bg.gif +0 -0
  777. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-arrow-light.gif +0 -0
  778. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-arrow.gif +0 -0
  779. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-over-bg.gif +0 -0
  780. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/gray-bg.gif +0 -0
  781. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/more.gif +0 -0
  782. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-bg.gif +0 -0
  783. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-btn-sprite.gif +0 -0
  784. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-xl-btn-sprite.gif +0 -0
  785. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-xl-sep.gif +0 -0
  786. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/arrows.gif +0 -0
  787. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-add.gif +0 -0
  788. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-between.gif +0 -0
  789. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-no.gif +0 -0
  790. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-over.gif +0 -0
  791. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-under.gif +0 -0
  792. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-yes.gif +0 -0
  793. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-minus-nl.gif +0 -0
  794. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-minus.gif +0 -0
  795. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-plus-nl.gif +0 -0
  796. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-plus.gif +0 -0
  797. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end.gif +0 -0
  798. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-line.gif +0 -0
  799. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-minus-nl.gif +0 -0
  800. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-minus.gif +0 -0
  801. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-plus-nl.gif +0 -0
  802. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-plus.gif +0 -0
  803. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow.gif +0 -0
  804. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/folder-open.gif +0 -0
  805. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/folder.gif +0 -0
  806. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/leaf.gif +0 -0
  807. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/loading.gif +0 -0
  808. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/s.gif +0 -0
  809. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-error.gif +0 -0
  810. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-info.gif +0 -0
  811. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-question.gif +0 -0
  812. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-warning.gif +0 -0
  813. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-corners.png +0 -0
  814. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-corners.psd +0 -0
  815. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-right.png +0 -0
  816. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-right.psd +0 -0
  817. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/right-corners.png +0 -0
  818. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/right-corners.psd +0 -0
  819. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/top-bottom.png +0 -0
  820. data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/top-bottom.psd +0 -0
  821. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-container.png +0 -0
  822. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-bbcode.png +0 -0
  823. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-dotclear.png +0 -0
  824. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-html.png +0 -0
  825. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-json.png +0 -0
  826. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-markdown.png +0 -0
  827. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-textile.png +0 -0
  828. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-wiki.png +0 -0
  829. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-xml.png +0 -0
  830. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor.png +0 -0
  831. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/bold.png +0 -0
  832. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/code.png +0 -0
  833. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h1.png +0 -0
  834. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h2.png +0 -0
  835. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h3.png +0 -0
  836. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h4.png +0 -0
  837. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h5.png +0 -0
  838. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h6.png +0 -0
  839. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/handle.png +0 -0
  840. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/italic.png +0 -0
  841. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/link.png +0 -0
  842. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/list-bullet.png +0 -0
  843. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/list-numeric.png +0 -0
  844. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/menu.png +0 -0
  845. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/paragraph.png +0 -0
  846. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/picture.png +0 -0
  847. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/preview.png +0 -0
  848. data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/quotes.png +0 -0
  849. data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/stroke.png +0 -0
  850. data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/submenu.png +0 -0
  851. data/public/javascripts/Rwiki.js +95 -40
  852. data/public/javascripts/Rwiki/AboutDialog.js +32 -0
  853. data/public/javascripts/Rwiki/Button.js +29 -0
  854. data/public/javascripts/Rwiki/Data/Page.js +83 -0
  855. data/public/javascripts/Rwiki/Data/PageManager.js +195 -0
  856. data/public/javascripts/Rwiki/Debug.js +21 -0
  857. data/public/javascripts/Rwiki/{EditorPanel/Editor.js → Editor/EditorPanel.js} +43 -23
  858. data/public/javascripts/Rwiki/EditorWindow.js +68 -26
  859. data/public/javascripts/Rwiki/ExceptionWindow.js +32 -0
  860. data/public/javascripts/Rwiki/Flash.js +43 -0
  861. data/public/javascripts/Rwiki/Mask.js +79 -0
  862. data/public/javascripts/Rwiki/NavigationPanel.js +1 -1
  863. data/public/javascripts/Rwiki/PageNameDialog.js +39 -0
  864. data/public/javascripts/Rwiki/Search/FuzzyFinderWindow.js +37 -0
  865. data/public/javascripts/Rwiki/Search/TextSearchWindow.js +35 -0
  866. data/public/javascripts/Rwiki/Search/Window.js +42 -0
  867. data/public/javascripts/Rwiki/TabPanel.js +62 -74
  868. data/public/javascripts/Rwiki/Tabs/PageTab.js +47 -0
  869. data/public/javascripts/Rwiki/Tabs/Toolbar.js +101 -0
  870. data/public/javascripts/Rwiki/TocPanel.js +55 -0
  871. data/public/javascripts/Rwiki/Tree/Loader.js +23 -0
  872. data/public/javascripts/Rwiki/Tree/Menu.js +100 -0
  873. data/public/javascripts/Rwiki/Tree/Node.js +83 -0
  874. data/public/javascripts/Rwiki/TreePanel.js +36 -72
  875. data/public/javascripts/vendor/ext/ext-all.js +6 -6
  876. data/public/javascripts/vendor/ext/{adapter/jquery/ext-jquery-adapter-debug.js → ext-jquery-adapter-debug.js} +0 -0
  877. data/public/javascripts/vendor/ext/{adapter/jquery/ext-jquery-adapter.js → ext-jquery-adapter.js} +5 -5
  878. data/public/javascripts/vendor/jquery/{jquery-1.4.2.js → jquery-1.5.js} +3502 -1566
  879. data/public/stylesheets/{coderay.css → Rwiki/coderay.css} +4 -0
  880. data/public/stylesheets/Rwiki/markitup.css +19 -0
  881. data/public/stylesheets/{page.css → Rwiki/page.css} +2 -7
  882. data/public/stylesheets/style.css +72 -16
  883. data/public/{resources/ext/css → stylesheets/vendor/ext}/ext-all.css +258 -293
  884. data/public/stylesheets/vendor/markitup/sets/textile/style.css +60 -0
  885. data/public/{resources → stylesheets/vendor}/markitup/skins/markitup/style.css +12 -12
  886. data/rwiki.gemspec +926 -1056
  887. data/sandbox/grit.rb +116 -0
  888. data/script/build_cucumber +24 -0
  889. data/script/build_jasmine +18 -0
  890. data/script/build_rspec +13 -0
  891. data/script/shotgun +2 -0
  892. data/spec/coffeescripts/Rwiki/Data/PageSpec.coffee +31 -0
  893. data/spec/coffeescripts/Rwiki/Mask.coffee +6 -0
  894. data/spec/coffeescripts/Rwiki/TabPanelSpec.coffee +72 -0
  895. data/spec/coffeescripts/Rwiki/Tabs/PageTabSpec.coffee +7 -0
  896. data/spec/coffeescripts/Rwiki/Tree/MenuSpec.coffee +95 -0
  897. data/spec/coffeescripts/Rwiki/TreePanelSpec.coffee +115 -0
  898. data/spec/fixtures/Home.txt +1 -0
  899. data/spec/fixtures/Home/About.txt +1 -0
  900. data/spec/fixtures/Home/Development.txt +5 -0
  901. data/spec/fixtures/Home/Development/Databases.txt +4 -0
  902. data/spec/fixtures/Home/Development/Databases/MySQL.txt +5 -0
  903. data/{test/fixtures/pages/empty_folder/dummy → spec/fixtures/Home/Development/Databases/Oracle.txt} +0 -0
  904. data/{test/fixtures/pages/folder/subfolder/ruby.txt → spec/fixtures/Home/Development/Databases/Postgres.txt} +0 -0
  905. data/spec/fixtures/Home/Development/Programming Languages.txt +3 -0
  906. data/spec/fixtures/Home/Development/Programming Languages/Java.txt +1 -0
  907. data/test/fixtures/pages/folder/test 1.txt b/data/spec/fixtures/Home/Development/Programming → Languages/JavaScript.txt +0 -0
  908. data/test/fixtures/pages/subfolder/dummy b/data/spec/fixtures/Home/Development/Programming → Languages/Python.txt +0 -0
  909. data/spec/fixtures/Home/Development/Programming Languages/Ruby.txt +148 -0
  910. data/spec/fixtures/Home/Development/test 1.txt b/data/spec/fixtures/Home/Development/test → 1.txt +0 -0
  911. data/test/fixtures/pages/folder/test 2.txt b/data/spec/fixtures/Home/Development/test → 2.txt +0 -0
  912. data/{test/fixtures/pages/folder → spec/fixtures/Home/Development}/test.txt +0 -0
  913. data/spec/fixtures/Home/Personal stuff.txt b/data/spec/fixtures/Home/Personal → stuff.txt +0 -0
  914. data/spec/fixtures/Home/Personal stuff/Addresses.txt +1 -0
  915. data/spec/fixtures/Home/Personal stuff/Notes.txt b/data/spec/fixtures/Home/Personal → stuff/Notes.txt +0 -0
  916. data/spec/javascripts/support/jasmine.yml +10 -8
  917. data/spec/javascripts/support/jasmine_config.rb +55 -0
  918. data/spec/javascripts/support/jasmine_runner.rb +15 -4
  919. data/spec/rwiki/app_spec.rb +71 -0
  920. data/spec/rwiki/page_spec.rb +254 -0
  921. data/spec/rwiki/utils/file_helper_spec.rb +252 -0
  922. data/spec/rwiki/utils/textile_helper_spec.rb +73 -0
  923. data/spec/rwiki_spec.rb +22 -0
  924. data/spec/spec_helper.rb +30 -0
  925. data/spec/support/rwiki_macros.rb +26 -0
  926. data/spec/support/tmpdir_helper.rb +23 -0
  927. data/specs.watchr +57 -0
  928. data/views/index.erb +62 -3
  929. data/views/print.erb +1 -1
  930. metadata +918 -1053
  931. data/VERSION +0 -1
  932. data/features/editor.feature +0 -49
  933. data/features/rename_page.feature +0 -88
  934. data/features/step_definitions/common_transforms.rb +0 -5
  935. data/features/step_definitions/wait_steps.rb +0 -21
  936. data/lib/rwiki/models.rb +0 -7
  937. data/lib/rwiki/models/folder.rb +0 -62
  938. data/lib/rwiki/models/node.rb +0 -96
  939. data/lib/rwiki/models/page.rb +0 -110
  940. data/public/SpecRunner.html +0 -64
  941. data/public/jasmine/jasmine-html.js +0 -182
  942. data/public/jasmine/jasmine.css +0 -166
  943. data/public/jasmine/jasmine.js +0 -2421
  944. data/public/jasmine/json2.js +0 -478
  945. data/public/javascripts/Rwiki/EditorPanel.js +0 -45
  946. data/public/javascripts/Rwiki/FuzzyFinderDialog.js +0 -61
  947. data/public/javascripts/Rwiki/Node.js +0 -37
  948. data/public/javascripts/Rwiki/NodeManager.js +0 -177
  949. data/public/javascripts/Rwiki/TabPanel/PageTab.js +0 -49
  950. data/public/javascripts/Rwiki/TreePanel/Filter.js +0 -66
  951. data/public/javascripts/Rwiki/TreePanel/Loader.js +0 -24
  952. data/public/javascripts/Rwiki/TreePanel/Menu.js +0 -108
  953. data/public/javascripts/Rwiki/TreePanel/Node.js +0 -60
  954. data/public/javascripts/Rwiki/TreePanel/Toolbar.js +0 -44
  955. data/public/javascripts/vendor/ext/adapter/ext/ext-base-debug-w-comments.js +0 -3637
  956. data/public/javascripts/vendor/ext/adapter/ext/ext-base-debug.js +0 -2886
  957. data/public/javascripts/vendor/ext/adapter/ext/ext-base.js +0 -7
  958. data/public/javascripts/vendor/ext/adapter/prototype/ext-prototype-adapter-debug.js +0 -1826
  959. data/public/javascripts/vendor/ext/adapter/prototype/ext-prototype-adapter.js +0 -7
  960. data/public/javascripts/vendor/ext/adapter/yui/ext-yui-adapter-debug.js +0 -1592
  961. data/public/javascripts/vendor/ext/adapter/yui/ext-yui-adapter.js +0 -7
  962. data/public/javascripts/vendor/ext/ext-all-debug.js +0 -51256
  963. data/public/javascripts/vendor/jquery/jquery-1.4.2.min.js +0 -154
  964. data/public/resources/ext/charts.swf +0 -0
  965. data/public/resources/ext/css/README.txt +0 -6
  966. data/public/resources/ext/css/debug.css +0 -43
  967. data/public/resources/ext/css/ext-all-notheme.css +0 -5302
  968. data/public/resources/ext/css/reset-min.css +0 -7
  969. data/public/resources/ext/css/structure/borders.css +0 -54
  970. data/public/resources/ext/css/structure/box.css +0 -80
  971. data/public/resources/ext/css/structure/button.css +0 -445
  972. data/public/resources/ext/css/structure/combo.css +0 -45
  973. data/public/resources/ext/css/structure/core.css +0 -341
  974. data/public/resources/ext/css/structure/date-picker.css +0 -271
  975. data/public/resources/ext/css/structure/dd.css +0 -61
  976. data/public/resources/ext/css/structure/debug.css +0 -26
  977. data/public/resources/ext/css/structure/dialog.css +0 -59
  978. data/public/resources/ext/css/structure/editor.css +0 -92
  979. data/public/resources/ext/css/structure/form.css +0 -573
  980. data/public/resources/ext/css/structure/grid.css +0 -588
  981. data/public/resources/ext/css/structure/layout.css +0 -296
  982. data/public/resources/ext/css/structure/list-view.css +0 -86
  983. data/public/resources/ext/css/structure/menu.css +0 -245
  984. data/public/resources/ext/css/structure/panel-reset.css +0 -130
  985. data/public/resources/ext/css/structure/panel.css +0 -493
  986. data/public/resources/ext/css/structure/pivotgrid.css +0 -65
  987. data/public/resources/ext/css/structure/progress.css +0 -46
  988. data/public/resources/ext/css/structure/qtips.css +0 -153
  989. data/public/resources/ext/css/structure/reset.css +0 -13
  990. data/public/resources/ext/css/structure/resizable.css +0 -149
  991. data/public/resources/ext/css/structure/slider.css +0 -103
  992. data/public/resources/ext/css/structure/tabs.css +0 -392
  993. data/public/resources/ext/css/structure/toolbar.css +0 -246
  994. data/public/resources/ext/css/structure/tree.css +0 -218
  995. data/public/resources/ext/css/structure/window.css +0 -222
  996. data/public/resources/ext/css/theme-access/borders.css +0 -25
  997. data/public/resources/ext/css/theme-access/box.css +0 -74
  998. data/public/resources/ext/css/theme-access/button.css +0 -136
  999. data/public/resources/ext/css/theme-access/combo.css +0 -43
  1000. data/public/resources/ext/css/theme-access/core.css +0 -81
  1001. data/public/resources/ext/css/theme-access/date-picker.css +0 -145
  1002. data/public/resources/ext/css/theme-access/dd.css +0 -29
  1003. data/public/resources/ext/css/theme-access/debug.css +0 -24
  1004. data/public/resources/ext/css/theme-access/dialog.css +0 -34
  1005. data/public/resources/ext/css/theme-access/editor.css +0 -16
  1006. data/public/resources/ext/css/theme-access/form.css +0 -176
  1007. data/public/resources/ext/css/theme-access/grid.css +0 -288
  1008. data/public/resources/ext/css/theme-access/layout.css +0 -56
  1009. data/public/resources/ext/css/theme-access/list-view.css +0 -43
  1010. data/public/resources/ext/css/theme-access/menu.css +0 -79
  1011. data/public/resources/ext/css/theme-access/panel.css +0 -94
  1012. data/public/resources/ext/css/theme-access/progress.css +0 -35
  1013. data/public/resources/ext/css/theme-access/qtips.css +0 -44
  1014. data/public/resources/ext/css/theme-access/resizable.css +0 -44
  1015. data/public/resources/ext/css/theme-access/slider.css +0 -21
  1016. data/public/resources/ext/css/theme-access/tabs.css +0 -119
  1017. data/public/resources/ext/css/theme-access/toolbar.css +0 -120
  1018. data/public/resources/ext/css/theme-access/tree.css +0 -165
  1019. data/public/resources/ext/css/theme-access/window.css +0 -87
  1020. data/public/resources/ext/css/theme-gray/borders.css +0 -29
  1021. data/public/resources/ext/css/theme-gray/box.css +0 -74
  1022. data/public/resources/ext/css/theme-gray/button.css +0 -94
  1023. data/public/resources/ext/css/theme-gray/combo.css +0 -43
  1024. data/public/resources/ext/css/theme-gray/core.css +0 -83
  1025. data/public/resources/ext/css/theme-gray/date-picker.css +0 -143
  1026. data/public/resources/ext/css/theme-gray/dd.css +0 -29
  1027. data/public/resources/ext/css/theme-gray/debug.css +0 -24
  1028. data/public/resources/ext/css/theme-gray/dialog.css +0 -34
  1029. data/public/resources/ext/css/theme-gray/editor.css +0 -13
  1030. data/public/resources/ext/css/theme-gray/form.css +0 -117
  1031. data/public/resources/ext/css/theme-gray/grid.css +0 -276
  1032. data/public/resources/ext/css/theme-gray/layout.css +0 -53
  1033. data/public/resources/ext/css/theme-gray/list-view.css +0 -37
  1034. data/public/resources/ext/css/theme-gray/menu.css +0 -82
  1035. data/public/resources/ext/css/theme-gray/panel.css +0 -87
  1036. data/public/resources/ext/css/theme-gray/pivotgrid.css +0 -28
  1037. data/public/resources/ext/css/theme-gray/progress.css +0 -32
  1038. data/public/resources/ext/css/theme-gray/qtips.css +0 -44
  1039. data/public/resources/ext/css/theme-gray/resizable.css +0 -43
  1040. data/public/resources/ext/css/theme-gray/slider.css +0 -21
  1041. data/public/resources/ext/css/theme-gray/tabs.css +0 -127
  1042. data/public/resources/ext/css/theme-gray/toolbar.css +0 -95
  1043. data/public/resources/ext/css/theme-gray/tree.css +0 -157
  1044. data/public/resources/ext/css/theme-gray/window.css +0 -86
  1045. data/public/resources/ext/css/visual/borders.css +0 -25
  1046. data/public/resources/ext/css/visual/box.css +0 -74
  1047. data/public/resources/ext/css/visual/button.css +0 -94
  1048. data/public/resources/ext/css/visual/combo.css +0 -43
  1049. data/public/resources/ext/css/visual/core.css +0 -82
  1050. data/public/resources/ext/css/visual/date-picker.css +0 -143
  1051. data/public/resources/ext/css/visual/dd.css +0 -29
  1052. data/public/resources/ext/css/visual/debug.css +0 -24
  1053. data/public/resources/ext/css/visual/dialog.css +0 -34
  1054. data/public/resources/ext/css/visual/editor.css +0 -13
  1055. data/public/resources/ext/css/visual/form.css +0 -123
  1056. data/public/resources/ext/css/visual/grid.css +0 -277
  1057. data/public/resources/ext/css/visual/layout.css +0 -53
  1058. data/public/resources/ext/css/visual/list-view.css +0 -37
  1059. data/public/resources/ext/css/visual/menu.css +0 -87
  1060. data/public/resources/ext/css/visual/panel.css +0 -87
  1061. data/public/resources/ext/css/visual/pivotgrid.css +0 -28
  1062. data/public/resources/ext/css/visual/progress.css +0 -32
  1063. data/public/resources/ext/css/visual/qtips.css +0 -44
  1064. data/public/resources/ext/css/visual/resizable.css +0 -43
  1065. data/public/resources/ext/css/visual/slider.css +0 -21
  1066. data/public/resources/ext/css/visual/tabs.css +0 -127
  1067. data/public/resources/ext/css/visual/toolbar.css +0 -95
  1068. data/public/resources/ext/css/visual/tree.css +0 -152
  1069. data/public/resources/ext/css/visual/window.css +0 -86
  1070. data/public/resources/ext/css/xtheme-access.css +0 -1820
  1071. data/public/resources/ext/css/xtheme-blue.css +0 -1674
  1072. data/public/resources/ext/css/xtheme-gray.css +0 -1682
  1073. data/public/resources/ext/css/yourtheme.css +0 -1652
  1074. data/public/resources/ext/expressinstall.swf +0 -0
  1075. data/public/resources/ext/images/default/panel/tool-sprites.gif +0 -0
  1076. data/public/resources/ext/images/gray/grid/sort-hd.gif +0 -0
  1077. data/public/resources/ext/images/gray/panel/tool-sprites.gif +0 -0
  1078. data/public/resources/ext/images/gray/window/left-corners.pspimage +0 -0
  1079. data/public/resources/ext/resources.jsb +0 -507
  1080. data/public/resources/markitup/images/body.png +0 -0
  1081. data/public/resources/markitup/images/jaysalvat.png +0 -0
  1082. data/public/resources/markitup/images/markitup.png +0 -0
  1083. data/public/resources/markitup/images/style.css +0 -27
  1084. data/public/resources/markitup/sets/default/images/clean.png +0 -0
  1085. data/public/resources/markitup/sets/default/images/image.png +0 -0
  1086. data/public/resources/markitup/sets/default/set.js +0 -27
  1087. data/public/resources/markitup/sets/default/style.css +0 -27
  1088. data/public/resources/markitup/sets/textile/images/bold.png +0 -0
  1089. data/public/resources/markitup/sets/textile/images/italic.png +0 -0
  1090. data/public/resources/markitup/sets/textile/images/link.png +0 -0
  1091. data/public/resources/markitup/sets/textile/images/picture.png +0 -0
  1092. data/public/resources/markitup/sets/textile/images/preview.png +0 -0
  1093. data/public/resources/markitup/sets/textile/images/stroke.png +0 -0
  1094. data/public/resources/markitup/sets/textile/readme.txt +0 -11
  1095. data/public/resources/markitup/sets/textile/set.js +0 -40
  1096. data/public/resources/markitup/sets/textile/style.css +0 -60
  1097. data/public/resources/markitup/skins/simple/images/handle.png +0 -0
  1098. data/public/resources/markitup/skins/simple/images/menu.png +0 -0
  1099. data/public/resources/markitup/skins/simple/images/submenu.png +0 -0
  1100. data/public/resources/markitup/skins/simple/style.css +0 -118
  1101. data/public/resources/markitup/templates/preview.css +0 -5
  1102. data/public/resources/markitup/templates/preview.html +0 -11
  1103. data/public/stylesheets/markitup.css +0 -19
  1104. data/run_tests.sh +0 -1
  1105. data/script/server +0 -17
  1106. data/spec/javascripts/Rwiki/NodeManagerSpec.js +0 -8
  1107. data/spec/javascripts/Rwiki/TabPanel/PageTabSpec.js +0 -22
  1108. data/spec/javascripts/Rwiki/TabPanelSpec.js +0 -94
  1109. data/spec/javascripts/Rwiki/TreePanel/MenuSpec.js +0 -169
  1110. data/spec/javascripts/Rwiki/TreePanelSpec.js +0 -161
  1111. data/spec/javascripts/helpers/SpecHelper.js +0 -5
  1112. data/test/fixtures/pages/home.txt +0 -5
  1113. data/test/fixtures/pages/test.txt +0 -1
  1114. data/test/helper.rb +0 -22
  1115. data/test/rwiki/models/test_folder.rb +0 -206
  1116. data/test/rwiki/models/test_node.rb +0 -147
  1117. data/test/rwiki/models/test_page.rb +0 -110
  1118. data/test/rwiki/test_app.rb +0 -45
  1119. data/test/tmpdir_helper.rb +0 -21
  1120. data/tmp/fssm_test.rb +0 -13
  1121. data/views/layout.erb +0 -66
@@ -1,108 +0,0 @@
1
- Ext.ns('Rwiki.TreePanel');
2
-
3
- Rwiki.TreePanel.Menu = Ext.extend(Ext.menu.Menu, {
4
- constructor: function() {
5
- Ext.apply(this, {
6
- id: 'feeds-ctx',
7
- items: [{
8
- text: 'Create folder',
9
- id: 'create-folder',
10
- iconCls: 'icon-create-folder',
11
- scope: this,
12
- handler: this.onCreateFolder
13
- }, {
14
- text: 'Create page',
15
- id: 'create-page',
16
- iconCls: 'icon-create-page',
17
- scope: this,
18
- handler: this.onCreatePage
19
- }, '-', {
20
- text: 'Rename node',
21
- id: 'rename-node',
22
- iconCls: 'icon-rename-node',
23
- scope: this,
24
- handler: this.onRenameNode
25
- }, {
26
- text: 'Delete node',
27
- id: 'delete-node',
28
- iconCls: 'icon-delete-node',
29
- scope: this,
30
- handler: this.onDeleteNode
31
- }]
32
- });
33
-
34
- Rwiki.TreePanel.Menu.superclass.constructor.apply(this, arguments);
35
- },
36
-
37
- show: function(node, xy) {
38
- this.node = node;
39
- node.select();
40
-
41
- var isRoot = node.id == Rwiki.rootFolderName;
42
- this.setItemDisabled('delete-node', isRoot);
43
- this.setItemDisabled('rename-node', isRoot);
44
-
45
- var isPage = node.attributes.cls == 'page';
46
- this.setItemDisabled('create-folder', isPage);
47
- this.setItemDisabled('create-page', isPage);
48
-
49
- this.showAt(xy);
50
- },
51
-
52
- onCreateFolder: function() {
53
- var parentNode = this.node;
54
- if (parentNode.cls == 'file') return;
55
-
56
- Ext.MessageBox.prompt('Create folder', 'New folder name:', function(button, name) {
57
- if (button != 'ok') return;
58
-
59
- var parentPath = parentNode.getPath('baseName');
60
- Rwiki.NodeManager.getInstance().createFolder(parentPath, name);
61
- });
62
- },
63
-
64
- onCreatePage: function() {
65
- var parentNode = this.node;
66
- if (parentNode.cls == 'file') return;
67
-
68
- Ext.MessageBox.prompt('Create page', 'New page name:', function(button, name) {
69
- if (button != 'ok') return;
70
-
71
- var parentPath = parentNode.getPath('baseName');
72
- Rwiki.NodeManager.getInstance().createPage(parentPath, name);
73
- });
74
- },
75
-
76
- onRenameNode: function() {
77
- var node = this.node;
78
- var oldPath = node.getPath('baseName');
79
- var oldBaseName = node.text;
80
-
81
- var callback = function(button, newName) {
82
- if (button != 'ok') return;
83
- Rwiki.NodeManager.getInstance().renameNode(oldPath, newName);
84
- };
85
-
86
- Ext.MessageBox.prompt('Rename node', 'Enter a new name:', callback, this, false, oldBaseName);
87
- },
88
-
89
- onDeleteNode: function() {
90
- var node = this.node;
91
- var path = node.getPath('baseName');
92
-
93
- var callback = function(button) {
94
- if (button != 'yes') return;
95
- Rwiki.NodeManager.getInstance().deleteNode(path);
96
- };
97
-
98
- var message = 'Delete "' + path + '"?';
99
- Ext.MessageBox.confirm('Confirm', message, callback);
100
- },
101
-
102
- setItemDisabled: function(id, disabled) {
103
- var item = this.findById(id);
104
- if (item == null) return;
105
-
106
- item.setDisabled(disabled);
107
- }
108
- });
@@ -1,60 +0,0 @@
1
- Ext.ns('Rwiki.TreePanel');
2
-
3
- Rwiki.TreePanel.Node = Ext.extend(Ext.tree.AsyncTreeNode, {
4
- getPath: function() {
5
- var path = Rwiki.TreePanel.Node.superclass.getPath.call(this, 'baseName');
6
-
7
- // Remove fist '/' from path.
8
- return path.replace(/^\//, '');
9
- },
10
-
11
- setBaseName: function(baseName) {
12
- this.attributes.baseName = baseName;
13
- },
14
-
15
- getBaseName: function() {
16
- return this.attributes.baseName;
17
- },
18
-
19
- expandAll: function() {
20
- var nodes = [];
21
-
22
- this.bubble(function(n) {
23
- nodes.push(n);
24
- });
25
-
26
- nodes = nodes.reverse();
27
-
28
- for (var i = 0, len = nodes.length; i < len; i++) {
29
- var node = nodes[i];
30
- if (node.isExpandable()) {
31
- node.expand(false);
32
- }
33
- }
34
- },
35
-
36
- /**
37
- * Better version of cascade function.
38
- * It can iterate through collapsed nodes.
39
- * @see cascade
40
- */
41
- cascadeAll: function(fn, scope, args) {
42
- var wasCollapsed = this.isExpandable() && !this.isExpanded();
43
-
44
- if (wasCollapsed) {
45
- this.expand(false, false);
46
- }
47
-
48
- if (fn.apply(scope || this, args || [this]) !== false){
49
- var cs = this.childNodes;
50
- for (var i = 0, len = cs.length; i < len; i++) {
51
- cs[i].cascadeAll(fn, args);
52
- }
53
- }
54
-
55
- if (wasCollapsed) {
56
- this.collapse(false, false);
57
- }
58
- }
59
-
60
- });
@@ -1,44 +0,0 @@
1
- Ext.ns('Rwiki.TreePanel');
2
-
3
- Rwiki.TreePanel.Toolbar = Ext.extend(Ext.Toolbar, {
4
- constructor: function() {
5
- var self = this;
6
-
7
- var filterField = new Ext.form.TextField({
8
- width: 200,
9
- emptyText: 'Find a Page',
10
- enableKeyEvents: true,
11
- listeners: {
12
- keydown: {
13
- fn: function() {
14
- var text = this.getValue();
15
- self.fireEvent('filterFieldChanged', text);
16
- },
17
- buffer: 350
18
- }
19
- }
20
- });
21
-
22
- Ext.apply(this, {
23
- items: [
24
- filterField,
25
- {
26
- iconCls: 'icon-expand-all',
27
- tooltip: 'Expand All',
28
- handler: function() {
29
- self.fireEvent('expandAll');
30
- }
31
- }, {
32
- iconCls: 'icon-collapse-all',
33
- tooltip: 'Collapse All',
34
- handler: function() {
35
- self.fireEvent('collapseAll');
36
- }
37
- }]
38
- });
39
-
40
- Rwiki.TreePanel.Toolbar.superclass.constructor.apply(this, arguments);
41
-
42
- this.addEvents('filterFieldChanged', 'expandAll', 'collapseAll');
43
- }
44
- });
@@ -1,3637 +0,0 @@
1
- /*!
2
- * Ext JS Library 3.2.1
3
- * Copyright(c) 2006-2010 Ext JS, Inc.
4
- * licensing@extjs.com
5
- * http://www.extjs.com/license
6
- */
7
- // for old browsers
8
- window.undefined = window.undefined;
9
-
10
- /**
11
- * @class Ext
12
- * Ext core utilities and functions.
13
- * @singleton
14
- */
15
-
16
- Ext = {
17
- /**
18
- * The version of the framework
19
- * @type String
20
- */
21
- version : '3.2.1',
22
- versionDetail : {
23
- major: 3,
24
- minor: 2,
25
- patch: 1
26
- }
27
- };
28
-
29
- /**
30
- * Copies all the properties of config to obj.
31
- * @param {Object} obj The receiver of the properties
32
- * @param {Object} config The source of the properties
33
- * @param {Object} defaults A different object that will also be applied for default values
34
- * @return {Object} returns obj
35
- * @member Ext apply
36
- */
37
- Ext.apply = function(o, c, defaults){
38
- // no "this" reference for friendly out of scope calls
39
- if(defaults){
40
- Ext.apply(o, defaults);
41
- }
42
- if(o && c && typeof c == 'object'){
43
- for(var p in c){
44
- o[p] = c[p];
45
- }
46
- }
47
- return o;
48
- };
49
-
50
- (function(){
51
- var idSeed = 0,
52
- toString = Object.prototype.toString,
53
- ua = navigator.userAgent.toLowerCase(),
54
- check = function(r){
55
- return r.test(ua);
56
- },
57
- DOC = document,
58
- isStrict = DOC.compatMode == "CSS1Compat",
59
- isOpera = check(/opera/),
60
- isChrome = check(/\bchrome\b/),
61
- isWebKit = check(/webkit/),
62
- isSafari = !isChrome && check(/safari/),
63
- isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2
64
- isSafari3 = isSafari && check(/version\/3/),
65
- isSafari4 = isSafari && check(/version\/4/),
66
- isIE = !isOpera && check(/msie/),
67
- isIE7 = isIE && check(/msie 7/),
68
- isIE8 = isIE && check(/msie 8/),
69
- isIE6 = isIE && !isIE7 && !isIE8,
70
- isGecko = !isWebKit && check(/gecko/),
71
- isGecko2 = isGecko && check(/rv:1\.8/),
72
- isGecko3 = isGecko && check(/rv:1\.9/),
73
- isBorderBox = isIE && !isStrict,
74
- isWindows = check(/windows|win32/),
75
- isMac = check(/macintosh|mac os x/),
76
- isAir = check(/adobeair/),
77
- isLinux = check(/linux/),
78
- isSecure = /^https/i.test(window.location.protocol);
79
-
80
- // remove css image flicker
81
- if(isIE6){
82
- try{
83
- DOC.execCommand("BackgroundImageCache", false, true);
84
- }catch(e){}
85
- }
86
-
87
- Ext.apply(Ext, {
88
- /**
89
- * URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
90
- * the IE insecure content warning (<tt>'about:blank'</tt>, except for IE in secure mode, which is <tt>'javascript:""'</tt>).
91
- * @type String
92
- */
93
- SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank',
94
- /**
95
- * True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode
96
- * @type Boolean
97
- */
98
- isStrict : isStrict,
99
- /**
100
- * True if the page is running over SSL
101
- * @type Boolean
102
- */
103
- isSecure : isSecure,
104
- /**
105
- * True when the document is fully initialized and ready for action
106
- * @type Boolean
107
- */
108
- isReady : false,
109
-
110
- /**
111
- * True if the {@link Ext.Fx} Class is available
112
- * @type Boolean
113
- * @property enableFx
114
- */
115
-
116
- /**
117
- * True to automatically uncache orphaned Ext.Elements periodically (defaults to true)
118
- * @type Boolean
119
- */
120
- enableGarbageCollector : true,
121
-
122
- /**
123
- * True to automatically purge event listeners during garbageCollection (defaults to false).
124
- * @type Boolean
125
- */
126
- enableListenerCollection : false,
127
-
128
- /**
129
- * EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
130
- * Currently not optimized for performance.
131
- * @type Boolean
132
- */
133
- enableNestedListenerRemoval : false,
134
-
135
- /**
136
- * Indicates whether to use native browser parsing for JSON methods.
137
- * This option is ignored if the browser does not support native JSON methods.
138
- * <b>Note: Native JSON methods will not work with objects that have functions.
139
- * Also, property names must be quoted, otherwise the data will not parse.</b> (Defaults to false)
140
- * @type Boolean
141
- */
142
- USE_NATIVE_JSON : false,
143
-
144
- /**
145
- * Copies all the properties of config to obj if they don't already exist.
146
- * @param {Object} obj The receiver of the properties
147
- * @param {Object} config The source of the properties
148
- * @return {Object} returns obj
149
- */
150
- applyIf : function(o, c){
151
- if(o){
152
- for(var p in c){
153
- if(!Ext.isDefined(o[p])){
154
- o[p] = c[p];
155
- }
156
- }
157
- }
158
- return o;
159
- },
160
-
161
- /**
162
- * Generates unique ids. If the element already has an id, it is unchanged
163
- * @param {Mixed} el (optional) The element to generate an id for
164
- * @param {String} prefix (optional) Id prefix (defaults "ext-gen")
165
- * @return {String} The generated Id.
166
- */
167
- id : function(el, prefix){
168
- el = Ext.getDom(el, true) || {};
169
- if (!el.id) {
170
- el.id = (prefix || "ext-gen") + (++idSeed);
171
- }
172
- return el.id;
173
- },
174
-
175
- /**
176
- * <p>Extends one class to create a subclass and optionally overrides members with the passed literal. This method
177
- * also adds the function "override()" to the subclass that can be used to override members of the class.</p>
178
- * For example, to create a subclass of Ext GridPanel:
179
- * <pre><code>
180
- MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
181
- constructor: function(config) {
182
-
183
- // Create configuration for this Grid.
184
- var store = new Ext.data.Store({...});
185
- var colModel = new Ext.grid.ColumnModel({...});
186
-
187
- // Create a new config object containing our computed properties
188
- // *plus* whatever was in the config parameter.
189
- config = Ext.apply({
190
- store: store,
191
- colModel: colModel
192
- }, config);
193
-
194
- MyGridPanel.superclass.constructor.call(this, config);
195
-
196
- // Your postprocessing here
197
- },
198
-
199
- yourMethod: function() {
200
- // etc.
201
- }
202
- });
203
- </code></pre>
204
- *
205
- * <p>This function also supports a 3-argument call in which the subclass's constructor is
206
- * passed as an argument. In this form, the parameters are as follows:</p>
207
- * <div class="mdetail-params"><ul>
208
- * <li><code>subclass</code> : Function <div class="sub-desc">The subclass constructor.</div></li>
209
- * <li><code>superclass</code> : Function <div class="sub-desc">The constructor of class being extended</div></li>
210
- * <li><code>overrides</code> : Object <div class="sub-desc">A literal with members which are copied into the subclass's
211
- * prototype, and are therefore shared among all instances of the new class.</div></li>
212
- * </ul></div>
213
- *
214
- * @param {Function} superclass The constructor of class being extended.
215
- * @param {Object} overrides <p>A literal with members which are copied into the subclass's
216
- * prototype, and are therefore shared between all instances of the new class.</p>
217
- * <p>This may contain a special member named <tt><b>constructor</b></tt>. This is used
218
- * to define the constructor of the new class, and is returned. If this property is
219
- * <i>not</i> specified, a constructor is generated and returned which just calls the
220
- * superclass's constructor passing on its parameters.</p>
221
- * <p><b>It is essential that you call the superclass constructor in any provided constructor. See example code.</b></p>
222
- * @return {Function} The subclass constructor from the <code>overrides</code> parameter, or a generated one if not provided.
223
- */
224
- extend : function(){
225
- // inline overrides
226
- var io = function(o){
227
- for(var m in o){
228
- this[m] = o[m];
229
- }
230
- };
231
- var oc = Object.prototype.constructor;
232
-
233
- return function(sb, sp, overrides){
234
- if(typeof sp == 'object'){
235
- overrides = sp;
236
- sp = sb;
237
- sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);};
238
- }
239
- var F = function(){},
240
- sbp,
241
- spp = sp.prototype;
242
-
243
- F.prototype = spp;
244
- sbp = sb.prototype = new F();
245
- sbp.constructor=sb;
246
- sb.superclass=spp;
247
- if(spp.constructor == oc){
248
- spp.constructor=sp;
249
- }
250
- sb.override = function(o){
251
- Ext.override(sb, o);
252
- };
253
- sbp.superclass = sbp.supr = (function(){
254
- return spp;
255
- });
256
- sbp.override = io;
257
- Ext.override(sb, overrides);
258
- sb.extend = function(o){return Ext.extend(sb, o);};
259
- return sb;
260
- };
261
- }(),
262
-
263
- /**
264
- * Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
265
- * Usage:<pre><code>
266
- Ext.override(MyClass, {
267
- newMethod1: function(){
268
- // etc.
269
- },
270
- newMethod2: function(foo){
271
- // etc.
272
- }
273
- });
274
- </code></pre>
275
- * @param {Object} origclass The class to override
276
- * @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal
277
- * containing one or more methods.
278
- * @method override
279
- */
280
- override : function(origclass, overrides){
281
- if(overrides){
282
- var p = origclass.prototype;
283
- Ext.apply(p, overrides);
284
- if(Ext.isIE && overrides.hasOwnProperty('toString')){
285
- p.toString = overrides.toString;
286
- }
287
- }
288
- },
289
-
290
- /**
291
- * Creates namespaces to be used for scoping variables and classes so that they are not global.
292
- * Specifying the last node of a namespace implicitly creates all other nodes. Usage:
293
- * <pre><code>
294
- Ext.namespace('Company', 'Company.data');
295
- Ext.namespace('Company.data'); // equivalent and preferable to above syntax
296
- Company.Widget = function() { ... }
297
- Company.data.CustomStore = function(config) { ... }
298
- </code></pre>
299
- * @param {String} namespace1
300
- * @param {String} namespace2
301
- * @param {String} etc
302
- * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)
303
- * @method namespace
304
- */
305
- namespace : function(){
306
- var o, d;
307
- Ext.each(arguments, function(v) {
308
- d = v.split(".");
309
- o = window[d[0]] = window[d[0]] || {};
310
- Ext.each(d.slice(1), function(v2){
311
- o = o[v2] = o[v2] || {};
312
- });
313
- });
314
- return o;
315
- },
316
-
317
- /**
318
- * Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value.
319
- * @param {Object} o
320
- * @param {String} pre (optional) A prefix to add to the url encoded string
321
- * @return {String}
322
- */
323
- urlEncode : function(o, pre){
324
- var empty,
325
- buf = [],
326
- e = encodeURIComponent;
327
-
328
- Ext.iterate(o, function(key, item){
329
- empty = Ext.isEmpty(item);
330
- Ext.each(empty ? key : item, function(val){
331
- buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : '');
332
- });
333
- });
334
- if(!pre){
335
- buf.shift();
336
- pre = '';
337
- }
338
- return pre + buf.join('');
339
- },
340
-
341
- /**
342
- * Takes an encoded URL and and converts it to an object. Example: <pre><code>
343
- Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
344
- Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
345
- </code></pre>
346
- * @param {String} string
347
- * @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false).
348
- * @return {Object} A literal with members
349
- */
350
- urlDecode : function(string, overwrite){
351
- if(Ext.isEmpty(string)){
352
- return {};
353
- }
354
- var obj = {},
355
- pairs = string.split('&'),
356
- d = decodeURIComponent,
357
- name,
358
- value;
359
- Ext.each(pairs, function(pair) {
360
- pair = pair.split('=');
361
- name = d(pair[0]);
362
- value = d(pair[1]);
363
- obj[name] = overwrite || !obj[name] ? value :
364
- [].concat(obj[name]).concat(value);
365
- });
366
- return obj;
367
- },
368
-
369
- /**
370
- * Appends content to the query string of a URL, handling logic for whether to place
371
- * a question mark or ampersand.
372
- * @param {String} url The URL to append to.
373
- * @param {String} s The content to append to the URL.
374
- * @return (String) The resulting URL
375
- */
376
- urlAppend : function(url, s){
377
- if(!Ext.isEmpty(s)){
378
- return url + (url.indexOf('?') === -1 ? '?' : '&') + s;
379
- }
380
- return url;
381
- },
382
-
383
- /**
384
- * Converts any iterable (numeric indices and a length property) into a true array
385
- * Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
386
- * For strings, use this instead: "abc".match(/./g) => [a,b,c];
387
- * @param {Iterable} the iterable object to be turned into a true Array.
388
- * @return (Array) array
389
- */
390
- toArray : function(){
391
- return isIE ?
392
- function(a, i, j, res){
393
- res = [];
394
- for(var x = 0, len = a.length; x < len; x++) {
395
- res.push(a[x]);
396
- }
397
- return res.slice(i || 0, j || res.length);
398
- } :
399
- function(a, i, j){
400
- return Array.prototype.slice.call(a, i || 0, j || a.length);
401
- }
402
- }(),
403
-
404
- isIterable : function(v){
405
- //check for array or arguments
406
- if(Ext.isArray(v) || v.callee){
407
- return true;
408
- }
409
- //check for node list type
410
- if(/NodeList|HTMLCollection/.test(toString.call(v))){
411
- return true;
412
- }
413
- //NodeList has an item and length property
414
- //IXMLDOMNodeList has nextNode method, needs to be checked first.
415
- return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length));
416
- },
417
-
418
- /**
419
- * Iterates an array calling the supplied function.
420
- * @param {Array/NodeList/Mixed} array The array to be iterated. If this
421
- * argument is not really an array, the supplied function is called once.
422
- * @param {Function} fn The function to be called with each item. If the
423
- * supplied function returns false, iteration stops and this method returns
424
- * the current <code>index</code>. This function is called with
425
- * the following arguments:
426
- * <div class="mdetail-params"><ul>
427
- * <li><code>item</code> : <i>Mixed</i>
428
- * <div class="sub-desc">The item at the current <code>index</code>
429
- * in the passed <code>array</code></div></li>
430
- * <li><code>index</code> : <i>Number</i>
431
- * <div class="sub-desc">The current index within the array</div></li>
432
- * <li><code>allItems</code> : <i>Array</i>
433
- * <div class="sub-desc">The <code>array</code> passed as the first
434
- * argument to <code>Ext.each</code>.</div></li>
435
- * </ul></div>
436
- * @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed.
437
- * Defaults to the <code>item</code> at the current <code>index</code>
438
- * within the passed <code>array</code>.
439
- * @return See description for the fn parameter.
440
- */
441
- each : function(array, fn, scope){
442
- if(Ext.isEmpty(array, true)){
443
- return;
444
- }
445
- if(!Ext.isIterable(array) || Ext.isPrimitive(array)){
446
- array = [array];
447
- }
448
- for(var i = 0, len = array.length; i < len; i++){
449
- if(fn.call(scope || array[i], array[i], i, array) === false){
450
- return i;
451
- };
452
- }
453
- },
454
-
455
- /**
456
- * Iterates either the elements in an array, or each of the properties in an object.
457
- * <b>Note</b>: If you are only iterating arrays, it is better to call {@link #each}.
458
- * @param {Object/Array} object The object or array to be iterated
459
- * @param {Function} fn The function to be called for each iteration.
460
- * The iteration will stop if the supplied function returns false, or
461
- * all array elements / object properties have been covered. The signature
462
- * varies depending on the type of object being interated:
463
- * <div class="mdetail-params"><ul>
464
- * <li>Arrays : <tt>(Object item, Number index, Array allItems)</tt>
465
- * <div class="sub-desc">
466
- * When iterating an array, the supplied function is called with each item.</div></li>
467
- * <li>Objects : <tt>(String key, Object value, Object)</tt>
468
- * <div class="sub-desc">
469
- * When iterating an object, the supplied function is called with each key-value pair in
470
- * the object, and the iterated object</div></li>
471
- * </ul></div>
472
- * @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed. Defaults to
473
- * the <code>object</code> being iterated.
474
- */
475
- iterate : function(obj, fn, scope){
476
- if(Ext.isEmpty(obj)){
477
- return;
478
- }
479
- if(Ext.isIterable(obj)){
480
- Ext.each(obj, fn, scope);
481
- return;
482
- }else if(typeof obj == 'object'){
483
- for(var prop in obj){
484
- if(obj.hasOwnProperty(prop)){
485
- if(fn.call(scope || obj, prop, obj[prop], obj) === false){
486
- return;
487
- };
488
- }
489
- }
490
- }
491
- },
492
-
493
- /**
494
- * Return the dom node for the passed String (id), dom node, or Ext.Element.
495
- * Optional 'strict' flag is needed for IE since it can return 'name' and
496
- * 'id' elements by using getElementById.
497
- * Here are some examples:
498
- * <pre><code>
499
- // gets dom node based on id
500
- var elDom = Ext.getDom('elId');
501
- // gets dom node based on the dom node
502
- var elDom1 = Ext.getDom(elDom);
503
-
504
- // If we don&#39;t know if we are working with an
505
- // Ext.Element or a dom node use Ext.getDom
506
- function(el){
507
- var dom = Ext.getDom(el);
508
- // do something with the dom node
509
- }
510
- * </code></pre>
511
- * <b>Note</b>: the dom node to be found actually needs to exist (be rendered, etc)
512
- * when this method is called to be successful.
513
- * @param {Mixed} el
514
- * @return HTMLElement
515
- */
516
- getDom : function(el, strict){
517
- if(!el || !DOC){
518
- return null;
519
- }
520
- if (el.dom){
521
- return el.dom;
522
- } else {
523
- if (typeof el == 'string') {
524
- var e = DOC.getElementById(el);
525
- // IE returns elements with the 'name' and 'id' attribute.
526
- // we do a strict check to return the element with only the id attribute
527
- if (e && isIE && strict) {
528
- if (el == e.getAttribute('id')) {
529
- return e;
530
- } else {
531
- return null;
532
- }
533
- }
534
- return e;
535
- } else {
536
- return el;
537
- }
538
- }
539
- },
540
-
541
- /**
542
- * Returns the current document body as an {@link Ext.Element}.
543
- * @return Ext.Element The document body
544
- */
545
- getBody : function(){
546
- return Ext.get(DOC.body || DOC.documentElement);
547
- },
548
-
549
- /**
550
- * Removes a DOM node from the document.
551
- */
552
- /**
553
- * <p>Removes this element from the document, removes all DOM event listeners, and deletes the cache reference.
554
- * All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is
555
- * <code>true</code>, then DOM event listeners are also removed from all child nodes. The body node
556
- * will be ignored if passed in.</p>
557
- * @param {HTMLElement} node The node to remove
558
- */
559
- removeNode : isIE && !isIE8 ? function(){
560
- var d;
561
- return function(n){
562
- if(n && n.tagName != 'BODY'){
563
- (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n);
564
- d = d || DOC.createElement('div');
565
- d.appendChild(n);
566
- d.innerHTML = '';
567
- delete Ext.elCache[n.id];
568
- }
569
- }
570
- }() : function(n){
571
- if(n && n.parentNode && n.tagName != 'BODY'){
572
- (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n);
573
- n.parentNode.removeChild(n);
574
- delete Ext.elCache[n.id];
575
- }
576
- },
577
-
578
- /**
579
- * <p>Returns true if the passed value is empty.</p>
580
- * <p>The value is deemed to be empty if it is<div class="mdetail-params"><ul>
581
- * <li>null</li>
582
- * <li>undefined</li>
583
- * <li>an empty array</li>
584
- * <li>a zero length string (Unless the <tt>allowBlank</tt> parameter is <tt>true</tt>)</li>
585
- * </ul></div>
586
- * @param {Mixed} value The value to test
587
- * @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false)
588
- * @return {Boolean}
589
- */
590
- isEmpty : function(v, allowBlank){
591
- return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false);
592
- },
593
-
594
- /**
595
- * Returns true if the passed value is a JavaScript array, otherwise false.
596
- * @param {Mixed} value The value to test
597
- * @return {Boolean}
598
- */
599
- isArray : function(v){
600
- return toString.apply(v) === '[object Array]';
601
- },
602
-
603
- /**
604
- * Returns true if the passed object is a JavaScript date object, otherwise false.
605
- * @param {Object} object The object to test
606
- * @return {Boolean}
607
- */
608
- isDate : function(v){
609
- return toString.apply(v) === '[object Date]';
610
- },
611
-
612
- /**
613
- * Returns true if the passed value is a JavaScript Object, otherwise false.
614
- * @param {Mixed} value The value to test
615
- * @return {Boolean}
616
- */
617
- isObject : function(v){
618
- return !!v && Object.prototype.toString.call(v) === '[object Object]';
619
- },
620
-
621
- /**
622
- * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean.
623
- * @param {Mixed} value The value to test
624
- * @return {Boolean}
625
- */
626
- isPrimitive : function(v){
627
- return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v);
628
- },
629
-
630
- /**
631
- * Returns true if the passed value is a JavaScript Function, otherwise false.
632
- * @param {Mixed} value The value to test
633
- * @return {Boolean}
634
- */
635
- isFunction : function(v){
636
- return toString.apply(v) === '[object Function]';
637
- },
638
-
639
- /**
640
- * Returns true if the passed value is a number. Returns false for non-finite numbers.
641
- * @param {Mixed} value The value to test
642
- * @return {Boolean}
643
- */
644
- isNumber : function(v){
645
- return typeof v === 'number' && isFinite(v);
646
- },
647
-
648
- /**
649
- * Returns true if the passed value is a string.
650
- * @param {Mixed} value The value to test
651
- * @return {Boolean}
652
- */
653
- isString : function(v){
654
- return typeof v === 'string';
655
- },
656
-
657
- /**
658
- * Returns true if the passed value is a boolean.
659
- * @param {Mixed} value The value to test
660
- * @return {Boolean}
661
- */
662
- isBoolean : function(v){
663
- return typeof v === 'boolean';
664
- },
665
-
666
- /**
667
- * Returns true if the passed value is an HTMLElement
668
- * @param {Mixed} value The value to test
669
- * @return {Boolean}
670
- */
671
- isElement : function(v) {
672
- return v ? !!v.tagName : false;
673
- },
674
-
675
- /**
676
- * Returns true if the passed value is not undefined.
677
- * @param {Mixed} value The value to test
678
- * @return {Boolean}
679
- */
680
- isDefined : function(v){
681
- return typeof v !== 'undefined';
682
- },
683
-
684
- /**
685
- * True if the detected browser is Opera.
686
- * @type Boolean
687
- */
688
- isOpera : isOpera,
689
- /**
690
- * True if the detected browser uses WebKit.
691
- * @type Boolean
692
- */
693
- isWebKit : isWebKit,
694
- /**
695
- * True if the detected browser is Chrome.
696
- * @type Boolean
697
- */
698
- isChrome : isChrome,
699
- /**
700
- * True if the detected browser is Safari.
701
- * @type Boolean
702
- */
703
- isSafari : isSafari,
704
- /**
705
- * True if the detected browser is Safari 3.x.
706
- * @type Boolean
707
- */
708
- isSafari3 : isSafari3,
709
- /**
710
- * True if the detected browser is Safari 4.x.
711
- * @type Boolean
712
- */
713
- isSafari4 : isSafari4,
714
- /**
715
- * True if the detected browser is Safari 2.x.
716
- * @type Boolean
717
- */
718
- isSafari2 : isSafari2,
719
- /**
720
- * True if the detected browser is Internet Explorer.
721
- * @type Boolean
722
- */
723
- isIE : isIE,
724
- /**
725
- * True if the detected browser is Internet Explorer 6.x.
726
- * @type Boolean
727
- */
728
- isIE6 : isIE6,
729
- /**
730
- * True if the detected browser is Internet Explorer 7.x.
731
- * @type Boolean
732
- */
733
- isIE7 : isIE7,
734
- /**
735
- * True if the detected browser is Internet Explorer 8.x.
736
- * @type Boolean
737
- */
738
- isIE8 : isIE8,
739
- /**
740
- * True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox).
741
- * @type Boolean
742
- */
743
- isGecko : isGecko,
744
- /**
745
- * True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x).
746
- * @type Boolean
747
- */
748
- isGecko2 : isGecko2,
749
- /**
750
- * True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x).
751
- * @type Boolean
752
- */
753
- isGecko3 : isGecko3,
754
- /**
755
- * True if the detected browser is Internet Explorer running in non-strict mode.
756
- * @type Boolean
757
- */
758
- isBorderBox : isBorderBox,
759
- /**
760
- * True if the detected platform is Linux.
761
- * @type Boolean
762
- */
763
- isLinux : isLinux,
764
- /**
765
- * True if the detected platform is Windows.
766
- * @type Boolean
767
- */
768
- isWindows : isWindows,
769
- /**
770
- * True if the detected platform is Mac OS.
771
- * @type Boolean
772
- */
773
- isMac : isMac,
774
- /**
775
- * True if the detected platform is Adobe Air.
776
- * @type Boolean
777
- */
778
- isAir : isAir
779
- });
780
-
781
- /**
782
- * Creates namespaces to be used for scoping variables and classes so that they are not global.
783
- * Specifying the last node of a namespace implicitly creates all other nodes. Usage:
784
- * <pre><code>
785
- Ext.namespace('Company', 'Company.data');
786
- Ext.namespace('Company.data'); // equivalent and preferable to above syntax
787
- Company.Widget = function() { ... }
788
- Company.data.CustomStore = function(config) { ... }
789
- </code></pre>
790
- * @param {String} namespace1
791
- * @param {String} namespace2
792
- * @param {String} etc
793
- * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)
794
- * @method ns
795
- */
796
- Ext.ns = Ext.namespace;
797
- })();
798
-
799
- Ext.ns("Ext.util", "Ext.lib", "Ext.data");
800
-
801
- Ext.elCache = {};
802
-
803
- /**
804
- * @class Function
805
- * These functions are available on every Function object (any JavaScript function).
806
- */
807
- Ext.apply(Function.prototype, {
808
- /**
809
- * Creates an interceptor function. The passed function is called before the original one. If it returns false,
810
- * the original one is not called. The resulting function returns the results of the original function.
811
- * The passed function is called with the parameters of the original function. Example usage:
812
- * <pre><code>
813
- var sayHi = function(name){
814
- alert('Hi, ' + name);
815
- }
816
-
817
- sayHi('Fred'); // alerts "Hi, Fred"
818
-
819
- // create a new function that validates input without
820
- // directly modifying the original function:
821
- var sayHiToFriend = sayHi.createInterceptor(function(name){
822
- return name == 'Brian';
823
- });
824
-
825
- sayHiToFriend('Fred'); // no alert
826
- sayHiToFriend('Brian'); // alerts "Hi, Brian"
827
- </code></pre>
828
- * @param {Function} fcn The function to call before the original
829
- * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the passed function is executed.
830
- * <b>If omitted, defaults to the scope in which the original function is called or the browser window.</b>
831
- * @return {Function} The new function
832
- */
833
- createInterceptor : function(fcn, scope){
834
- var method = this;
835
- return !Ext.isFunction(fcn) ?
836
- this :
837
- function() {
838
- var me = this,
839
- args = arguments;
840
- fcn.target = me;
841
- fcn.method = method;
842
- return (fcn.apply(scope || me || window, args) !== false) ?
843
- method.apply(me || window, args) :
844
- null;
845
- };
846
- },
847
-
848
- /**
849
- * Creates a callback that passes arguments[0], arguments[1], arguments[2], ...
850
- * Call directly on any function. Example: <code>myFunction.createCallback(arg1, arg2)</code>
851
- * Will create a function that is bound to those 2 args. <b>If a specific scope is required in the
852
- * callback, use {@link #createDelegate} instead.</b> The function returned by createCallback always
853
- * executes in the window scope.
854
- * <p>This method is required when you want to pass arguments to a callback function. If no arguments
855
- * are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn).
856
- * However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function
857
- * would simply execute immediately when the code is parsed. Example usage:
858
- * <pre><code>
859
- var sayHi = function(name){
860
- alert('Hi, ' + name);
861
- }
862
-
863
- // clicking the button alerts "Hi, Fred"
864
- new Ext.Button({
865
- text: 'Say Hi',
866
- renderTo: Ext.getBody(),
867
- handler: sayHi.createCallback('Fred')
868
- });
869
- </code></pre>
870
- * @return {Function} The new function
871
- */
872
- createCallback : function(/*args...*/){
873
- // make args available, in function below
874
- var args = arguments,
875
- method = this;
876
- return function() {
877
- return method.apply(window, args);
878
- };
879
- },
880
-
881
- /**
882
- * Creates a delegate (callback) that sets the scope to obj.
883
- * Call directly on any function. Example: <code>this.myFunction.createDelegate(this, [arg1, arg2])</code>
884
- * Will create a function that is automatically scoped to obj so that the <tt>this</tt> variable inside the
885
- * callback points to obj. Example usage:
886
- * <pre><code>
887
- var sayHi = function(name){
888
- // Note this use of "this.text" here. This function expects to
889
- // execute within a scope that contains a text property. In this
890
- // example, the "this" variable is pointing to the btn object that
891
- // was passed in createDelegate below.
892
- alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
893
- }
894
-
895
- var btn = new Ext.Button({
896
- text: 'Say Hi',
897
- renderTo: Ext.getBody()
898
- });
899
-
900
- // This callback will execute in the scope of the
901
- // button instance. Clicking the button alerts
902
- // "Hi, Fred. You clicked the "Say Hi" button."
903
- btn.on('click', sayHi.createDelegate(btn, ['Fred']));
904
- </code></pre>
905
- * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.
906
- * <b>If omitted, defaults to the browser window.</b>
907
- * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)
908
- * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,
909
- * if a number the args are inserted at the specified position
910
- * @return {Function} The new function
911
- */
912
- createDelegate : function(obj, args, appendArgs){
913
- var method = this;
914
- return function() {
915
- var callArgs = args || arguments;
916
- if (appendArgs === true){
917
- callArgs = Array.prototype.slice.call(arguments, 0);
918
- callArgs = callArgs.concat(args);
919
- }else if (Ext.isNumber(appendArgs)){
920
- callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first
921
- var applyArgs = [appendArgs, 0].concat(args); // create method call params
922
- Array.prototype.splice.apply(callArgs, applyArgs); // splice them in
923
- }
924
- return method.apply(obj || window, callArgs);
925
- };
926
- },
927
-
928
- /**
929
- * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage:
930
- * <pre><code>
931
- var sayHi = function(name){
932
- alert('Hi, ' + name);
933
- }
934
-
935
- // executes immediately:
936
- sayHi('Fred');
937
-
938
- // executes after 2 seconds:
939
- sayHi.defer(2000, this, ['Fred']);
940
-
941
- // this syntax is sometimes useful for deferring
942
- // execution of an anonymous function:
943
- (function(){
944
- alert('Anonymous');
945
- }).defer(100);
946
- </code></pre>
947
- * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately)
948
- * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.
949
- * <b>If omitted, defaults to the browser window.</b>
950
- * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)
951
- * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,
952
- * if a number the args are inserted at the specified position
953
- * @return {Number} The timeout id that can be used with clearTimeout
954
- */
955
- defer : function(millis, obj, args, appendArgs){
956
- var fn = this.createDelegate(obj, args, appendArgs);
957
- if(millis > 0){
958
- return setTimeout(fn, millis);
959
- }
960
- fn();
961
- return 0;
962
- }
963
- });
964
-
965
- /**
966
- * @class String
967
- * These functions are available on every String object.
968
- */
969
- Ext.applyIf(String, {
970
- /**
971
- * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each
972
- * token must be unique, and must increment in the format {0}, {1}, etc. Example usage:
973
- * <pre><code>
974
- var cls = 'my-class', text = 'Some text';
975
- var s = String.format('&lt;div class="{0}">{1}&lt;/div>', cls, text);
976
- // s now contains the string: '&lt;div class="my-class">Some text&lt;/div>'
977
- * </code></pre>
978
- * @param {String} string The tokenized string to be formatted
979
- * @param {String} value1 The value to replace token {0}
980
- * @param {String} value2 Etc...
981
- * @return {String} The formatted string
982
- * @static
983
- */
984
- format : function(format){
985
- var args = Ext.toArray(arguments, 1);
986
- return format.replace(/\{(\d+)\}/g, function(m, i){
987
- return args[i];
988
- });
989
- }
990
- });
991
-
992
- /**
993
- * @class Array
994
- */
995
- Ext.applyIf(Array.prototype, {
996
- /**
997
- * Checks whether or not the specified object exists in the array.
998
- * @param {Object} o The object to check for
999
- * @param {Number} from (Optional) The index at which to begin the search
1000
- * @return {Number} The index of o in the array (or -1 if it is not found)
1001
- */
1002
- indexOf : function(o, from){
1003
- var len = this.length;
1004
- from = from || 0;
1005
- from += (from < 0) ? len : 0;
1006
- for (; from < len; ++from){
1007
- if(this[from] === o){
1008
- return from;
1009
- }
1010
- }
1011
- return -1;
1012
- },
1013
-
1014
- /**
1015
- * Removes the specified object from the array. If the object is not found nothing happens.
1016
- * @param {Object} o The object to remove
1017
- * @return {Array} this array
1018
- */
1019
- remove : function(o){
1020
- var index = this.indexOf(o);
1021
- if(index != -1){
1022
- this.splice(index, 1);
1023
- }
1024
- return this;
1025
- }
1026
- });
1027
- /**
1028
- * @class Ext
1029
- */
1030
-
1031
- Ext.ns("Ext.grid", "Ext.list", "Ext.dd", "Ext.tree", "Ext.form", "Ext.menu",
1032
- "Ext.state", "Ext.layout", "Ext.app", "Ext.ux", "Ext.chart", "Ext.direct");
1033
- /**
1034
- * Namespace alloted for extensions to the framework.
1035
- * @property ux
1036
- * @type Object
1037
- */
1038
-
1039
- Ext.apply(Ext, function(){
1040
- var E = Ext,
1041
- idSeed = 0,
1042
- scrollWidth = null;
1043
-
1044
- return {
1045
- /**
1046
- * A reusable empty function
1047
- * @property
1048
- * @type Function
1049
- */
1050
- emptyFn : function(){},
1051
-
1052
- /**
1053
- * URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
1054
- * In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server.
1055
- * For other browsers it uses an inline data URL.
1056
- * @type String
1057
- */
1058
- BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 || Ext.isAir ?
1059
- 'http:/' + '/www.extjs.com/s.gif' :
1060
- 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
1061
-
1062
- extendX : function(supr, fn){
1063
- return Ext.extend(supr, fn(supr.prototype));
1064
- },
1065
-
1066
- /**
1067
- * Returns the current HTML document object as an {@link Ext.Element}.
1068
- * @return Ext.Element The document
1069
- */
1070
- getDoc : function(){
1071
- return Ext.get(document);
1072
- },
1073
-
1074
- /**
1075
- * Utility method for validating that a value is numeric, returning the specified default value if it is not.
1076
- * @param {Mixed} value Should be a number, but any type will be handled appropriately
1077
- * @param {Number} defaultValue The value to return if the original value is non-numeric
1078
- * @return {Number} Value, if numeric, else defaultValue
1079
- */
1080
- num : function(v, defaultValue){
1081
- v = Number(Ext.isEmpty(v) || Ext.isArray(v) || typeof v == 'boolean' || (typeof v == 'string' && v.trim().length == 0) ? NaN : v);
1082
- return isNaN(v) ? defaultValue : v;
1083
- },
1084
-
1085
- /**
1086
- * <p>Utility method for returning a default value if the passed value is empty.</p>
1087
- * <p>The value is deemed to be empty if it is<div class="mdetail-params"><ul>
1088
- * <li>null</li>
1089
- * <li>undefined</li>
1090
- * <li>an empty array</li>
1091
- * <li>a zero length string (Unless the <tt>allowBlank</tt> parameter is <tt>true</tt>)</li>
1092
- * </ul></div>
1093
- * @param {Mixed} value The value to test
1094
- * @param {Mixed} defaultValue The value to return if the original value is empty
1095
- * @param {Boolean} allowBlank (optional) true to allow zero length strings to qualify as non-empty (defaults to false)
1096
- * @return {Mixed} value, if non-empty, else defaultValue
1097
- */
1098
- value : function(v, defaultValue, allowBlank){
1099
- return Ext.isEmpty(v, allowBlank) ? defaultValue : v;
1100
- },
1101
-
1102
- /**
1103
- * Escapes the passed string for use in a regular expression
1104
- * @param {String} str
1105
- * @return {String}
1106
- */
1107
- escapeRe : function(s) {
1108
- return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1");
1109
- },
1110
-
1111
- sequence : function(o, name, fn, scope){
1112
- o[name] = o[name].createSequence(fn, scope);
1113
- },
1114
-
1115
- /**
1116
- * Applies event listeners to elements by selectors when the document is ready.
1117
- * The event name is specified with an <tt>&#64;</tt> suffix.
1118
- * <pre><code>
1119
- Ext.addBehaviors({
1120
- // add a listener for click on all anchors in element with id foo
1121
- '#foo a&#64;click' : function(e, t){
1122
- // do something
1123
- },
1124
-
1125
- // add the same listener to multiple selectors (separated by comma BEFORE the &#64;)
1126
- '#foo a, #bar span.some-class&#64;mouseover' : function(){
1127
- // do something
1128
- }
1129
- });
1130
- * </code></pre>
1131
- * @param {Object} obj The list of behaviors to apply
1132
- */
1133
- addBehaviors : function(o){
1134
- if(!Ext.isReady){
1135
- Ext.onReady(function(){
1136
- Ext.addBehaviors(o);
1137
- });
1138
- } else {
1139
- var cache = {}, // simple cache for applying multiple behaviors to same selector does query multiple times
1140
- parts,
1141
- b,
1142
- s;
1143
- for (b in o) {
1144
- if ((parts = b.split('@'))[1]) { // for Object prototype breakers
1145
- s = parts[0];
1146
- if(!cache[s]){
1147
- cache[s] = Ext.select(s);
1148
- }
1149
- cache[s].on(parts[1], o[b]);
1150
- }
1151
- }
1152
- cache = null;
1153
- }
1154
- },
1155
-
1156
- /**
1157
- * Utility method for getting the width of the browser scrollbar. This can differ depending on
1158
- * operating system settings, such as the theme or font size.
1159
- * @param {Boolean} force (optional) true to force a recalculation of the value.
1160
- * @return {Number} The width of the scrollbar.
1161
- */
1162
- getScrollBarWidth: function(force){
1163
- if(!Ext.isReady){
1164
- return 0;
1165
- }
1166
-
1167
- if(force === true || scrollWidth === null){
1168
- // Append our div, do our calculation and then remove it
1169
- var div = Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),
1170
- child = div.child('div', true);
1171
- var w1 = child.offsetWidth;
1172
- div.setStyle('overflow', (Ext.isWebKit || Ext.isGecko) ? 'auto' : 'scroll');
1173
- var w2 = child.offsetWidth;
1174
- div.remove();
1175
- // Need to add 2 to ensure we leave enough space
1176
- scrollWidth = w1 - w2 + 2;
1177
- }
1178
- return scrollWidth;
1179
- },
1180
-
1181
-
1182
- // deprecated
1183
- combine : function(){
1184
- var as = arguments, l = as.length, r = [];
1185
- for(var i = 0; i < l; i++){
1186
- var a = as[i];
1187
- if(Ext.isArray(a)){
1188
- r = r.concat(a);
1189
- }else if(a.length !== undefined && !a.substr){
1190
- r = r.concat(Array.prototype.slice.call(a, 0));
1191
- }else{
1192
- r.push(a);
1193
- }
1194
- }
1195
- return r;
1196
- },
1197
-
1198
- /**
1199
- * Copies a set of named properties fom the source object to the destination object.
1200
- * <p>example:<pre><code>
1201
- ImageComponent = Ext.extend(Ext.BoxComponent, {
1202
- initComponent: function() {
1203
- this.autoEl = { tag: 'img' };
1204
- MyComponent.superclass.initComponent.apply(this, arguments);
1205
- this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');
1206
- }
1207
- });
1208
- * </code></pre>
1209
- * @param {Object} dest The destination object.
1210
- * @param {Object} source The source object.
1211
- * @param {Array/String} names Either an Array of property names, or a comma-delimited list
1212
- * of property names to copy.
1213
- * @return {Object} The modified object.
1214
- */
1215
- copyTo : function(dest, source, names){
1216
- if(typeof names == 'string'){
1217
- names = names.split(/[,;\s]/);
1218
- }
1219
- Ext.each(names, function(name){
1220
- if(source.hasOwnProperty(name)){
1221
- dest[name] = source[name];
1222
- }
1223
- }, this);
1224
- return dest;
1225
- },
1226
-
1227
- /**
1228
- * Attempts to destroy any objects passed to it by removing all event listeners, removing them from the
1229
- * DOM (if applicable) and calling their destroy functions (if available). This method is primarily
1230
- * intended for arguments of type {@link Ext.Element} and {@link Ext.Component}, but any subclass of
1231
- * {@link Ext.util.Observable} can be passed in. Any number of elements and/or components can be
1232
- * passed into this function in a single call as separate arguments.
1233
- * @param {Mixed} arg1 An {@link Ext.Element}, {@link Ext.Component}, or an Array of either of these to destroy
1234
- * @param {Mixed} arg2 (optional)
1235
- * @param {Mixed} etc... (optional)
1236
- */
1237
- destroy : function(){
1238
- Ext.each(arguments, function(arg){
1239
- if(arg){
1240
- if(Ext.isArray(arg)){
1241
- this.destroy.apply(this, arg);
1242
- }else if(typeof arg.destroy == 'function'){
1243
- arg.destroy();
1244
- }else if(arg.dom){
1245
- arg.remove();
1246
- }
1247
- }
1248
- }, this);
1249
- },
1250
-
1251
- /**
1252
- * Attempts to destroy and then remove a set of named properties of the passed object.
1253
- * @param {Object} o The object (most likely a Component) who's properties you wish to destroy.
1254
- * @param {Mixed} arg1 The name of the property to destroy and remove from the object.
1255
- * @param {Mixed} etc... More property names to destroy and remove.
1256
- */
1257
- destroyMembers : function(o, arg1, arg2, etc){
1258
- for(var i = 1, a = arguments, len = a.length; i < len; i++) {
1259
- Ext.destroy(o[a[i]]);
1260
- delete o[a[i]];
1261
- }
1262
- },
1263
-
1264
- /**
1265
- * Creates a copy of the passed Array with falsy values removed.
1266
- * @param {Array/NodeList} arr The Array from which to remove falsy values.
1267
- * @return {Array} The new, compressed Array.
1268
- */
1269
- clean : function(arr){
1270
- var ret = [];
1271
- Ext.each(arr, function(v){
1272
- if(!!v){
1273
- ret.push(v);
1274
- }
1275
- });
1276
- return ret;
1277
- },
1278
-
1279
- /**
1280
- * Creates a copy of the passed Array, filtered to contain only unique values.
1281
- * @param {Array} arr The Array to filter
1282
- * @return {Array} The new Array containing unique values.
1283
- */
1284
- unique : function(arr){
1285
- var ret = [],
1286
- collect = {};
1287
-
1288
- Ext.each(arr, function(v) {
1289
- if(!collect[v]){
1290
- ret.push(v);
1291
- }
1292
- collect[v] = true;
1293
- });
1294
- return ret;
1295
- },
1296
-
1297
- /**
1298
- * Recursively flattens into 1-d Array. Injects Arrays inline.
1299
- * @param {Array} arr The array to flatten
1300
- * @return {Array} The new, flattened array.
1301
- */
1302
- flatten : function(arr){
1303
- var worker = [];
1304
- function rFlatten(a) {
1305
- Ext.each(a, function(v) {
1306
- if(Ext.isArray(v)){
1307
- rFlatten(v);
1308
- }else{
1309
- worker.push(v);
1310
- }
1311
- });
1312
- return worker;
1313
- }
1314
- return rFlatten(arr);
1315
- },
1316
-
1317
- /**
1318
- * Returns the minimum value in the Array.
1319
- * @param {Array|NodeList} arr The Array from which to select the minimum value.
1320
- * @param {Function} comp (optional) a function to perform the comparision which determines minimization.
1321
- * If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1
1322
- * @return {Object} The minimum value in the Array.
1323
- */
1324
- min : function(arr, comp){
1325
- var ret = arr[0];
1326
- comp = comp || function(a,b){ return a < b ? -1 : 1; };
1327
- Ext.each(arr, function(v) {
1328
- ret = comp(ret, v) == -1 ? ret : v;
1329
- });
1330
- return ret;
1331
- },
1332
-
1333
- /**
1334
- * Returns the maximum value in the Array
1335
- * @param {Array|NodeList} arr The Array from which to select the maximum value.
1336
- * @param {Function} comp (optional) a function to perform the comparision which determines maximization.
1337
- * If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1
1338
- * @return {Object} The maximum value in the Array.
1339
- */
1340
- max : function(arr, comp){
1341
- var ret = arr[0];
1342
- comp = comp || function(a,b){ return a > b ? 1 : -1; };
1343
- Ext.each(arr, function(v) {
1344
- ret = comp(ret, v) == 1 ? ret : v;
1345
- });
1346
- return ret;
1347
- },
1348
-
1349
- /**
1350
- * Calculates the mean of the Array
1351
- * @param {Array} arr The Array to calculate the mean value of.
1352
- * @return {Number} The mean.
1353
- */
1354
- mean : function(arr){
1355
- return arr.length > 0 ? Ext.sum(arr) / arr.length : undefined;
1356
- },
1357
-
1358
- /**
1359
- * Calculates the sum of the Array
1360
- * @param {Array} arr The Array to calculate the sum value of.
1361
- * @return {Number} The sum.
1362
- */
1363
- sum : function(arr){
1364
- var ret = 0;
1365
- Ext.each(arr, function(v) {
1366
- ret += v;
1367
- });
1368
- return ret;
1369
- },
1370
-
1371
- /**
1372
- * Partitions the set into two sets: a true set and a false set.
1373
- * Example:
1374
- * Example2:
1375
- * <pre><code>
1376
- // Example 1:
1377
- Ext.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]
1378
-
1379
- // Example 2:
1380
- Ext.partition(
1381
- Ext.query("p"),
1382
- function(val){
1383
- return val.className == "class1"
1384
- }
1385
- );
1386
- // true are those paragraph elements with a className of "class1",
1387
- // false set are those that do not have that className.
1388
- * </code></pre>
1389
- * @param {Array|NodeList} arr The array to partition
1390
- * @param {Function} truth (optional) a function to determine truth. If this is omitted the element
1391
- * itself must be able to be evaluated for its truthfulness.
1392
- * @return {Array} [true<Array>,false<Array>]
1393
- */
1394
- partition : function(arr, truth){
1395
- var ret = [[],[]];
1396
- Ext.each(arr, function(v, i, a) {
1397
- ret[ (truth && truth(v, i, a)) || (!truth && v) ? 0 : 1].push(v);
1398
- });
1399
- return ret;
1400
- },
1401
-
1402
- /**
1403
- * Invokes a method on each item in an Array.
1404
- * <pre><code>
1405
- // Example:
1406
- Ext.invoke(Ext.query("p"), "getAttribute", "id");
1407
- // [el1.getAttribute("id"), el2.getAttribute("id"), ..., elN.getAttribute("id")]
1408
- * </code></pre>
1409
- * @param {Array|NodeList} arr The Array of items to invoke the method on.
1410
- * @param {String} methodName The method name to invoke.
1411
- * @param {...*} args Arguments to send into the method invocation.
1412
- * @return {Array} The results of invoking the method on each item in the array.
1413
- */
1414
- invoke : function(arr, methodName){
1415
- var ret = [],
1416
- args = Array.prototype.slice.call(arguments, 2);
1417
- Ext.each(arr, function(v,i) {
1418
- if (v && typeof v[methodName] == 'function') {
1419
- ret.push(v[methodName].apply(v, args));
1420
- } else {
1421
- ret.push(undefined);
1422
- }
1423
- });
1424
- return ret;
1425
- },
1426
-
1427
- /**
1428
- * Plucks the value of a property from each item in the Array
1429
- * <pre><code>
1430
- // Example:
1431
- Ext.pluck(Ext.query("p"), "className"); // [el1.className, el2.className, ..., elN.className]
1432
- * </code></pre>
1433
- * @param {Array|NodeList} arr The Array of items to pluck the value from.
1434
- * @param {String} prop The property name to pluck from each element.
1435
- * @return {Array} The value from each item in the Array.
1436
- */
1437
- pluck : function(arr, prop){
1438
- var ret = [];
1439
- Ext.each(arr, function(v) {
1440
- ret.push( v[prop] );
1441
- });
1442
- return ret;
1443
- },
1444
-
1445
- /**
1446
- * <p>Zips N sets together.</p>
1447
- * <pre><code>
1448
- // Example 1:
1449
- Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
1450
- // Example 2:
1451
- Ext.zip(
1452
- [ "+", "-", "+"],
1453
- [ 12, 10, 22],
1454
- [ 43, 15, 96],
1455
- function(a, b, c){
1456
- return "$" + a + "" + b + "." + c
1457
- }
1458
- ); // ["$+12.43", "$-10.15", "$+22.96"]
1459
- * </code></pre>
1460
- * @param {Arrays|NodeLists} arr This argument may be repeated. Array(s) to contribute values.
1461
- * @param {Function} zipper (optional) The last item in the argument list. This will drive how the items are zipped together.
1462
- * @return {Array} The zipped set.
1463
- */
1464
- zip : function(){
1465
- var parts = Ext.partition(arguments, function( val ){ return typeof val != 'function'; }),
1466
- arrs = parts[0],
1467
- fn = parts[1][0],
1468
- len = Ext.max(Ext.pluck(arrs, "length")),
1469
- ret = [];
1470
-
1471
- for (var i = 0; i < len; i++) {
1472
- ret[i] = [];
1473
- if(fn){
1474
- ret[i] = fn.apply(fn, Ext.pluck(arrs, i));
1475
- }else{
1476
- for (var j = 0, aLen = arrs.length; j < aLen; j++){
1477
- ret[i].push( arrs[j][i] );
1478
- }
1479
- }
1480
- }
1481
- return ret;
1482
- },
1483
-
1484
- /**
1485
- * This is shorthand reference to {@link Ext.ComponentMgr#get}.
1486
- * Looks up an existing {@link Ext.Component Component} by {@link Ext.Component#id id}
1487
- * @param {String} id The component {@link Ext.Component#id id}
1488
- * @return Ext.Component The Component, <tt>undefined</tt> if not found, or <tt>null</tt> if a
1489
- * Class was found.
1490
- */
1491
- getCmp : function(id){
1492
- return Ext.ComponentMgr.get(id);
1493
- },
1494
-
1495
- /**
1496
- * By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
1497
- * you may want to set this to true.
1498
- * @type Boolean
1499
- */
1500
- useShims: E.isIE6 || (E.isMac && E.isGecko2),
1501
-
1502
- // inpired by a similar function in mootools library
1503
- /**
1504
- * Returns the type of object that is passed in. If the object passed in is null or undefined it
1505
- * return false otherwise it returns one of the following values:<div class="mdetail-params"><ul>
1506
- * <li><b>string</b>: If the object passed is a string</li>
1507
- * <li><b>number</b>: If the object passed is a number</li>
1508
- * <li><b>boolean</b>: If the object passed is a boolean value</li>
1509
- * <li><b>date</b>: If the object passed is a Date object</li>
1510
- * <li><b>function</b>: If the object passed is a function reference</li>
1511
- * <li><b>object</b>: If the object passed is an object</li>
1512
- * <li><b>array</b>: If the object passed is an array</li>
1513
- * <li><b>regexp</b>: If the object passed is a regular expression</li>
1514
- * <li><b>element</b>: If the object passed is a DOM Element</li>
1515
- * <li><b>nodelist</b>: If the object passed is a DOM NodeList</li>
1516
- * <li><b>textnode</b>: If the object passed is a DOM text node and contains something other than whitespace</li>
1517
- * <li><b>whitespace</b>: If the object passed is a DOM text node and contains only whitespace</li>
1518
- * </ul></div>
1519
- * @param {Mixed} object
1520
- * @return {String}
1521
- */
1522
- type : function(o){
1523
- if(o === undefined || o === null){
1524
- return false;
1525
- }
1526
- if(o.htmlElement){
1527
- return 'element';
1528
- }
1529
- var t = typeof o;
1530
- if(t == 'object' && o.nodeName) {
1531
- switch(o.nodeType) {
1532
- case 1: return 'element';
1533
- case 3: return (/\S/).test(o.nodeValue) ? 'textnode' : 'whitespace';
1534
- }
1535
- }
1536
- if(t == 'object' || t == 'function') {
1537
- switch(o.constructor) {
1538
- case Array: return 'array';
1539
- case RegExp: return 'regexp';
1540
- case Date: return 'date';
1541
- }
1542
- if(typeof o.length == 'number' && typeof o.item == 'function') {
1543
- return 'nodelist';
1544
- }
1545
- }
1546
- return t;
1547
- },
1548
-
1549
- intercept : function(o, name, fn, scope){
1550
- o[name] = o[name].createInterceptor(fn, scope);
1551
- },
1552
-
1553
- // internal
1554
- callback : function(cb, scope, args, delay){
1555
- if(typeof cb == 'function'){
1556
- if(delay){
1557
- cb.defer(delay, scope, args || []);
1558
- }else{
1559
- cb.apply(scope, args || []);
1560
- }
1561
- }
1562
- }
1563
- };
1564
- }());
1565
-
1566
- /**
1567
- * @class Function
1568
- * These functions are available on every Function object (any JavaScript function).
1569
- */
1570
- Ext.apply(Function.prototype, {
1571
- /**
1572
- * Create a combined function call sequence of the original function + the passed function.
1573
- * The resulting function returns the results of the original function.
1574
- * The passed fcn is called with the parameters of the original function. Example usage:
1575
- * <pre><code>
1576
- var sayHi = function(name){
1577
- alert('Hi, ' + name);
1578
- }
1579
-
1580
- sayHi('Fred'); // alerts "Hi, Fred"
1581
-
1582
- var sayGoodbye = sayHi.createSequence(function(name){
1583
- alert('Bye, ' + name);
1584
- });
1585
-
1586
- sayGoodbye('Fred'); // both alerts show
1587
- </code></pre>
1588
- * @param {Function} fcn The function to sequence
1589
- * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the passed function is executed.
1590
- * <b>If omitted, defaults to the scope in which the original function is called or the browser window.</b>
1591
- * @return {Function} The new function
1592
- */
1593
- createSequence : function(fcn, scope){
1594
- var method = this;
1595
- return (typeof fcn != 'function') ?
1596
- this :
1597
- function(){
1598
- var retval = method.apply(this || window, arguments);
1599
- fcn.apply(scope || this || window, arguments);
1600
- return retval;
1601
- };
1602
- }
1603
- });
1604
-
1605
-
1606
- /**
1607
- * @class String
1608
- * These functions are available as static methods on the JavaScript String object.
1609
- */
1610
- Ext.applyIf(String, {
1611
-
1612
- /**
1613
- * Escapes the passed string for ' and \
1614
- * @param {String} string The string to escape
1615
- * @return {String} The escaped string
1616
- * @static
1617
- */
1618
- escape : function(string) {
1619
- return string.replace(/('|\\)/g, "\\$1");
1620
- },
1621
-
1622
- /**
1623
- * Pads the left side of a string with a specified character. This is especially useful
1624
- * for normalizing number and date strings. Example usage:
1625
- * <pre><code>
1626
- var s = String.leftPad('123', 5, '0');
1627
- // s now contains the string: '00123'
1628
- * </code></pre>
1629
- * @param {String} string The original string
1630
- * @param {Number} size The total length of the output string
1631
- * @param {String} char (optional) The character with which to pad the original string (defaults to empty string " ")
1632
- * @return {String} The padded string
1633
- * @static
1634
- */
1635
- leftPad : function (val, size, ch) {
1636
- var result = String(val);
1637
- if(!ch) {
1638
- ch = " ";
1639
- }
1640
- while (result.length < size) {
1641
- result = ch + result;
1642
- }
1643
- return result;
1644
- }
1645
- });
1646
-
1647
- /**
1648
- * Utility function that allows you to easily switch a string between two alternating values. The passed value
1649
- * is compared to the current string, and if they are equal, the other value that was passed in is returned. If
1650
- * they are already different, the first value passed in is returned. Note that this method returns the new value
1651
- * but does not change the current string.
1652
- * <pre><code>
1653
- // alternate sort directions
1654
- sort = sort.toggle('ASC', 'DESC');
1655
-
1656
- // instead of conditional logic:
1657
- sort = (sort == 'ASC' ? 'DESC' : 'ASC');
1658
- </code></pre>
1659
- * @param {String} value The value to compare to the current string
1660
- * @param {String} other The new value to use if the string already equals the first value passed in
1661
- * @return {String} The new value
1662
- */
1663
- String.prototype.toggle = function(value, other){
1664
- return this == value ? other : value;
1665
- };
1666
-
1667
- /**
1668
- * Trims whitespace from either end of a string, leaving spaces within the string intact. Example:
1669
- * <pre><code>
1670
- var s = ' foo bar ';
1671
- alert('-' + s + '-'); //alerts "- foo bar -"
1672
- alert('-' + s.trim() + '-'); //alerts "-foo bar-"
1673
- </code></pre>
1674
- * @return {String} The trimmed string
1675
- */
1676
- String.prototype.trim = function(){
1677
- var re = /^\s+|\s+$/g;
1678
- return function(){ return this.replace(re, ""); };
1679
- }();
1680
-
1681
- // here to prevent dependency on Date.js
1682
- /**
1683
- Returns the number of milliseconds between this date and date
1684
- @param {Date} date (optional) Defaults to now
1685
- @return {Number} The diff in milliseconds
1686
- @member Date getElapsed
1687
- */
1688
- Date.prototype.getElapsed = function(date) {
1689
- return Math.abs((date || new Date()).getTime()-this.getTime());
1690
- };
1691
-
1692
-
1693
- /**
1694
- * @class Number
1695
- */
1696
- Ext.applyIf(Number.prototype, {
1697
- /**
1698
- * Checks whether or not the current number is within a desired range. If the number is already within the
1699
- * range it is returned, otherwise the min or max value is returned depending on which side of the range is
1700
- * exceeded. Note that this method returns the constrained value but does not change the current number.
1701
- * @param {Number} min The minimum number in the range
1702
- * @param {Number} max The maximum number in the range
1703
- * @return {Number} The constrained value if outside the range, otherwise the current value
1704
- */
1705
- constrain : function(min, max){
1706
- return Math.min(Math.max(this, min), max);
1707
- }
1708
- });
1709
- /**
1710
- * @class Ext.util.TaskRunner
1711
- * Provides the ability to execute one or more arbitrary tasks in a multithreaded
1712
- * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but
1713
- * if needed, you can create separate instances of TaskRunner. Any number of
1714
- * separate tasks can be started at any time and will run independently of each
1715
- * other. Example usage:
1716
- * <pre><code>
1717
- // Start a simple clock task that updates a div once per second
1718
- var updateClock = function(){
1719
- Ext.fly('clock').update(new Date().format('g:i:s A'));
1720
- }
1721
- var task = {
1722
- run: updateClock,
1723
- interval: 1000 //1 second
1724
- }
1725
- var runner = new Ext.util.TaskRunner();
1726
- runner.start(task);
1727
-
1728
- // equivalent using TaskMgr
1729
- Ext.TaskMgr.start({
1730
- run: updateClock,
1731
- interval: 1000
1732
- });
1733
-
1734
- * </code></pre>
1735
- * <p>See the {@link #start} method for details about how to configure a task object.</p>
1736
- * Also see {@link Ext.util.DelayedTask}.
1737
- *
1738
- * @constructor
1739
- * @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance
1740
- * (defaults to 10)
1741
- */
1742
- Ext.util.TaskRunner = function(interval){
1743
- interval = interval || 10;
1744
- var tasks = [],
1745
- removeQueue = [],
1746
- id = 0,
1747
- running = false,
1748
-
1749
- // private
1750
- stopThread = function(){
1751
- running = false;
1752
- clearInterval(id);
1753
- id = 0;
1754
- },
1755
-
1756
- // private
1757
- startThread = function(){
1758
- if(!running){
1759
- running = true;
1760
- id = setInterval(runTasks, interval);
1761
- }
1762
- },
1763
-
1764
- // private
1765
- removeTask = function(t){
1766
- removeQueue.push(t);
1767
- if(t.onStop){
1768
- t.onStop.apply(t.scope || t);
1769
- }
1770
- },
1771
-
1772
- // private
1773
- runTasks = function(){
1774
- var rqLen = removeQueue.length,
1775
- now = new Date().getTime();
1776
-
1777
- if(rqLen > 0){
1778
- for(var i = 0; i < rqLen; i++){
1779
- tasks.remove(removeQueue[i]);
1780
- }
1781
- removeQueue = [];
1782
- if(tasks.length < 1){
1783
- stopThread();
1784
- return;
1785
- }
1786
- }
1787
- for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){
1788
- t = tasks[i];
1789
- itime = now - t.taskRunTime;
1790
- if(t.interval <= itime){
1791
- rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]);
1792
- t.taskRunTime = now;
1793
- if(rt === false || t.taskRunCount === t.repeat){
1794
- removeTask(t);
1795
- return;
1796
- }
1797
- }
1798
- if(t.duration && t.duration <= (now - t.taskStartTime)){
1799
- removeTask(t);
1800
- }
1801
- }
1802
- };
1803
-
1804
- /**
1805
- * Starts a new task.
1806
- * @method start
1807
- * @param {Object} task <p>A config object that supports the following properties:<ul>
1808
- * <li><code>run</code> : Function<div class="sub-desc"><p>The function to execute each time the task is invoked. The
1809
- * function will be called at each interval and passed the <code>args</code> argument if specified, and the
1810
- * current invocation count if not.</p>
1811
- * <p>If a particular scope (<code>this</code> reference) is required, be sure to specify it using the <code>scope</code> argument.</p>
1812
- * <p>Return <code>false</code> from this function to terminate the task.</p></div></li>
1813
- * <li><code>interval</code> : Number<div class="sub-desc">The frequency in milliseconds with which the task
1814
- * should be invoked.</div></li>
1815
- * <li><code>args</code> : Array<div class="sub-desc">(optional) An array of arguments to be passed to the function
1816
- * specified by <code>run</code>. If not specified, the current invocation count is passed.</div></li>
1817
- * <li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (<tt>this</tt> reference) in which to execute the
1818
- * <code>run</code> function. Defaults to the task config object.</div></li>
1819
- * <li><code>duration</code> : Number<div class="sub-desc">(optional) The length of time in milliseconds to invoke
1820
- * the task before stopping automatically (defaults to indefinite).</div></li>
1821
- * <li><code>repeat</code> : Number<div class="sub-desc">(optional) The number of times to invoke the task before
1822
- * stopping automatically (defaults to indefinite).</div></li>
1823
- * </ul></p>
1824
- * <p>Before each invocation, Ext injects the property <code>taskRunCount</code> into the task object so
1825
- * that calculations based on the repeat count can be performed.</p>
1826
- * @return {Object} The task
1827
- */
1828
- this.start = function(task){
1829
- tasks.push(task);
1830
- task.taskStartTime = new Date().getTime();
1831
- task.taskRunTime = 0;
1832
- task.taskRunCount = 0;
1833
- startThread();
1834
- return task;
1835
- };
1836
-
1837
- /**
1838
- * Stops an existing running task.
1839
- * @method stop
1840
- * @param {Object} task The task to stop
1841
- * @return {Object} The task
1842
- */
1843
- this.stop = function(task){
1844
- removeTask(task);
1845
- return task;
1846
- };
1847
-
1848
- /**
1849
- * Stops all tasks that are currently running.
1850
- * @method stopAll
1851
- */
1852
- this.stopAll = function(){
1853
- stopThread();
1854
- for(var i = 0, len = tasks.length; i < len; i++){
1855
- if(tasks[i].onStop){
1856
- tasks[i].onStop();
1857
- }
1858
- }
1859
- tasks = [];
1860
- removeQueue = [];
1861
- };
1862
- };
1863
-
1864
- /**
1865
- * @class Ext.TaskMgr
1866
- * @extends Ext.util.TaskRunner
1867
- * A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See
1868
- * {@link Ext.util.TaskRunner} for supported methods and task config properties.
1869
- * <pre><code>
1870
- // Start a simple clock task that updates a div once per second
1871
- var task = {
1872
- run: function(){
1873
- Ext.fly('clock').update(new Date().format('g:i:s A'));
1874
- },
1875
- interval: 1000 //1 second
1876
- }
1877
- Ext.TaskMgr.start(task);
1878
- </code></pre>
1879
- * <p>See the {@link #start} method for details about how to configure a task object.</p>
1880
- * @singleton
1881
- */
1882
- Ext.TaskMgr = new Ext.util.TaskRunner();(function(){
1883
- var libFlyweight;
1884
-
1885
- function fly(el) {
1886
- if (!libFlyweight) {
1887
- libFlyweight = new Ext.Element.Flyweight();
1888
- }
1889
- libFlyweight.dom = el;
1890
- return libFlyweight;
1891
- }
1892
-
1893
- (function(){
1894
- var doc = document,
1895
- isCSS1 = doc.compatMode == "CSS1Compat",
1896
- MAX = Math.max,
1897
- ROUND = Math.round,
1898
- PARSEINT = parseInt;
1899
-
1900
- Ext.lib.Dom = {
1901
- isAncestor : function(p, c) {
1902
- var ret = false;
1903
-
1904
- p = Ext.getDom(p);
1905
- c = Ext.getDom(c);
1906
- if (p && c) {
1907
- if (p.contains) {
1908
- return p.contains(c);
1909
- } else if (p.compareDocumentPosition) {
1910
- return !!(p.compareDocumentPosition(c) & 16);
1911
- } else {
1912
- while (c = c.parentNode) {
1913
- ret = c == p || ret;
1914
- }
1915
- }
1916
- }
1917
- return ret;
1918
- },
1919
-
1920
- getViewWidth : function(full) {
1921
- return full ? this.getDocumentWidth() : this.getViewportWidth();
1922
- },
1923
-
1924
- getViewHeight : function(full) {
1925
- return full ? this.getDocumentHeight() : this.getViewportHeight();
1926
- },
1927
-
1928
- getDocumentHeight: function() {
1929
- return MAX(!isCSS1 ? doc.body.scrollHeight : doc.documentElement.scrollHeight, this.getViewportHeight());
1930
- },
1931
-
1932
- getDocumentWidth: function() {
1933
- return MAX(!isCSS1 ? doc.body.scrollWidth : doc.documentElement.scrollWidth, this.getViewportWidth());
1934
- },
1935
-
1936
- getViewportHeight: function(){
1937
- return Ext.isIE ?
1938
- (Ext.isStrict ? doc.documentElement.clientHeight : doc.body.clientHeight) :
1939
- self.innerHeight;
1940
- },
1941
-
1942
- getViewportWidth : function() {
1943
- return !Ext.isStrict && !Ext.isOpera ? doc.body.clientWidth :
1944
- Ext.isIE ? doc.documentElement.clientWidth : self.innerWidth;
1945
- },
1946
-
1947
- getY : function(el) {
1948
- return this.getXY(el)[1];
1949
- },
1950
-
1951
- getX : function(el) {
1952
- return this.getXY(el)[0];
1953
- },
1954
-
1955
- getXY : function(el) {
1956
- var p,
1957
- pe,
1958
- b,
1959
- bt,
1960
- bl,
1961
- dbd,
1962
- x = 0,
1963
- y = 0,
1964
- scroll,
1965
- hasAbsolute,
1966
- bd = (doc.body || doc.documentElement),
1967
- ret = [0,0];
1968
-
1969
- el = Ext.getDom(el);
1970
-
1971
- if(el != bd){
1972
- if (el.getBoundingClientRect) {
1973
- b = el.getBoundingClientRect();
1974
- scroll = fly(document).getScroll();
1975
- ret = [ROUND(b.left + scroll.left), ROUND(b.top + scroll.top)];
1976
- } else {
1977
- p = el;
1978
- hasAbsolute = fly(el).isStyle("position", "absolute");
1979
-
1980
- while (p) {
1981
- pe = fly(p);
1982
- x += p.offsetLeft;
1983
- y += p.offsetTop;
1984
-
1985
- hasAbsolute = hasAbsolute || pe.isStyle("position", "absolute");
1986
-
1987
- if (Ext.isGecko) {
1988
- y += bt = PARSEINT(pe.getStyle("borderTopWidth"), 10) || 0;
1989
- x += bl = PARSEINT(pe.getStyle("borderLeftWidth"), 10) || 0;
1990
-
1991
- if (p != el && !pe.isStyle('overflow','visible')) {
1992
- x += bl;
1993
- y += bt;
1994
- }
1995
- }
1996
- p = p.offsetParent;
1997
- }
1998
-
1999
- if (Ext.isSafari && hasAbsolute) {
2000
- x -= bd.offsetLeft;
2001
- y -= bd.offsetTop;
2002
- }
2003
-
2004
- if (Ext.isGecko && !hasAbsolute) {
2005
- dbd = fly(bd);
2006
- x += PARSEINT(dbd.getStyle("borderLeftWidth"), 10) || 0;
2007
- y += PARSEINT(dbd.getStyle("borderTopWidth"), 10) || 0;
2008
- }
2009
-
2010
- p = el.parentNode;
2011
- while (p && p != bd) {
2012
- if (!Ext.isOpera || (p.tagName != 'TR' && !fly(p).isStyle("display", "inline"))) {
2013
- x -= p.scrollLeft;
2014
- y -= p.scrollTop;
2015
- }
2016
- p = p.parentNode;
2017
- }
2018
- ret = [x,y];
2019
- }
2020
- }
2021
- return ret
2022
- },
2023
-
2024
- setXY : function(el, xy) {
2025
- (el = Ext.fly(el, '_setXY')).position();
2026
-
2027
- var pts = el.translatePoints(xy),
2028
- style = el.dom.style,
2029
- pos;
2030
-
2031
- for (pos in pts) {
2032
- if(!isNaN(pts[pos])) style[pos] = pts[pos] + "px"
2033
- }
2034
- },
2035
-
2036
- setX : function(el, x) {
2037
- this.setXY(el, [x, false]);
2038
- },
2039
-
2040
- setY : function(el, y) {
2041
- this.setXY(el, [false, y]);
2042
- }
2043
- };
2044
- })();Ext.lib.Dom.getRegion = function(el) {
2045
- return Ext.lib.Region.getRegion(el);
2046
- };Ext.lib.Event = function() {
2047
- var loadComplete = false,
2048
- unloadListeners = {},
2049
- retryCount = 0,
2050
- onAvailStack = [],
2051
- _interval,
2052
- locked = false,
2053
- win = window,
2054
- doc = document,
2055
-
2056
- // constants
2057
- POLL_RETRYS = 200,
2058
- POLL_INTERVAL = 20,
2059
- EL = 0,
2060
- TYPE = 0,
2061
- FN = 1,
2062
- WFN = 2,
2063
- OBJ = 2,
2064
- ADJ_SCOPE = 3,
2065
- SCROLLLEFT = 'scrollLeft',
2066
- SCROLLTOP = 'scrollTop',
2067
- UNLOAD = 'unload',
2068
- MOUSEOVER = 'mouseover',
2069
- MOUSEOUT = 'mouseout',
2070
- // private
2071
- doAdd = function() {
2072
- var ret;
2073
- if (win.addEventListener) {
2074
- ret = function(el, eventName, fn, capture) {
2075
- if (eventName == 'mouseenter') {
2076
- fn = fn.createInterceptor(checkRelatedTarget);
2077
- el.addEventListener(MOUSEOVER, fn, (capture));
2078
- } else if (eventName == 'mouseleave') {
2079
- fn = fn.createInterceptor(checkRelatedTarget);
2080
- el.addEventListener(MOUSEOUT, fn, (capture));
2081
- } else {
2082
- el.addEventListener(eventName, fn, (capture));
2083
- }
2084
- return fn;
2085
- };
2086
- } else if (win.attachEvent) {
2087
- ret = function(el, eventName, fn, capture) {
2088
- el.attachEvent("on" + eventName, fn);
2089
- return fn;
2090
- };
2091
- } else {
2092
- ret = function(){};
2093
- }
2094
- return ret;
2095
- }(),
2096
- // private
2097
- doRemove = function(){
2098
- var ret;
2099
- if (win.removeEventListener) {
2100
- ret = function (el, eventName, fn, capture) {
2101
- if (eventName == 'mouseenter') {
2102
- eventName = MOUSEOVER;
2103
- } else if (eventName == 'mouseleave') {
2104
- eventName = MOUSEOUT;
2105
- }
2106
- el.removeEventListener(eventName, fn, (capture));
2107
- };
2108
- } else if (win.detachEvent) {
2109
- ret = function (el, eventName, fn) {
2110
- el.detachEvent("on" + eventName, fn);
2111
- };
2112
- } else {
2113
- ret = function(){};
2114
- }
2115
- return ret;
2116
- }();
2117
-
2118
- function checkRelatedTarget(e) {
2119
- return !elContains(e.currentTarget, pub.getRelatedTarget(e));
2120
- }
2121
-
2122
- function elContains(parent, child) {
2123
- if(parent && parent.firstChild){
2124
- while(child) {
2125
- if(child === parent) {
2126
- return true;
2127
- }
2128
- child = child.parentNode;
2129
- if(child && (child.nodeType != 1)) {
2130
- child = null;
2131
- }
2132
- }
2133
- }
2134
- return false;
2135
- }
2136
-
2137
- // private
2138
- function _tryPreloadAttach() {
2139
- var ret = false,
2140
- notAvail = [],
2141
- element, i, v, override,
2142
- tryAgain = !loadComplete || (retryCount > 0);
2143
-
2144
- if(!locked){
2145
- locked = true;
2146
-
2147
- for(i = 0; i < onAvailStack.length; ++i){
2148
- v = onAvailStack[i];
2149
- if(v && (element = doc.getElementById(v.id))){
2150
- if(!v.checkReady || loadComplete || element.nextSibling || (doc && doc.body)) {
2151
- override = v.override;
2152
- element = override ? (override === true ? v.obj : override) : element;
2153
- v.fn.call(element, v.obj);
2154
- onAvailStack.remove(v);
2155
- --i;
2156
- }else{
2157
- notAvail.push(v);
2158
- }
2159
- }
2160
- }
2161
-
2162
- retryCount = (notAvail.length === 0) ? 0 : retryCount - 1;
2163
-
2164
- if (tryAgain) {
2165
- startInterval();
2166
- } else {
2167
- clearInterval(_interval);
2168
- _interval = null;
2169
- }
2170
- ret = !(locked = false);
2171
- }
2172
- return ret;
2173
- }
2174
-
2175
- // private
2176
- function startInterval() {
2177
- if(!_interval){
2178
- var callback = function() {
2179
- _tryPreloadAttach();
2180
- };
2181
- _interval = setInterval(callback, POLL_INTERVAL);
2182
- }
2183
- }
2184
-
2185
- // private
2186
- function getScroll() {
2187
- var dd = doc.documentElement,
2188
- db = doc.body;
2189
- if(dd && (dd[SCROLLTOP] || dd[SCROLLLEFT])){
2190
- return [dd[SCROLLLEFT], dd[SCROLLTOP]];
2191
- }else if(db){
2192
- return [db[SCROLLLEFT], db[SCROLLTOP]];
2193
- }else{
2194
- return [0, 0];
2195
- }
2196
- }
2197
-
2198
- // private
2199
- function getPageCoord (ev, xy) {
2200
- ev = ev.browserEvent || ev;
2201
- var coord = ev['page' + xy];
2202
- if (!coord && coord !== 0) {
2203
- coord = ev['client' + xy] || 0;
2204
-
2205
- if (Ext.isIE) {
2206
- coord += getScroll()[xy == "X" ? 0 : 1];
2207
- }
2208
- }
2209
-
2210
- return coord;
2211
- }
2212
-
2213
- var pub = {
2214
- extAdapter: true,
2215
- onAvailable : function(p_id, p_fn, p_obj, p_override) {
2216
- onAvailStack.push({
2217
- id: p_id,
2218
- fn: p_fn,
2219
- obj: p_obj,
2220
- override: p_override,
2221
- checkReady: false });
2222
-
2223
- retryCount = POLL_RETRYS;
2224
- startInterval();
2225
- },
2226
-
2227
- // This function should ALWAYS be called from Ext.EventManager
2228
- addListener: function(el, eventName, fn) {
2229
- el = Ext.getDom(el);
2230
- if (el && fn) {
2231
- if (eventName == UNLOAD) {
2232
- if (unloadListeners[el.id] === undefined) {
2233
- unloadListeners[el.id] = [];
2234
- }
2235
- unloadListeners[el.id].push([eventName, fn]);
2236
- return fn;
2237
- }
2238
- return doAdd(el, eventName, fn, false);
2239
- }
2240
- return false;
2241
- },
2242
-
2243
- // This function should ALWAYS be called from Ext.EventManager
2244
- removeListener: function(el, eventName, fn) {
2245
- el = Ext.getDom(el);
2246
- var i, len, li, lis;
2247
- if (el && fn) {
2248
- if(eventName == UNLOAD){
2249
- if((lis = unloadListeners[el.id]) !== undefined){
2250
- for(i = 0, len = lis.length; i < len; i++){
2251
- if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
2252
- unloadListeners[el.id].splice(i, 1);
2253
- }
2254
- }
2255
- }
2256
- return;
2257
- }
2258
- doRemove(el, eventName, fn, false);
2259
- }
2260
- },
2261
-
2262
- getTarget : function(ev) {
2263
- ev = ev.browserEvent || ev;
2264
- return this.resolveTextNode(ev.target || ev.srcElement);
2265
- },
2266
-
2267
- resolveTextNode : Ext.isGecko ? function(node){
2268
- if(!node){
2269
- return;
2270
- }
2271
- // work around firefox bug, https://bugzilla.mozilla.org/show_bug.cgi?id=101197
2272
- var s = HTMLElement.prototype.toString.call(node);
2273
- if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){
2274
- return;
2275
- }
2276
- return node.nodeType == 3 ? node.parentNode : node;
2277
- } : function(node){
2278
- return node && node.nodeType == 3 ? node.parentNode : node;
2279
- },
2280
-
2281
- getRelatedTarget : function(ev) {
2282
- ev = ev.browserEvent || ev;
2283
- return this.resolveTextNode(ev.relatedTarget ||
2284
- (ev.type == MOUSEOUT ? ev.toElement :
2285
- ev.type == MOUSEOVER ? ev.fromElement : null));
2286
- },
2287
-
2288
- getPageX : function(ev) {
2289
- return getPageCoord(ev, "X");
2290
- },
2291
-
2292
- getPageY : function(ev) {
2293
- return getPageCoord(ev, "Y");
2294
- },
2295
-
2296
-
2297
- getXY : function(ev) {
2298
- return [this.getPageX(ev), this.getPageY(ev)];
2299
- },
2300
-
2301
- stopEvent : function(ev) {
2302
- this.stopPropagation(ev);
2303
- this.preventDefault(ev);
2304
- },
2305
-
2306
- stopPropagation : function(ev) {
2307
- ev = ev.browserEvent || ev;
2308
- if (ev.stopPropagation) {
2309
- ev.stopPropagation();
2310
- } else {
2311
- ev.cancelBubble = true;
2312
- }
2313
- },
2314
-
2315
- preventDefault : function(ev) {
2316
- ev = ev.browserEvent || ev;
2317
- if (ev.preventDefault) {
2318
- ev.preventDefault();
2319
- } else {
2320
- ev.returnValue = false;
2321
- }
2322
- },
2323
-
2324
- getEvent : function(e) {
2325
- e = e || win.event;
2326
- if (!e) {
2327
- var c = this.getEvent.caller;
2328
- while (c) {
2329
- e = c.arguments[0];
2330
- if (e && Event == e.constructor) {
2331
- break;
2332
- }
2333
- c = c.caller;
2334
- }
2335
- }
2336
- return e;
2337
- },
2338
-
2339
- getCharCode : function(ev) {
2340
- ev = ev.browserEvent || ev;
2341
- return ev.charCode || ev.keyCode || 0;
2342
- },
2343
-
2344
- //clearCache: function() {},
2345
- // deprecated, call from EventManager
2346
- getListeners : function(el, eventName) {
2347
- Ext.EventManager.getListeners(el, eventName);
2348
- },
2349
-
2350
- // deprecated, call from EventManager
2351
- purgeElement : function(el, recurse, eventName) {
2352
- Ext.EventManager.purgeElement(el, recurse, eventName);
2353
- },
2354
-
2355
- _load : function(e) {
2356
- loadComplete = true;
2357
- var EU = Ext.lib.Event;
2358
- if (Ext.isIE && e !== true) {
2359
- // IE8 complains that _load is null or not an object
2360
- // so lets remove self via arguments.callee
2361
- doRemove(win, "load", arguments.callee);
2362
- }
2363
- },
2364
-
2365
- _unload : function(e) {
2366
- var EU = Ext.lib.Event,
2367
- i, j, l, v, ul, id, len, index, scope;
2368
-
2369
-
2370
- for (id in unloadListeners) {
2371
- ul = unloadListeners[id];
2372
- for (i = 0, len = ul.length; i < len; i++) {
2373
- v = ul[i];
2374
- if (v) {
2375
- try{
2376
- scope = v[ADJ_SCOPE] ? (v[ADJ_SCOPE] === true ? v[OBJ] : v[ADJ_SCOPE]) : win;
2377
- v[FN].call(scope, EU.getEvent(e), v[OBJ]);
2378
- }catch(ex){}
2379
- }
2380
- }
2381
- };
2382
-
2383
- Ext.EventManager._unload();
2384
-
2385
- doRemove(win, UNLOAD, EU._unload);
2386
- }
2387
- };
2388
-
2389
- // Initialize stuff.
2390
- pub.on = pub.addListener;
2391
- pub.un = pub.removeListener;
2392
- if (doc && doc.body) {
2393
- pub._load(true);
2394
- } else {
2395
- doAdd(win, "load", pub._load);
2396
- }
2397
- doAdd(win, UNLOAD, pub._unload);
2398
- _tryPreloadAttach();
2399
-
2400
- return pub;
2401
- }();
2402
- /*
2403
- * Portions of this file are based on pieces of Yahoo User Interface Library
2404
- * Copyright (c) 2007, Yahoo! Inc. All rights reserved.
2405
- * YUI licensed under the BSD License:
2406
- * http://developer.yahoo.net/yui/license.txt
2407
- */
2408
- Ext.lib.Ajax = function() {
2409
- var activeX = ['MSXML2.XMLHTTP.3.0',
2410
- 'MSXML2.XMLHTTP',
2411
- 'Microsoft.XMLHTTP'],
2412
- CONTENTTYPE = 'Content-Type';
2413
-
2414
- // private
2415
- function setHeader(o) {
2416
- var conn = o.conn,
2417
- prop;
2418
-
2419
- function setTheHeaders(conn, headers){
2420
- for (prop in headers) {
2421
- if (headers.hasOwnProperty(prop)) {
2422
- conn.setRequestHeader(prop, headers[prop]);
2423
- }
2424
- }
2425
- }
2426
-
2427
- if (pub.defaultHeaders) {
2428
- setTheHeaders(conn, pub.defaultHeaders);
2429
- }
2430
-
2431
- if (pub.headers) {
2432
- setTheHeaders(conn, pub.headers);
2433
- delete pub.headers;
2434
- }
2435
- }
2436
-
2437
- // private
2438
- function createExceptionObject(tId, callbackArg, isAbort, isTimeout) {
2439
- return {
2440
- tId : tId,
2441
- status : isAbort ? -1 : 0,
2442
- statusText : isAbort ? 'transaction aborted' : 'communication failure',
2443
- isAbort: isAbort,
2444
- isTimeout: isTimeout,
2445
- argument : callbackArg
2446
- };
2447
- }
2448
-
2449
- // private
2450
- function initHeader(label, value) {
2451
- (pub.headers = pub.headers || {})[label] = value;
2452
- }
2453
-
2454
- // private
2455
- function createResponseObject(o, callbackArg) {
2456
- var headerObj = {},
2457
- headerStr,
2458
- conn = o.conn,
2459
- t,
2460
- s,
2461
- // see: https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223
2462
- isBrokenStatus = conn.status == 1223;
2463
-
2464
- try {
2465
- headerStr = o.conn.getAllResponseHeaders();
2466
- Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){
2467
- t = v.indexOf(':');
2468
- if(t >= 0){
2469
- s = v.substr(0, t).toLowerCase();
2470
- if(v.charAt(t + 1) == ' '){
2471
- ++t;
2472
- }
2473
- headerObj[s] = v.substr(t + 1);
2474
- }
2475
- });
2476
- } catch(e) {}
2477
-
2478
- return {
2479
- tId : o.tId,
2480
- // Normalize the status and statusText when IE returns 1223, see the above link.
2481
- status : isBrokenStatus ? 204 : conn.status,
2482
- statusText : isBrokenStatus ? 'No Content' : conn.statusText,
2483
- getResponseHeader : function(header){return headerObj[header.toLowerCase()];},
2484
- getAllResponseHeaders : function(){return headerStr},
2485
- responseText : conn.responseText,
2486
- responseXML : conn.responseXML,
2487
- argument : callbackArg
2488
- };
2489
- }
2490
-
2491
- // private
2492
- function releaseObject(o) {
2493
- if (o.tId) {
2494
- pub.conn[o.tId] = null;
2495
- }
2496
- o.conn = null;
2497
- o = null;
2498
- }
2499
-
2500
- // private
2501
- function handleTransactionResponse(o, callback, isAbort, isTimeout) {
2502
- if (!callback) {
2503
- releaseObject(o);
2504
- return;
2505
- }
2506
-
2507
- var httpStatus, responseObject;
2508
-
2509
- try {
2510
- if (o.conn.status !== undefined && o.conn.status != 0) {
2511
- httpStatus = o.conn.status;
2512
- }
2513
- else {
2514
- httpStatus = 13030;
2515
- }
2516
- }
2517
- catch(e) {
2518
- httpStatus = 13030;
2519
- }
2520
-
2521
- if ((httpStatus >= 200 && httpStatus < 300) || (Ext.isIE && httpStatus == 1223)) {
2522
- responseObject = createResponseObject(o, callback.argument);
2523
- if (callback.success) {
2524
- if (!callback.scope) {
2525
- callback.success(responseObject);
2526
- }
2527
- else {
2528
- callback.success.apply(callback.scope, [responseObject]);
2529
- }
2530
- }
2531
- }
2532
- else {
2533
- switch (httpStatus) {
2534
- case 12002:
2535
- case 12029:
2536
- case 12030:
2537
- case 12031:
2538
- case 12152:
2539
- case 13030:
2540
- responseObject = createExceptionObject(o.tId, callback.argument, (isAbort ? isAbort : false), isTimeout);
2541
- if (callback.failure) {
2542
- if (!callback.scope) {
2543
- callback.failure(responseObject);
2544
- }
2545
- else {
2546
- callback.failure.apply(callback.scope, [responseObject]);
2547
- }
2548
- }
2549
- break;
2550
- default:
2551
- responseObject = createResponseObject(o, callback.argument);
2552
- if (callback.failure) {
2553
- if (!callback.scope) {
2554
- callback.failure(responseObject);
2555
- }
2556
- else {
2557
- callback.failure.apply(callback.scope, [responseObject]);
2558
- }
2559
- }
2560
- }
2561
- }
2562
-
2563
- releaseObject(o);
2564
- responseObject = null;
2565
- }
2566
-
2567
- // private
2568
- function handleReadyState(o, callback){
2569
- callback = callback || {};
2570
- var conn = o.conn,
2571
- tId = o.tId,
2572
- poll = pub.poll,
2573
- cbTimeout = callback.timeout || null;
2574
-
2575
- if (cbTimeout) {
2576
- pub.conn[tId] = conn;
2577
- pub.timeout[tId] = setTimeout(function() {
2578
- pub.abort(o, callback, true);
2579
- }, cbTimeout);
2580
- }
2581
-
2582
- poll[tId] = setInterval(
2583
- function() {
2584
- if (conn && conn.readyState == 4) {
2585
- clearInterval(poll[tId]);
2586
- poll[tId] = null;
2587
-
2588
- if (cbTimeout) {
2589
- clearTimeout(pub.timeout[tId]);
2590
- pub.timeout[tId] = null;
2591
- }
2592
-
2593
- handleTransactionResponse(o, callback);
2594
- }
2595
- },
2596
- pub.pollInterval);
2597
- }
2598
-
2599
- // private
2600
- function asyncRequest(method, uri, callback, postData) {
2601
- var o = getConnectionObject() || null;
2602
-
2603
- if (o) {
2604
- o.conn.open(method, uri, true);
2605
-
2606
- if (pub.useDefaultXhrHeader) {
2607
- initHeader('X-Requested-With', pub.defaultXhrHeader);
2608
- }
2609
-
2610
- if(postData && pub.useDefaultHeader && (!pub.headers || !pub.headers[CONTENTTYPE])){
2611
- initHeader(CONTENTTYPE, pub.defaultPostHeader);
2612
- }
2613
-
2614
- if (pub.defaultHeaders || pub.headers) {
2615
- setHeader(o);
2616
- }
2617
-
2618
- handleReadyState(o, callback);
2619
- o.conn.send(postData || null);
2620
- }
2621
- return o;
2622
- }
2623
-
2624
- // private
2625
- function getConnectionObject() {
2626
- var o;
2627
-
2628
- try {
2629
- if (o = createXhrObject(pub.transactionId)) {
2630
- pub.transactionId++;
2631
- }
2632
- } catch(e) {
2633
- } finally {
2634
- return o;
2635
- }
2636
- }
2637
-
2638
- // private
2639
- function createXhrObject(transactionId) {
2640
- var http;
2641
-
2642
- try {
2643
- http = new XMLHttpRequest();
2644
- } catch(e) {
2645
- for (var i = 0; i < activeX.length; ++i) {
2646
- try {
2647
- http = new ActiveXObject(activeX[i]);
2648
- break;
2649
- } catch(e) {}
2650
- }
2651
- } finally {
2652
- return {conn : http, tId : transactionId};
2653
- }
2654
- }
2655
-
2656
- var pub = {
2657
- request : function(method, uri, cb, data, options) {
2658
- if(options){
2659
- var me = this,
2660
- xmlData = options.xmlData,
2661
- jsonData = options.jsonData,
2662
- hs;
2663
-
2664
- Ext.applyIf(me, options);
2665
-
2666
- if(xmlData || jsonData){
2667
- hs = me.headers;
2668
- if(!hs || !hs[CONTENTTYPE]){
2669
- initHeader(CONTENTTYPE, xmlData ? 'text/xml' : 'application/json');
2670
- }
2671
- data = xmlData || (!Ext.isPrimitive(jsonData) ? Ext.encode(jsonData) : jsonData);
2672
- }
2673
- }
2674
- return asyncRequest(method || options.method || "POST", uri, cb, data);
2675
- },
2676
-
2677
- serializeForm : function(form) {
2678
- var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements,
2679
- hasSubmit = false,
2680
- encoder = encodeURIComponent,
2681
- element,
2682
- options,
2683
- name,
2684
- val,
2685
- data = '',
2686
- type;
2687
-
2688
- Ext.each(fElements, function(element) {
2689
- name = element.name;
2690
- type = element.type;
2691
-
2692
- if (!element.disabled && name){
2693
- if(/select-(one|multiple)/i.test(type)) {
2694
- Ext.each(element.options, function(opt) {
2695
- if (opt.selected) {
2696
- data += String.format("{0}={1}&", encoder(name), encoder((opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttribute('value') !== null) ? opt.value : opt.text));
2697
- }
2698
- });
2699
- } else if(!/file|undefined|reset|button/i.test(type)) {
2700
- if(!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)){
2701
-
2702
- data += encoder(name) + '=' + encoder(element.value) + '&';
2703
- hasSubmit = /submit/i.test(type);
2704
- }
2705
- }
2706
- }
2707
- });
2708
- return data.substr(0, data.length - 1);
2709
- },
2710
-
2711
- useDefaultHeader : true,
2712
- defaultPostHeader : 'application/x-www-form-urlencoded; charset=UTF-8',
2713
- useDefaultXhrHeader : true,
2714
- defaultXhrHeader : 'XMLHttpRequest',
2715
- poll : {},
2716
- timeout : {},
2717
- conn: {},
2718
- pollInterval : 50,
2719
- transactionId : 0,
2720
-
2721
- // This is never called - Is it worth exposing this?
2722
- // setProgId : function(id) {
2723
- // activeX.unshift(id);
2724
- // },
2725
-
2726
- // This is never called - Is it worth exposing this?
2727
- // setDefaultPostHeader : function(b) {
2728
- // this.useDefaultHeader = b;
2729
- // },
2730
-
2731
- // This is never called - Is it worth exposing this?
2732
- // setDefaultXhrHeader : function(b) {
2733
- // this.useDefaultXhrHeader = b;
2734
- // },
2735
-
2736
- // This is never called - Is it worth exposing this?
2737
- // setPollingInterval : function(i) {
2738
- // if (typeof i == 'number' && isFinite(i)) {
2739
- // this.pollInterval = i;
2740
- // }
2741
- // },
2742
-
2743
- // This is never called - Is it worth exposing this?
2744
- // resetDefaultHeaders : function() {
2745
- // this.defaultHeaders = null;
2746
- // },
2747
-
2748
- abort : function(o, callback, isTimeout) {
2749
- var me = this,
2750
- tId = o.tId,
2751
- isAbort = false;
2752
-
2753
- if (me.isCallInProgress(o)) {
2754
- o.conn.abort();
2755
- clearInterval(me.poll[tId]);
2756
- me.poll[tId] = null;
2757
- clearTimeout(pub.timeout[tId]);
2758
- me.timeout[tId] = null;
2759
-
2760
- handleTransactionResponse(o, callback, (isAbort = true), isTimeout);
2761
- }
2762
- return isAbort;
2763
- },
2764
-
2765
- isCallInProgress : function(o) {
2766
- // if there is a connection and readyState is not 0 or 4
2767
- return o.conn && !{0:true,4:true}[o.conn.readyState];
2768
- }
2769
- };
2770
- return pub;
2771
- }(); Ext.lib.Region = function(t, r, b, l) {
2772
- var me = this;
2773
- me.top = t;
2774
- me[1] = t;
2775
- me.right = r;
2776
- me.bottom = b;
2777
- me.left = l;
2778
- me[0] = l;
2779
- };
2780
-
2781
- Ext.lib.Region.prototype = {
2782
- contains : function(region) {
2783
- var me = this;
2784
- return ( region.left >= me.left &&
2785
- region.right <= me.right &&
2786
- region.top >= me.top &&
2787
- region.bottom <= me.bottom );
2788
-
2789
- },
2790
-
2791
- getArea : function() {
2792
- var me = this;
2793
- return ( (me.bottom - me.top) * (me.right - me.left) );
2794
- },
2795
-
2796
- intersect : function(region) {
2797
- var me = this,
2798
- t = Math.max(me.top, region.top),
2799
- r = Math.min(me.right, region.right),
2800
- b = Math.min(me.bottom, region.bottom),
2801
- l = Math.max(me.left, region.left);
2802
-
2803
- if (b >= t && r >= l) {
2804
- return new Ext.lib.Region(t, r, b, l);
2805
- }
2806
- },
2807
-
2808
- union : function(region) {
2809
- var me = this,
2810
- t = Math.min(me.top, region.top),
2811
- r = Math.max(me.right, region.right),
2812
- b = Math.max(me.bottom, region.bottom),
2813
- l = Math.min(me.left, region.left);
2814
-
2815
- return new Ext.lib.Region(t, r, b, l);
2816
- },
2817
-
2818
- constrainTo : function(r) {
2819
- var me = this;
2820
- me.top = me.top.constrain(r.top, r.bottom);
2821
- me.bottom = me.bottom.constrain(r.top, r.bottom);
2822
- me.left = me.left.constrain(r.left, r.right);
2823
- me.right = me.right.constrain(r.left, r.right);
2824
- return me;
2825
- },
2826
-
2827
- adjust : function(t, l, b, r) {
2828
- var me = this;
2829
- me.top += t;
2830
- me.left += l;
2831
- me.right += r;
2832
- me.bottom += b;
2833
- return me;
2834
- }
2835
- };
2836
-
2837
- Ext.lib.Region.getRegion = function(el) {
2838
- var p = Ext.lib.Dom.getXY(el),
2839
- t = p[1],
2840
- r = p[0] + el.offsetWidth,
2841
- b = p[1] + el.offsetHeight,
2842
- l = p[0];
2843
-
2844
- return new Ext.lib.Region(t, r, b, l);
2845
- }; Ext.lib.Point = function(x, y) {
2846
- if (Ext.isArray(x)) {
2847
- y = x[1];
2848
- x = x[0];
2849
- }
2850
- var me = this;
2851
- me.x = me.right = me.left = me[0] = x;
2852
- me.y = me.top = me.bottom = me[1] = y;
2853
- };
2854
-
2855
- Ext.lib.Point.prototype = new Ext.lib.Region();
2856
- (function(){
2857
- var EXTLIB = Ext.lib,
2858
- noNegatives = /width|height|opacity|padding/i,
2859
- offsetAttribute = /^((width|height)|(top|left))$/,
2860
- defaultUnit = /width|height|top$|bottom$|left$|right$/i,
2861
- offsetUnit = /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,
2862
- isset = function(v){
2863
- return typeof v !== 'undefined';
2864
- },
2865
- now = function(){
2866
- return new Date();
2867
- };
2868
-
2869
- EXTLIB.Anim = {
2870
- motion : function(el, args, duration, easing, cb, scope) {
2871
- return this.run(el, args, duration, easing, cb, scope, Ext.lib.Motion);
2872
- },
2873
-
2874
- run : function(el, args, duration, easing, cb, scope, type) {
2875
- type = type || Ext.lib.AnimBase;
2876
- if (typeof easing == "string") {
2877
- easing = Ext.lib.Easing[easing];
2878
- }
2879
- var anim = new type(el, args, duration, easing);
2880
- anim.animateX(function() {
2881
- if(Ext.isFunction(cb)){
2882
- cb.call(scope);
2883
- }
2884
- });
2885
- return anim;
2886
- }
2887
- };
2888
-
2889
- EXTLIB.AnimBase = function(el, attributes, duration, method) {
2890
- if (el) {
2891
- this.init(el, attributes, duration, method);
2892
- }
2893
- };
2894
-
2895
- EXTLIB.AnimBase.prototype = {
2896
- doMethod: function(attr, start, end) {
2897
- var me = this;
2898
- return me.method(me.curFrame, start, end - start, me.totalFrames);
2899
- },
2900
-
2901
-
2902
- setAttr: function(attr, val, unit) {
2903
- if (noNegatives.test(attr) && val < 0) {
2904
- val = 0;
2905
- }
2906
- Ext.fly(this.el, '_anim').setStyle(attr, val + unit);
2907
- },
2908
-
2909
-
2910
- getAttr: function(attr) {
2911
- var el = Ext.fly(this.el),
2912
- val = el.getStyle(attr),
2913
- a = offsetAttribute.exec(attr) || [];
2914
-
2915
- if (val !== 'auto' && !offsetUnit.test(val)) {
2916
- return parseFloat(val);
2917
- }
2918
-
2919
- return (!!(a[2]) || (el.getStyle('position') == 'absolute' && !!(a[3]))) ? el.dom['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)] : 0;
2920
- },
2921
-
2922
-
2923
- getDefaultUnit: function(attr) {
2924
- return defaultUnit.test(attr) ? 'px' : '';
2925
- },
2926
-
2927
- animateX : function(callback, scope) {
2928
- var me = this,
2929
- f = function() {
2930
- me.onComplete.removeListener(f);
2931
- if (Ext.isFunction(callback)) {
2932
- callback.call(scope || me, me);
2933
- }
2934
- };
2935
- me.onComplete.addListener(f, me);
2936
- me.animate();
2937
- },
2938
-
2939
-
2940
- setRunAttr: function(attr) {
2941
- var me = this,
2942
- a = this.attributes[attr],
2943
- to = a.to,
2944
- by = a.by,
2945
- from = a.from,
2946
- unit = a.unit,
2947
- ra = (this.runAttrs[attr] = {}),
2948
- end;
2949
-
2950
- if (!isset(to) && !isset(by)){
2951
- return false;
2952
- }
2953
-
2954
- var start = isset(from) ? from : me.getAttr(attr);
2955
- if (isset(to)) {
2956
- end = to;
2957
- }else if(isset(by)) {
2958
- if (Ext.isArray(start)){
2959
- end = [];
2960
- for(var i=0,len=start.length; i<len; i++) {
2961
- end[i] = start[i] + by[i];
2962
- }
2963
- }else{
2964
- end = start + by;
2965
- }
2966
- }
2967
-
2968
- Ext.apply(ra, {
2969
- start: start,
2970
- end: end,
2971
- unit: isset(unit) ? unit : me.getDefaultUnit(attr)
2972
- });
2973
- },
2974
-
2975
-
2976
- init: function(el, attributes, duration, method) {
2977
- var me = this,
2978
- actualFrames = 0,
2979
- mgr = EXTLIB.AnimMgr;
2980
-
2981
- Ext.apply(me, {
2982
- isAnimated: false,
2983
- startTime: null,
2984
- el: Ext.getDom(el),
2985
- attributes: attributes || {},
2986
- duration: duration || 1,
2987
- method: method || EXTLIB.Easing.easeNone,
2988
- useSec: true,
2989
- curFrame: 0,
2990
- totalFrames: mgr.fps,
2991
- runAttrs: {},
2992
- animate: function(){
2993
- var me = this,
2994
- d = me.duration;
2995
-
2996
- if(me.isAnimated){
2997
- return false;
2998
- }
2999
-
3000
- me.curFrame = 0;
3001
- me.totalFrames = me.useSec ? Math.ceil(mgr.fps * d) : d;
3002
- mgr.registerElement(me);
3003
- },
3004
-
3005
- stop: function(finish){
3006
- var me = this;
3007
-
3008
- if(finish){
3009
- me.curFrame = me.totalFrames;
3010
- me._onTween.fire();
3011
- }
3012
- mgr.stop(me);
3013
- }
3014
- });
3015
-
3016
- var onStart = function(){
3017
- var me = this,
3018
- attr;
3019
-
3020
- me.onStart.fire();
3021
- me.runAttrs = {};
3022
- for(attr in this.attributes){
3023
- this.setRunAttr(attr);
3024
- }
3025
-
3026
- me.isAnimated = true;
3027
- me.startTime = now();
3028
- actualFrames = 0;
3029
- };
3030
-
3031
-
3032
- var onTween = function(){
3033
- var me = this;
3034
-
3035
- me.onTween.fire({
3036
- duration: now() - me.startTime,
3037
- curFrame: me.curFrame
3038
- });
3039
-
3040
- var ra = me.runAttrs;
3041
- for (var attr in ra) {
3042
- this.setAttr(attr, me.doMethod(attr, ra[attr].start, ra[attr].end), ra[attr].unit);
3043
- }
3044
-
3045
- ++actualFrames;
3046
- };
3047
-
3048
- var onComplete = function() {
3049
- var me = this,
3050
- actual = (now() - me.startTime) / 1000,
3051
- data = {
3052
- duration: actual,
3053
- frames: actualFrames,
3054
- fps: actualFrames / actual
3055
- };
3056
-
3057
- me.isAnimated = false;
3058
- actualFrames = 0;
3059
- me.onComplete.fire(data);
3060
- };
3061
-
3062
- me.onStart = new Ext.util.Event(me);
3063
- me.onTween = new Ext.util.Event(me);
3064
- me.onComplete = new Ext.util.Event(me);
3065
- (me._onStart = new Ext.util.Event(me)).addListener(onStart);
3066
- (me._onTween = new Ext.util.Event(me)).addListener(onTween);
3067
- (me._onComplete = new Ext.util.Event(me)).addListener(onComplete);
3068
- }
3069
- };
3070
-
3071
-
3072
- Ext.lib.AnimMgr = new function() {
3073
- var me = this,
3074
- thread = null,
3075
- queue = [],
3076
- tweenCount = 0;
3077
-
3078
-
3079
- Ext.apply(me, {
3080
- fps: 1000,
3081
- delay: 1,
3082
- registerElement: function(tween){
3083
- queue.push(tween);
3084
- ++tweenCount;
3085
- tween._onStart.fire();
3086
- me.start();
3087
- },
3088
-
3089
- unRegister: function(tween, index){
3090
- tween._onComplete.fire();
3091
- index = index || getIndex(tween);
3092
- if (index != -1) {
3093
- queue.splice(index, 1);
3094
- }
3095
-
3096
- if (--tweenCount <= 0) {
3097
- me.stop();
3098
- }
3099
- },
3100
-
3101
- start: function(){
3102
- if(thread === null){
3103
- thread = setInterval(me.run, me.delay);
3104
- }
3105
- },
3106
-
3107
- stop: function(tween){
3108
- if(!tween){
3109
- clearInterval(thread);
3110
- for(var i = 0, len = queue.length; i < len; ++i){
3111
- if(queue[0].isAnimated){
3112
- me.unRegister(queue[0], 0);
3113
- }
3114
- }
3115
-
3116
- queue = [];
3117
- thread = null;
3118
- tweenCount = 0;
3119
- }else{
3120
- me.unRegister(tween);
3121
- }
3122
- },
3123
-
3124
- run: function(){
3125
- var tf, i, len, tween;
3126
- for(i = 0, len = queue.length; i<len; i++) {
3127
- tween = queue[i];
3128
- if(tween && tween.isAnimated){
3129
- tf = tween.totalFrames;
3130
- if(tween.curFrame < tf || tf === null){
3131
- ++tween.curFrame;
3132
- if(tween.useSec){
3133
- correctFrame(tween);
3134
- }
3135
- tween._onTween.fire();
3136
- }else{
3137
- me.stop(tween);
3138
- }
3139
- }
3140
- }
3141
- }
3142
- });
3143
-
3144
- var getIndex = function(anim) {
3145
- var i, len;
3146
- for(i = 0, len = queue.length; i<len; i++) {
3147
- if(queue[i] === anim) {
3148
- return i;
3149
- }
3150
- }
3151
- return -1;
3152
- };
3153
-
3154
- var correctFrame = function(tween) {
3155
- var frames = tween.totalFrames,
3156
- frame = tween.curFrame,
3157
- duration = tween.duration,
3158
- expected = (frame * duration * 1000 / frames),
3159
- elapsed = (now() - tween.startTime),
3160
- tweak = 0;
3161
-
3162
- if(elapsed < duration * 1000){
3163
- tweak = Math.round((elapsed / expected - 1) * frame);
3164
- }else{
3165
- tweak = frames - (frame + 1);
3166
- }
3167
- if(tweak > 0 && isFinite(tweak)){
3168
- if(tween.curFrame + tweak >= frames){
3169
- tweak = frames - (frame + 1);
3170
- }
3171
- tween.curFrame += tweak;
3172
- }
3173
- };
3174
- };
3175
-
3176
- EXTLIB.Bezier = new function() {
3177
-
3178
- this.getPosition = function(points, t) {
3179
- var n = points.length,
3180
- tmp = [],
3181
- c = 1 - t,
3182
- i,
3183
- j;
3184
-
3185
- for (i = 0; i < n; ++i) {
3186
- tmp[i] = [points[i][0], points[i][1]];
3187
- }
3188
-
3189
- for (j = 1; j < n; ++j) {
3190
- for (i = 0; i < n - j; ++i) {
3191
- tmp[i][0] = c * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
3192
- tmp[i][1] = c * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
3193
- }
3194
- }
3195
-
3196
- return [ tmp[0][0], tmp[0][1] ];
3197
-
3198
- };
3199
- };
3200
-
3201
-
3202
- EXTLIB.Easing = {
3203
- easeNone: function (t, b, c, d) {
3204
- return c * t / d + b;
3205
- },
3206
-
3207
-
3208
- easeIn: function (t, b, c, d) {
3209
- return c * (t /= d) * t + b;
3210
- },
3211
-
3212
-
3213
- easeOut: function (t, b, c, d) {
3214
- return -c * (t /= d) * (t - 2) + b;
3215
- }
3216
- };
3217
-
3218
- (function() {
3219
- EXTLIB.Motion = function(el, attributes, duration, method) {
3220
- if (el) {
3221
- EXTLIB.Motion.superclass.constructor.call(this, el, attributes, duration, method);
3222
- }
3223
- };
3224
-
3225
- Ext.extend(EXTLIB.Motion, Ext.lib.AnimBase);
3226
-
3227
- var superclass = EXTLIB.Motion.superclass,
3228
- proto = EXTLIB.Motion.prototype,
3229
- pointsRe = /^points$/i;
3230
-
3231
- Ext.apply(EXTLIB.Motion.prototype, {
3232
- setAttr: function(attr, val, unit){
3233
- var me = this,
3234
- setAttr = superclass.setAttr;
3235
-
3236
- if (pointsRe.test(attr)) {
3237
- unit = unit || 'px';
3238
- setAttr.call(me, 'left', val[0], unit);
3239
- setAttr.call(me, 'top', val[1], unit);
3240
- } else {
3241
- setAttr.call(me, attr, val, unit);
3242
- }
3243
- },
3244
-
3245
- getAttr: function(attr){
3246
- var me = this,
3247
- getAttr = superclass.getAttr;
3248
-
3249
- return pointsRe.test(attr) ? [getAttr.call(me, 'left'), getAttr.call(me, 'top')] : getAttr.call(me, attr);
3250
- },
3251
-
3252
- doMethod: function(attr, start, end){
3253
- var me = this;
3254
-
3255
- return pointsRe.test(attr)
3256
- ? EXTLIB.Bezier.getPosition(me.runAttrs[attr], me.method(me.curFrame, 0, 100, me.totalFrames) / 100)
3257
- : superclass.doMethod.call(me, attr, start, end);
3258
- },
3259
-
3260
- setRunAttr: function(attr){
3261
- if(pointsRe.test(attr)){
3262
-
3263
- var me = this,
3264
- el = this.el,
3265
- points = this.attributes.points,
3266
- control = points.control || [],
3267
- from = points.from,
3268
- to = points.to,
3269
- by = points.by,
3270
- DOM = EXTLIB.Dom,
3271
- start,
3272
- i,
3273
- end,
3274
- len,
3275
- ra;
3276
-
3277
-
3278
- if(control.length > 0 && !Ext.isArray(control[0])){
3279
- control = [control];
3280
- }else{
3281
- /*
3282
- var tmp = [];
3283
- for (i = 0,len = control.length; i < len; ++i) {
3284
- tmp[i] = control[i];
3285
- }
3286
- control = tmp;
3287
- */
3288
- }
3289
-
3290
- Ext.fly(el, '_anim').position();
3291
- DOM.setXY(el, isset(from) ? from : DOM.getXY(el));
3292
- start = me.getAttr('points');
3293
-
3294
-
3295
- if(isset(to)){
3296
- end = translateValues.call(me, to, start);
3297
- for (i = 0,len = control.length; i < len; ++i) {
3298
- control[i] = translateValues.call(me, control[i], start);
3299
- }
3300
- } else if (isset(by)) {
3301
- end = [start[0] + by[0], start[1] + by[1]];
3302
-
3303
- for (i = 0,len = control.length; i < len; ++i) {
3304
- control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
3305
- }
3306
- }
3307
-
3308
- ra = this.runAttrs[attr] = [start];
3309
- if (control.length > 0) {
3310
- ra = ra.concat(control);
3311
- }
3312
-
3313
- ra[ra.length] = end;
3314
- }else{
3315
- superclass.setRunAttr.call(this, attr);
3316
- }
3317
- }
3318
- });
3319
-
3320
- var translateValues = function(val, start) {
3321
- var pageXY = EXTLIB.Dom.getXY(this.el);
3322
- return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]];
3323
- };
3324
- })();
3325
- })();// Easing functions
3326
- (function(){
3327
- // shortcuts to aid compression
3328
- var abs = Math.abs,
3329
- pi = Math.PI,
3330
- asin = Math.asin,
3331
- pow = Math.pow,
3332
- sin = Math.sin,
3333
- EXTLIB = Ext.lib;
3334
-
3335
- Ext.apply(EXTLIB.Easing, {
3336
-
3337
- easeBoth: function (t, b, c, d) {
3338
- return ((t /= d / 2) < 1) ? c / 2 * t * t + b : -c / 2 * ((--t) * (t - 2) - 1) + b;
3339
- },
3340
-
3341
- easeInStrong: function (t, b, c, d) {
3342
- return c * (t /= d) * t * t * t + b;
3343
- },
3344
-
3345
- easeOutStrong: function (t, b, c, d) {
3346
- return -c * ((t = t / d - 1) * t * t * t - 1) + b;
3347
- },
3348
-
3349
- easeBothStrong: function (t, b, c, d) {
3350
- return ((t /= d / 2) < 1) ? c / 2 * t * t * t * t + b : -c / 2 * ((t -= 2) * t * t * t - 2) + b;
3351
- },
3352
-
3353
- elasticIn: function (t, b, c, d, a, p) {
3354
- if (t == 0 || (t /= d) == 1) {
3355
- return t == 0 ? b : b + c;
3356
- }
3357
- p = p || (d * .3);
3358
-
3359
- var s;
3360
- if (a >= abs(c)) {
3361
- s = p / (2 * pi) * asin(c / a);
3362
- } else {
3363
- a = c;
3364
- s = p / 4;
3365
- }
3366
-
3367
- return -(a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b;
3368
-
3369
- },
3370
-
3371
- elasticOut: function (t, b, c, d, a, p) {
3372
- if (t == 0 || (t /= d) == 1) {
3373
- return t == 0 ? b : b + c;
3374
- }
3375
- p = p || (d * .3);
3376
-
3377
- var s;
3378
- if (a >= abs(c)) {
3379
- s = p / (2 * pi) * asin(c / a);
3380
- } else {
3381
- a = c;
3382
- s = p / 4;
3383
- }
3384
-
3385
- return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b;
3386
- },
3387
-
3388
- elasticBoth: function (t, b, c, d, a, p) {
3389
- if (t == 0 || (t /= d / 2) == 2) {
3390
- return t == 0 ? b : b + c;
3391
- }
3392
-
3393
- p = p || (d * (.3 * 1.5));
3394
-
3395
- var s;
3396
- if (a >= abs(c)) {
3397
- s = p / (2 * pi) * asin(c / a);
3398
- } else {
3399
- a = c;
3400
- s = p / 4;
3401
- }
3402
-
3403
- return t < 1 ?
3404
- -.5 * (a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b :
3405
- a * pow(2, -10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p) * .5 + c + b;
3406
- },
3407
-
3408
- backIn: function (t, b, c, d, s) {
3409
- s = s || 1.70158;
3410
- return c * (t /= d) * t * ((s + 1) * t - s) + b;
3411
- },
3412
-
3413
-
3414
- backOut: function (t, b, c, d, s) {
3415
- if (!s) {
3416
- s = 1.70158;
3417
- }
3418
- return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
3419
- },
3420
-
3421
-
3422
- backBoth: function (t, b, c, d, s) {
3423
- s = s || 1.70158;
3424
-
3425
- return ((t /= d / 2 ) < 1) ?
3426
- c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b :
3427
- c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
3428
- },
3429
-
3430
-
3431
- bounceIn: function (t, b, c, d) {
3432
- return c - EXTLIB.Easing.bounceOut(d - t, 0, c, d) + b;
3433
- },
3434
-
3435
-
3436
- bounceOut: function (t, b, c, d) {
3437
- if ((t /= d) < (1 / 2.75)) {
3438
- return c * (7.5625 * t * t) + b;
3439
- } else if (t < (2 / 2.75)) {
3440
- return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
3441
- } else if (t < (2.5 / 2.75)) {
3442
- return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
3443
- }
3444
- return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
3445
- },
3446
-
3447
-
3448
- bounceBoth: function (t, b, c, d) {
3449
- return (t < d / 2) ?
3450
- EXTLIB.Easing.bounceIn(t * 2, 0, c, d) * .5 + b :
3451
- EXTLIB.Easing.bounceOut(t * 2 - d, 0, c, d) * .5 + c * .5 + b;
3452
- }
3453
- });
3454
- })();
3455
-
3456
- (function() {
3457
- var EXTLIB = Ext.lib;
3458
- // Color Animation
3459
- EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
3460
- return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.ColorAnim);
3461
- }
3462
-
3463
- EXTLIB.ColorAnim = function(el, attributes, duration, method) {
3464
- EXTLIB.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
3465
- };
3466
-
3467
- Ext.extend(EXTLIB.ColorAnim, EXTLIB.AnimBase);
3468
-
3469
- var superclass = EXTLIB.ColorAnim.superclass,
3470
- colorRE = /color$/i,
3471
- transparentRE = /^transparent|rgba\(0, 0, 0, 0\)$/,
3472
- rgbRE = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
3473
- hexRE= /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
3474
- hex3RE = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,
3475
- isset = function(v){
3476
- return typeof v !== 'undefined';
3477
- };
3478
-
3479
- // private
3480
- function parseColor(s) {
3481
- var pi = parseInt,
3482
- base,
3483
- out = null,
3484
- c;
3485
-
3486
- if (s.length == 3) {
3487
- return s;
3488
- }
3489
-
3490
- Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){
3491
- base = (idx % 2 == 0) ? 16 : 10;
3492
- c = re.exec(s);
3493
- if(c && c.length == 4){
3494
- out = [pi(c[1], base), pi(c[2], base), pi(c[3], base)];
3495
- return false;
3496
- }
3497
- });
3498
- return out;
3499
- }
3500
-
3501
- Ext.apply(EXTLIB.ColorAnim.prototype, {
3502
- getAttr : function(attr) {
3503
- var me = this,
3504
- el = me.el,
3505
- val;
3506
- if(colorRE.test(attr)){
3507
- while(el && transparentRE.test(val = Ext.fly(el).getStyle(attr))){
3508
- el = el.parentNode;
3509
- val = "fff";
3510
- }
3511
- }else{
3512
- val = superclass.getAttr.call(me, attr);
3513
- }
3514
- return val;
3515
- },
3516
-
3517
- doMethod : function(attr, start, end) {
3518
- var me = this,
3519
- val,
3520
- floor = Math.floor,
3521
- i,
3522
- len,
3523
- v;
3524
-
3525
- if(colorRE.test(attr)){
3526
- val = [];
3527
- end = end || [];
3528
-
3529
- for(i = 0, len = start.length; i < len; i++) {
3530
- v = start[i];
3531
- val[i] = superclass.doMethod.call(me, attr, v, end[i]);
3532
- }
3533
- val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';
3534
- }else{
3535
- val = superclass.doMethod.call(me, attr, start, end);
3536
- }
3537
- return val;
3538
- },
3539
-
3540
- setRunAttr : function(attr) {
3541
- var me = this,
3542
- a = me.attributes[attr],
3543
- to = a.to,
3544
- by = a.by,
3545
- ra;
3546
-
3547
- superclass.setRunAttr.call(me, attr);
3548
- ra = me.runAttrs[attr];
3549
- if(colorRE.test(attr)){
3550
- var start = parseColor(ra.start),
3551
- end = parseColor(ra.end);
3552
-
3553
- if(!isset(to) && isset(by)){
3554
- end = parseColor(by);
3555
- for(var i=0,len=start.length; i<len; i++) {
3556
- end[i] = start[i] + end[i];
3557
- }
3558
- }
3559
- ra.start = start;
3560
- ra.end = end;
3561
- }
3562
- }
3563
- });
3564
- })();
3565
-
3566
-
3567
- (function() {
3568
- // Scroll Animation
3569
- var EXTLIB = Ext.lib;
3570
- EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
3571
- return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.Scroll);
3572
- };
3573
-
3574
- EXTLIB.Scroll = function(el, attributes, duration, method) {
3575
- if(el){
3576
- EXTLIB.Scroll.superclass.constructor.call(this, el, attributes, duration, method);
3577
- }
3578
- };
3579
-
3580
- Ext.extend(EXTLIB.Scroll, EXTLIB.ColorAnim);
3581
-
3582
- var superclass = EXTLIB.Scroll.superclass,
3583
- SCROLL = 'scroll';
3584
-
3585
- Ext.apply(EXTLIB.Scroll.prototype, {
3586
-
3587
- doMethod : function(attr, start, end) {
3588
- var val,
3589
- me = this,
3590
- curFrame = me.curFrame,
3591
- totalFrames = me.totalFrames;
3592
-
3593
- if(attr == SCROLL){
3594
- val = [me.method(curFrame, start[0], end[0] - start[0], totalFrames),
3595
- me.method(curFrame, start[1], end[1] - start[1], totalFrames)];
3596
- }else{
3597
- val = superclass.doMethod.call(me, attr, start, end);
3598
- }
3599
- return val;
3600
- },
3601
-
3602
- getAttr : function(attr) {
3603
- var me = this;
3604
-
3605
- if (attr == SCROLL) {
3606
- return [me.el.scrollLeft, me.el.scrollTop];
3607
- }else{
3608
- return superclass.getAttr.call(me, attr);
3609
- }
3610
- },
3611
-
3612
- setAttr : function(attr, val, unit) {
3613
- var me = this;
3614
-
3615
- if(attr == SCROLL){
3616
- me.el.scrollLeft = val[0];
3617
- me.el.scrollTop = val[1];
3618
- }else{
3619
- superclass.setAttr.call(me, attr, val, unit);
3620
- }
3621
- }
3622
- });
3623
- })();
3624
- if(Ext.isIE) {
3625
- function fnCleanUp() {
3626
- var p = Function.prototype;
3627
- delete p.createSequence;
3628
- delete p.defer;
3629
- delete p.createDelegate;
3630
- delete p.createCallback;
3631
- delete p.createInterceptor;
3632
-
3633
- window.detachEvent("onunload", fnCleanUp);
3634
- }
3635
- window.attachEvent("onunload", fnCleanUp);
3636
- }
3637
- })();