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.
- data/.rspec +2 -0
- data/CHANGELOG.textile +21 -0
- data/Gemfile +40 -23
- data/Gemfile.lock +181 -0
- data/README.textile +0 -1
- data/Rakefile +28 -23
- data/bin/rwiki +15 -5
- data/bin/rwiki-migrate +11 -0
- data/config.ru +4 -3
- data/config/assets.yml +52 -0
- data/config/config.yml.example +1 -1
- data/config/deploy.rb +5 -8
- data/features/create_page.feature +46 -43
- data/features/delete_page.feature +17 -19
- data/features/display_page.feature +19 -21
- data/features/edit_page.feature +76 -0
- data/features/fuzzy_finder.feature +2 -3
- data/features/history.feature +27 -48
- data/features/internal_links.feature +10 -0
- data/features/loading_mask.feature +18 -0
- data/features/move_page.feature +36 -0
- data/features/rename_node.feature +78 -0
- data/features/step_definitions/common_steps.rb +69 -13
- data/features/step_definitions/dialog_box_steps.rb +1 -1
- data/features/step_definitions/history_steps.rb +4 -0
- data/features/step_definitions/tab_panel_steps.rb +12 -2
- data/features/step_definitions/toolbar_steps.rb +7 -0
- data/features/step_definitions/tree_panel_steps.rb +69 -37
- data/features/support/env.rb +22 -12
- data/features/support/paths.rb +1 -1
- data/features/tab_contextmenu.feature +44 -0
- data/features/tab_panel.feature +17 -31
- data/features/tree_panel.feature +20 -17
- data/lib/rwiki.rb +15 -7
- data/lib/rwiki/app.rb +68 -44
- data/lib/rwiki/configuration.rb +24 -12
- data/lib/rwiki/page.rb +190 -0
- data/lib/rwiki/rake.rb +5 -0
- data/lib/rwiki/rake/migrate.rb +73 -0
- data/lib/rwiki/utils.rb +6 -0
- data/lib/rwiki/utils/file_helper.rb +117 -0
- data/lib/rwiki/utils/textile_helper.rb +69 -0
- data/lib/rwiki/version.rb +10 -0
- data/{test/fixtures/pages/Info/dummy → log/.gitkeep} +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/corners-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/l-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/l.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/r-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/r.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/tb-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/box/tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/group-cs.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/group-lr.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/group-tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-b-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-b.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-bo.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow-o.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/button/s-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/editor/tb-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/checkbox.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/clear-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/clear-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/date-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/date-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/error-tip-corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/exclamation.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/radio.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/search-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/search-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/text-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger-tpl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/form/trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/arrow-left-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/arrow-right-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/col-move-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/col-move-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/columns.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/dirty.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/done.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/footer-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-blue-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-blue-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid-vista-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hd-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hrow-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-special-col-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-by.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/group-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hd-pop.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-lock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-lock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-unlock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/hmenu-unlock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/invalid_line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/mso-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/nowait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-first-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-first.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-last-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-last.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-next-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-next.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-prev-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/page-prev.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/pick-button.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/refresh.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-check-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/row-sel.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort_asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/sort_desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/grid/wait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/group-checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/item-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/menu-parent.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/menu.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/menu/unchecked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/light-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/tool-sprite-tpl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/tool-sprites.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/tools-sprites-trans.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/panel/white-top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/progress/progress-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/qtip/close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/qtip/tip-anchor-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/qtip/tip-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/shared/glass-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/shared/hd-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/shared/left-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/shared/right-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/e-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/ne-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/ne-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/nw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/nw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/s-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/se-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/sw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/sizer/sw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-v-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/slider/slider-v-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/scroll-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/scroll-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-btm-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-strip-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tabs/tabs-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-arrow-light.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/btn-over-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/gray-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/more.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/s-arrow-bo.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/toolbar/tb-xl-sep.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/arrows.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-add.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-between.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-under.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-end.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/elbow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/folder-open.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/folder.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/leaf.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/tree/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-error.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-info.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-question.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/icon-warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/left-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/left-right.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/right-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/access/window/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/corners-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/l-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/l.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/r-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/r.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/tb-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/box/tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/group-cs.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/group-lr.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/group-tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-b-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-b.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-bo.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow-o.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/button/s-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-add.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/dd/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/editor/tb-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/checkbox.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/clear-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/clear-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/date-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/date-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/error-tip-corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/exclamation.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/radio.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/search-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/search-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/text-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-square.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger-tpl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/form/trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/arrow-left-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/arrow-right-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/col-move-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/col-move-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/columns.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/dirty.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/done.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/footer-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-blue-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-blue-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid-vista-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hd-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hrow-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-rowheader.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-special-col-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-by.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/group-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hd-pop.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-lock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-lock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-unlock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/hmenu-unlock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/invalid_line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/mso-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/nowait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-first-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-first.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-last-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-last.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-next-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-next.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-prev-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/page-prev.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/pick-button.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/refresh-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/refresh.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-check-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/row-sel.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort_asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/sort_desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/grid/wait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/mini-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/ns-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/ns-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-title-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/panel-title-light-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/stick.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/stuck.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/tab-close-on.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/layout/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/group-checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/item-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/menu-parent.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/menu.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/menu/unchecked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/light-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/tool-sprite-tpl.gif +0 -0
- data/public/{resources/ext/images/yourtheme → images/vendor/ext/default}/panel/tool-sprites.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/tools-sprites-trans.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/panel/white-top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/progress/progress-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/qtip/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/qtip/close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/qtip/tip-anchor-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/qtip/tip-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shadow-c.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shadow-lr.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shadow.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/blue-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/calendar.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/glass-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/hd-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/large-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/left-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/loading-balls.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/right-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/shared/warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/e-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/ne-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/ne-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/nw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/nw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/s-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/se-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/sw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/sizer/sw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-v-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/slider/slider-v-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroll-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroll-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/scroller-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-over-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-over-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-btm-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tabs/tabs-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-arrow-light.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/btn-over-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/gray-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/more.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/toolbar/tb-xl-sep.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/arrows.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-add.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-between.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-under.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-end.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/elbow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/folder-open.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/folder.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/leaf.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/tree/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-error.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-info.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-question.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/icon-warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/left-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/left-corners.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/left-right.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/left-right.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/right-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/right-corners.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/default/window/top-bottom.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-cs.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-lr.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/group-tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/s-arrow-bo.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/button/s-arrow-o.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/form/clear-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/form/date-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/form/search-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/form/trigger-square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/form/trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/col-move-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/col-move-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hd-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow-over2.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-hrow2.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-bg2.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/group-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-first.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-last.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-next.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/page-prev.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/refresh.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/row-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/sort_asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/grid/sort_desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/menu/group-checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/menu/item-over-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/menu/item-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/menu/menu-parent.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/light-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/tool-sprite-tpl.gif +0 -0
- data/public/images/vendor/ext/gray/panel/tool-sprites.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/tools-sprites-trans.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/panel/white-top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/progress/progress-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/tip-anchor-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/qtip/tip-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/shared/hd-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/shared/left-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/shared/right-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/ne-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/nw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/sizer/sw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/slider/slider-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/slider/slider-v-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroll-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroll-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/scroller-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-over-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-over-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-btm-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tabs/tabs-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-arrow-light.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/btn-over-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/gray-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/more.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/tb-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/toolbar/tb-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tree/arrows.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/tree/elbow-end-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-error.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-info.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-question.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/icon-warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/left-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/left-right.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/right-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/gray/window/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-center.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/bg-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/dlg-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/hd-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/basic-dialog/w-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/grid/grid-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/grid/grid-vista-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/ns-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/ns-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-title-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/panel-title-light-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/stick.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/tab-close-on.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/layout/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/qtip/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/qtip/tip-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/e-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/ne-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/ne-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/nw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/nw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/s-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/se-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/sw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/sizer/sw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-btm-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/tabs/tab-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/toolbar/gray-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/vista/toolbar/tb-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/README.txt +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/corners-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/l-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/l.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/r-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/r.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/tb-blue.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/box/tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-cs.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-lr.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/group-tb.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-b-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-b.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-bo.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-noline.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow-o.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/button/s-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-add.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/dd/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/editor/tb-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/checkbox.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/clear-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/clear-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/date-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/date-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/error-tip-corners.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/exclamation.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/radio.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/search-trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/search-trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/text-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-square.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger-tpl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/form/trigger.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/arrow-left-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/arrow-right-white.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/col-move-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/col-move-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/columns.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/dirty.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/done.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/footer-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-blue-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-blue-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-split.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid-vista-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hd-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hrow-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-hrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-special-col-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-by.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/group-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hd-pop.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-lock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-lock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-unlock.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/hmenu-unlock.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/invalid_line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/mso-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/nowait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-first-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-first.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-last-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-last.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-next-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-next.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-prev-disabled.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/page-prev.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/pick-button.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/refresh.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-check-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-expand-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/row-sel.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort_asc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/sort_desc.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/grid/wait.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/gradient-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/mini-top.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/ns-collapse.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/ns-expand.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-title-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/panel-title-light-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/stick.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/stuck.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/tab-close-on.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/layout/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/group-checked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/item-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/menu-parent.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/menu.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/menu/unchecked.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/light-hd.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/tool-sprite-tpl.gif +0 -0
- data/public/images/vendor/ext/yourtheme/panel/tool-sprites.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/tools-sprites-trans.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-corners-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-left-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/panel/white-top-bottom.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/progress/progress-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/tip-anchor-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/qtip/tip-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow-c.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow-lr.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shadow.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/blue-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/calendar.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/glass-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/hd-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/large-loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/left-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/loading-balls.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/right-btn.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/shared/warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/e-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/e-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/ne-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/ne-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/nw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/nw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/s-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/s-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/se-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/se-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/square.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/sw-handle-dark.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/sizer/sw-handle.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-v-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/slider/slider-v-thumb.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroll-left.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroll-right.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/scroller-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-over-left-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-over-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-btm-right-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-close.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-bg.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tabs/tabs-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-arrow-light.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-arrow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/btn-over-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/gray-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/more.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-bg.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/toolbar/tb-xl-sep.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/arrows.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-add.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-between.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-no.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-over.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-under.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/drop-yes.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-end.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-line.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-minus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-minus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-plus-nl.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow-plus.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/elbow.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/folder-open.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/folder.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/leaf.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/loading.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/tree/s.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-error.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-info.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-question.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/icon-warning.gif +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-corners.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-right.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/left-right.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/right-corners.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/right-corners.psd +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/top-bottom.png +0 -0
- data/public/{resources/ext/images → images/vendor/ext}/yourtheme/window/top-bottom.psd +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-container.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-bbcode.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-dotclear.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-html.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-json.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-markdown.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-textile.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-wiki.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor-xml.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/bg-editor.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/bold.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/code.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h1.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h2.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h3.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h4.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h5.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/h6.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/handle.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/italic.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/link.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/list-bullet.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/list-numeric.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/menu.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/paragraph.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/picture.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/preview.png +0 -0
- data/public/{resources/markitup/sets/textile/images → images/vendor/markitup}/quotes.png +0 -0
- data/public/{resources/markitup/sets/default/images → images/vendor/markitup}/stroke.png +0 -0
- data/public/{resources/markitup/skins/markitup/images → images/vendor/markitup}/submenu.png +0 -0
- data/public/javascripts/Rwiki.js +95 -40
- data/public/javascripts/Rwiki/AboutDialog.js +32 -0
- data/public/javascripts/Rwiki/Button.js +29 -0
- data/public/javascripts/Rwiki/Data/Page.js +83 -0
- data/public/javascripts/Rwiki/Data/PageManager.js +195 -0
- data/public/javascripts/Rwiki/Debug.js +21 -0
- data/public/javascripts/Rwiki/{EditorPanel/Editor.js → Editor/EditorPanel.js} +43 -23
- data/public/javascripts/Rwiki/EditorWindow.js +68 -26
- data/public/javascripts/Rwiki/ExceptionWindow.js +32 -0
- data/public/javascripts/Rwiki/Flash.js +43 -0
- data/public/javascripts/Rwiki/Mask.js +79 -0
- data/public/javascripts/Rwiki/NavigationPanel.js +1 -1
- data/public/javascripts/Rwiki/PageNameDialog.js +39 -0
- data/public/javascripts/Rwiki/Search/FuzzyFinderWindow.js +37 -0
- data/public/javascripts/Rwiki/Search/TextSearchWindow.js +35 -0
- data/public/javascripts/Rwiki/Search/Window.js +42 -0
- data/public/javascripts/Rwiki/TabPanel.js +62 -74
- data/public/javascripts/Rwiki/Tabs/PageTab.js +47 -0
- data/public/javascripts/Rwiki/Tabs/Toolbar.js +101 -0
- data/public/javascripts/Rwiki/TocPanel.js +55 -0
- data/public/javascripts/Rwiki/Tree/Loader.js +23 -0
- data/public/javascripts/Rwiki/Tree/Menu.js +100 -0
- data/public/javascripts/Rwiki/Tree/Node.js +83 -0
- data/public/javascripts/Rwiki/TreePanel.js +36 -72
- data/public/javascripts/vendor/ext/ext-all.js +6 -6
- data/public/javascripts/vendor/ext/{adapter/jquery/ext-jquery-adapter-debug.js → ext-jquery-adapter-debug.js} +0 -0
- data/public/javascripts/vendor/ext/{adapter/jquery/ext-jquery-adapter.js → ext-jquery-adapter.js} +5 -5
- data/public/javascripts/vendor/jquery/{jquery-1.4.2.js → jquery-1.5.js} +3502 -1566
- data/public/stylesheets/{coderay.css → Rwiki/coderay.css} +4 -0
- data/public/stylesheets/Rwiki/markitup.css +19 -0
- data/public/stylesheets/{page.css → Rwiki/page.css} +2 -7
- data/public/stylesheets/style.css +72 -16
- data/public/{resources/ext/css → stylesheets/vendor/ext}/ext-all.css +258 -293
- data/public/stylesheets/vendor/markitup/sets/textile/style.css +60 -0
- data/public/{resources → stylesheets/vendor}/markitup/skins/markitup/style.css +12 -12
- data/rwiki.gemspec +926 -1056
- data/sandbox/grit.rb +116 -0
- data/script/build_cucumber +24 -0
- data/script/build_jasmine +18 -0
- data/script/build_rspec +13 -0
- data/script/shotgun +2 -0
- data/spec/coffeescripts/Rwiki/Data/PageSpec.coffee +31 -0
- data/spec/coffeescripts/Rwiki/Mask.coffee +6 -0
- data/spec/coffeescripts/Rwiki/TabPanelSpec.coffee +72 -0
- data/spec/coffeescripts/Rwiki/Tabs/PageTabSpec.coffee +7 -0
- data/spec/coffeescripts/Rwiki/Tree/MenuSpec.coffee +95 -0
- data/spec/coffeescripts/Rwiki/TreePanelSpec.coffee +115 -0
- data/spec/fixtures/Home.txt +1 -0
- data/spec/fixtures/Home/About.txt +1 -0
- data/spec/fixtures/Home/Development.txt +5 -0
- data/spec/fixtures/Home/Development/Databases.txt +4 -0
- data/spec/fixtures/Home/Development/Databases/MySQL.txt +5 -0
- data/{test/fixtures/pages/empty_folder/dummy → spec/fixtures/Home/Development/Databases/Oracle.txt} +0 -0
- data/{test/fixtures/pages/folder/subfolder/ruby.txt → spec/fixtures/Home/Development/Databases/Postgres.txt} +0 -0
- data/spec/fixtures/Home/Development/Programming Languages.txt +3 -0
- data/spec/fixtures/Home/Development/Programming Languages/Java.txt +1 -0
- data/test/fixtures/pages/folder/test 1.txt b/data/spec/fixtures/Home/Development/Programming → Languages/JavaScript.txt +0 -0
- data/test/fixtures/pages/subfolder/dummy b/data/spec/fixtures/Home/Development/Programming → Languages/Python.txt +0 -0
- data/spec/fixtures/Home/Development/Programming Languages/Ruby.txt +148 -0
- data/spec/fixtures/Home/Development/test 1.txt b/data/spec/fixtures/Home/Development/test → 1.txt +0 -0
- data/test/fixtures/pages/folder/test 2.txt b/data/spec/fixtures/Home/Development/test → 2.txt +0 -0
- data/{test/fixtures/pages/folder → spec/fixtures/Home/Development}/test.txt +0 -0
- data/spec/fixtures/Home/Personal stuff.txt b/data/spec/fixtures/Home/Personal → stuff.txt +0 -0
- data/spec/fixtures/Home/Personal stuff/Addresses.txt +1 -0
- data/spec/fixtures/Home/Personal stuff/Notes.txt b/data/spec/fixtures/Home/Personal → stuff/Notes.txt +0 -0
- data/spec/javascripts/support/jasmine.yml +10 -8
- data/spec/javascripts/support/jasmine_config.rb +55 -0
- data/spec/javascripts/support/jasmine_runner.rb +15 -4
- data/spec/rwiki/app_spec.rb +71 -0
- data/spec/rwiki/page_spec.rb +254 -0
- data/spec/rwiki/utils/file_helper_spec.rb +252 -0
- data/spec/rwiki/utils/textile_helper_spec.rb +73 -0
- data/spec/rwiki_spec.rb +22 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/support/rwiki_macros.rb +26 -0
- data/spec/support/tmpdir_helper.rb +23 -0
- data/specs.watchr +57 -0
- data/views/index.erb +62 -3
- data/views/print.erb +1 -1
- metadata +918 -1053
- data/VERSION +0 -1
- data/features/editor.feature +0 -49
- data/features/rename_page.feature +0 -88
- data/features/step_definitions/common_transforms.rb +0 -5
- data/features/step_definitions/wait_steps.rb +0 -21
- data/lib/rwiki/models.rb +0 -7
- data/lib/rwiki/models/folder.rb +0 -62
- data/lib/rwiki/models/node.rb +0 -96
- data/lib/rwiki/models/page.rb +0 -110
- data/public/SpecRunner.html +0 -64
- data/public/jasmine/jasmine-html.js +0 -182
- data/public/jasmine/jasmine.css +0 -166
- data/public/jasmine/jasmine.js +0 -2421
- data/public/jasmine/json2.js +0 -478
- data/public/javascripts/Rwiki/EditorPanel.js +0 -45
- data/public/javascripts/Rwiki/FuzzyFinderDialog.js +0 -61
- data/public/javascripts/Rwiki/Node.js +0 -37
- data/public/javascripts/Rwiki/NodeManager.js +0 -177
- data/public/javascripts/Rwiki/TabPanel/PageTab.js +0 -49
- data/public/javascripts/Rwiki/TreePanel/Filter.js +0 -66
- data/public/javascripts/Rwiki/TreePanel/Loader.js +0 -24
- data/public/javascripts/Rwiki/TreePanel/Menu.js +0 -108
- data/public/javascripts/Rwiki/TreePanel/Node.js +0 -60
- data/public/javascripts/Rwiki/TreePanel/Toolbar.js +0 -44
- data/public/javascripts/vendor/ext/adapter/ext/ext-base-debug-w-comments.js +0 -3637
- data/public/javascripts/vendor/ext/adapter/ext/ext-base-debug.js +0 -2886
- data/public/javascripts/vendor/ext/adapter/ext/ext-base.js +0 -7
- data/public/javascripts/vendor/ext/adapter/prototype/ext-prototype-adapter-debug.js +0 -1826
- data/public/javascripts/vendor/ext/adapter/prototype/ext-prototype-adapter.js +0 -7
- data/public/javascripts/vendor/ext/adapter/yui/ext-yui-adapter-debug.js +0 -1592
- data/public/javascripts/vendor/ext/adapter/yui/ext-yui-adapter.js +0 -7
- data/public/javascripts/vendor/ext/ext-all-debug.js +0 -51256
- data/public/javascripts/vendor/jquery/jquery-1.4.2.min.js +0 -154
- data/public/resources/ext/charts.swf +0 -0
- data/public/resources/ext/css/README.txt +0 -6
- data/public/resources/ext/css/debug.css +0 -43
- data/public/resources/ext/css/ext-all-notheme.css +0 -5302
- data/public/resources/ext/css/reset-min.css +0 -7
- data/public/resources/ext/css/structure/borders.css +0 -54
- data/public/resources/ext/css/structure/box.css +0 -80
- data/public/resources/ext/css/structure/button.css +0 -445
- data/public/resources/ext/css/structure/combo.css +0 -45
- data/public/resources/ext/css/structure/core.css +0 -341
- data/public/resources/ext/css/structure/date-picker.css +0 -271
- data/public/resources/ext/css/structure/dd.css +0 -61
- data/public/resources/ext/css/structure/debug.css +0 -26
- data/public/resources/ext/css/structure/dialog.css +0 -59
- data/public/resources/ext/css/structure/editor.css +0 -92
- data/public/resources/ext/css/structure/form.css +0 -573
- data/public/resources/ext/css/structure/grid.css +0 -588
- data/public/resources/ext/css/structure/layout.css +0 -296
- data/public/resources/ext/css/structure/list-view.css +0 -86
- data/public/resources/ext/css/structure/menu.css +0 -245
- data/public/resources/ext/css/structure/panel-reset.css +0 -130
- data/public/resources/ext/css/structure/panel.css +0 -493
- data/public/resources/ext/css/structure/pivotgrid.css +0 -65
- data/public/resources/ext/css/structure/progress.css +0 -46
- data/public/resources/ext/css/structure/qtips.css +0 -153
- data/public/resources/ext/css/structure/reset.css +0 -13
- data/public/resources/ext/css/structure/resizable.css +0 -149
- data/public/resources/ext/css/structure/slider.css +0 -103
- data/public/resources/ext/css/structure/tabs.css +0 -392
- data/public/resources/ext/css/structure/toolbar.css +0 -246
- data/public/resources/ext/css/structure/tree.css +0 -218
- data/public/resources/ext/css/structure/window.css +0 -222
- data/public/resources/ext/css/theme-access/borders.css +0 -25
- data/public/resources/ext/css/theme-access/box.css +0 -74
- data/public/resources/ext/css/theme-access/button.css +0 -136
- data/public/resources/ext/css/theme-access/combo.css +0 -43
- data/public/resources/ext/css/theme-access/core.css +0 -81
- data/public/resources/ext/css/theme-access/date-picker.css +0 -145
- data/public/resources/ext/css/theme-access/dd.css +0 -29
- data/public/resources/ext/css/theme-access/debug.css +0 -24
- data/public/resources/ext/css/theme-access/dialog.css +0 -34
- data/public/resources/ext/css/theme-access/editor.css +0 -16
- data/public/resources/ext/css/theme-access/form.css +0 -176
- data/public/resources/ext/css/theme-access/grid.css +0 -288
- data/public/resources/ext/css/theme-access/layout.css +0 -56
- data/public/resources/ext/css/theme-access/list-view.css +0 -43
- data/public/resources/ext/css/theme-access/menu.css +0 -79
- data/public/resources/ext/css/theme-access/panel.css +0 -94
- data/public/resources/ext/css/theme-access/progress.css +0 -35
- data/public/resources/ext/css/theme-access/qtips.css +0 -44
- data/public/resources/ext/css/theme-access/resizable.css +0 -44
- data/public/resources/ext/css/theme-access/slider.css +0 -21
- data/public/resources/ext/css/theme-access/tabs.css +0 -119
- data/public/resources/ext/css/theme-access/toolbar.css +0 -120
- data/public/resources/ext/css/theme-access/tree.css +0 -165
- data/public/resources/ext/css/theme-access/window.css +0 -87
- data/public/resources/ext/css/theme-gray/borders.css +0 -29
- data/public/resources/ext/css/theme-gray/box.css +0 -74
- data/public/resources/ext/css/theme-gray/button.css +0 -94
- data/public/resources/ext/css/theme-gray/combo.css +0 -43
- data/public/resources/ext/css/theme-gray/core.css +0 -83
- data/public/resources/ext/css/theme-gray/date-picker.css +0 -143
- data/public/resources/ext/css/theme-gray/dd.css +0 -29
- data/public/resources/ext/css/theme-gray/debug.css +0 -24
- data/public/resources/ext/css/theme-gray/dialog.css +0 -34
- data/public/resources/ext/css/theme-gray/editor.css +0 -13
- data/public/resources/ext/css/theme-gray/form.css +0 -117
- data/public/resources/ext/css/theme-gray/grid.css +0 -276
- data/public/resources/ext/css/theme-gray/layout.css +0 -53
- data/public/resources/ext/css/theme-gray/list-view.css +0 -37
- data/public/resources/ext/css/theme-gray/menu.css +0 -82
- data/public/resources/ext/css/theme-gray/panel.css +0 -87
- data/public/resources/ext/css/theme-gray/pivotgrid.css +0 -28
- data/public/resources/ext/css/theme-gray/progress.css +0 -32
- data/public/resources/ext/css/theme-gray/qtips.css +0 -44
- data/public/resources/ext/css/theme-gray/resizable.css +0 -43
- data/public/resources/ext/css/theme-gray/slider.css +0 -21
- data/public/resources/ext/css/theme-gray/tabs.css +0 -127
- data/public/resources/ext/css/theme-gray/toolbar.css +0 -95
- data/public/resources/ext/css/theme-gray/tree.css +0 -157
- data/public/resources/ext/css/theme-gray/window.css +0 -86
- data/public/resources/ext/css/visual/borders.css +0 -25
- data/public/resources/ext/css/visual/box.css +0 -74
- data/public/resources/ext/css/visual/button.css +0 -94
- data/public/resources/ext/css/visual/combo.css +0 -43
- data/public/resources/ext/css/visual/core.css +0 -82
- data/public/resources/ext/css/visual/date-picker.css +0 -143
- data/public/resources/ext/css/visual/dd.css +0 -29
- data/public/resources/ext/css/visual/debug.css +0 -24
- data/public/resources/ext/css/visual/dialog.css +0 -34
- data/public/resources/ext/css/visual/editor.css +0 -13
- data/public/resources/ext/css/visual/form.css +0 -123
- data/public/resources/ext/css/visual/grid.css +0 -277
- data/public/resources/ext/css/visual/layout.css +0 -53
- data/public/resources/ext/css/visual/list-view.css +0 -37
- data/public/resources/ext/css/visual/menu.css +0 -87
- data/public/resources/ext/css/visual/panel.css +0 -87
- data/public/resources/ext/css/visual/pivotgrid.css +0 -28
- data/public/resources/ext/css/visual/progress.css +0 -32
- data/public/resources/ext/css/visual/qtips.css +0 -44
- data/public/resources/ext/css/visual/resizable.css +0 -43
- data/public/resources/ext/css/visual/slider.css +0 -21
- data/public/resources/ext/css/visual/tabs.css +0 -127
- data/public/resources/ext/css/visual/toolbar.css +0 -95
- data/public/resources/ext/css/visual/tree.css +0 -152
- data/public/resources/ext/css/visual/window.css +0 -86
- data/public/resources/ext/css/xtheme-access.css +0 -1820
- data/public/resources/ext/css/xtheme-blue.css +0 -1674
- data/public/resources/ext/css/xtheme-gray.css +0 -1682
- data/public/resources/ext/css/yourtheme.css +0 -1652
- data/public/resources/ext/expressinstall.swf +0 -0
- data/public/resources/ext/images/default/panel/tool-sprites.gif +0 -0
- data/public/resources/ext/images/gray/grid/sort-hd.gif +0 -0
- data/public/resources/ext/images/gray/panel/tool-sprites.gif +0 -0
- data/public/resources/ext/images/gray/window/left-corners.pspimage +0 -0
- data/public/resources/ext/resources.jsb +0 -507
- data/public/resources/markitup/images/body.png +0 -0
- data/public/resources/markitup/images/jaysalvat.png +0 -0
- data/public/resources/markitup/images/markitup.png +0 -0
- data/public/resources/markitup/images/style.css +0 -27
- data/public/resources/markitup/sets/default/images/clean.png +0 -0
- data/public/resources/markitup/sets/default/images/image.png +0 -0
- data/public/resources/markitup/sets/default/set.js +0 -27
- data/public/resources/markitup/sets/default/style.css +0 -27
- data/public/resources/markitup/sets/textile/images/bold.png +0 -0
- data/public/resources/markitup/sets/textile/images/italic.png +0 -0
- data/public/resources/markitup/sets/textile/images/link.png +0 -0
- data/public/resources/markitup/sets/textile/images/picture.png +0 -0
- data/public/resources/markitup/sets/textile/images/preview.png +0 -0
- data/public/resources/markitup/sets/textile/images/stroke.png +0 -0
- data/public/resources/markitup/sets/textile/readme.txt +0 -11
- data/public/resources/markitup/sets/textile/set.js +0 -40
- data/public/resources/markitup/sets/textile/style.css +0 -60
- data/public/resources/markitup/skins/simple/images/handle.png +0 -0
- data/public/resources/markitup/skins/simple/images/menu.png +0 -0
- data/public/resources/markitup/skins/simple/images/submenu.png +0 -0
- data/public/resources/markitup/skins/simple/style.css +0 -118
- data/public/resources/markitup/templates/preview.css +0 -5
- data/public/resources/markitup/templates/preview.html +0 -11
- data/public/stylesheets/markitup.css +0 -19
- data/run_tests.sh +0 -1
- data/script/server +0 -17
- data/spec/javascripts/Rwiki/NodeManagerSpec.js +0 -8
- data/spec/javascripts/Rwiki/TabPanel/PageTabSpec.js +0 -22
- data/spec/javascripts/Rwiki/TabPanelSpec.js +0 -94
- data/spec/javascripts/Rwiki/TreePanel/MenuSpec.js +0 -169
- data/spec/javascripts/Rwiki/TreePanelSpec.js +0 -161
- data/spec/javascripts/helpers/SpecHelper.js +0 -5
- data/test/fixtures/pages/home.txt +0 -5
- data/test/fixtures/pages/test.txt +0 -1
- data/test/helper.rb +0 -22
- data/test/rwiki/models/test_folder.rb +0 -206
- data/test/rwiki/models/test_node.rb +0 -147
- data/test/rwiki/models/test_page.rb +0 -110
- data/test/rwiki/test_app.rb +0 -45
- data/test/tmpdir_helper.rb +0 -21
- data/tmp/fssm_test.rb +0 -13
- data/views/layout.erb +0 -66
|
@@ -1,2886 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Ext JS Library 3.3.1
|
|
3
|
-
* Copyright(c) 2006-2010 Sencha Inc.
|
|
4
|
-
* licensing@sencha.com
|
|
5
|
-
* http://www.sencha.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.3.1',
|
|
22
|
-
versionDetail : {
|
|
23
|
-
major : 3,
|
|
24
|
-
minor : 3,
|
|
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
|
-
docMode = DOC.documentMode,
|
|
59
|
-
isStrict = DOC.compatMode == "CSS1Compat",
|
|
60
|
-
isOpera = check(/opera/),
|
|
61
|
-
isChrome = check(/\bchrome\b/),
|
|
62
|
-
isWebKit = check(/webkit/),
|
|
63
|
-
isSafari = !isChrome && check(/safari/),
|
|
64
|
-
isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2
|
|
65
|
-
isSafari3 = isSafari && check(/version\/3/),
|
|
66
|
-
isSafari4 = isSafari && check(/version\/4/),
|
|
67
|
-
isIE = !isOpera && check(/msie/),
|
|
68
|
-
isIE7 = isIE && (check(/msie 7/) || docMode == 7),
|
|
69
|
-
isIE8 = isIE && (check(/msie 8/) && docMode != 7),
|
|
70
|
-
isIE6 = isIE && !isIE7 && !isIE8,
|
|
71
|
-
isGecko = !isWebKit && check(/gecko/),
|
|
72
|
-
isGecko2 = isGecko && check(/rv:1\.8/),
|
|
73
|
-
isGecko3 = isGecko && check(/rv:1\.9/),
|
|
74
|
-
isBorderBox = isIE && !isStrict,
|
|
75
|
-
isWindows = check(/windows|win32/),
|
|
76
|
-
isMac = check(/macintosh|mac os x/),
|
|
77
|
-
isAir = check(/adobeair/),
|
|
78
|
-
isLinux = check(/linux/),
|
|
79
|
-
isSecure = /^https/i.test(window.location.protocol);
|
|
80
|
-
|
|
81
|
-
// remove css image flicker
|
|
82
|
-
if(isIE6){
|
|
83
|
-
try{
|
|
84
|
-
DOC.execCommand("BackgroundImageCache", false, true);
|
|
85
|
-
}catch(e){}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Ext.apply(Ext, {
|
|
89
|
-
/**
|
|
90
|
-
* URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
|
|
91
|
-
* the IE insecure content warning (<tt>'about:blank'</tt>, except for IE in secure mode, which is <tt>'javascript:""'</tt>).
|
|
92
|
-
* @type String
|
|
93
|
-
*/
|
|
94
|
-
SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank',
|
|
95
|
-
/**
|
|
96
|
-
* True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode
|
|
97
|
-
* @type Boolean
|
|
98
|
-
*/
|
|
99
|
-
isStrict : isStrict,
|
|
100
|
-
/**
|
|
101
|
-
* True if the page is running over SSL
|
|
102
|
-
* @type Boolean
|
|
103
|
-
*/
|
|
104
|
-
isSecure : isSecure,
|
|
105
|
-
/**
|
|
106
|
-
* True when the document is fully initialized and ready for action
|
|
107
|
-
* @type Boolean
|
|
108
|
-
*/
|
|
109
|
-
isReady : false,
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* True if the {@link Ext.Fx} Class is available
|
|
113
|
-
* @type Boolean
|
|
114
|
-
* @property enableFx
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* HIGHLY EXPERIMENTAL
|
|
119
|
-
* True to force css based border-box model override and turning off javascript based adjustments. This is a
|
|
120
|
-
* runtime configuration and must be set before onReady.
|
|
121
|
-
* @type Boolean
|
|
122
|
-
*/
|
|
123
|
-
enableForcedBoxModel : false,
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* True to automatically uncache orphaned Ext.Elements periodically (defaults to true)
|
|
127
|
-
* @type Boolean
|
|
128
|
-
*/
|
|
129
|
-
enableGarbageCollector : true,
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* True to automatically purge event listeners during garbageCollection (defaults to false).
|
|
133
|
-
* @type Boolean
|
|
134
|
-
*/
|
|
135
|
-
enableListenerCollection : false,
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
|
|
139
|
-
* Currently not optimized for performance.
|
|
140
|
-
* @type Boolean
|
|
141
|
-
*/
|
|
142
|
-
enableNestedListenerRemoval : false,
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Indicates whether to use native browser parsing for JSON methods.
|
|
146
|
-
* This option is ignored if the browser does not support native JSON methods.
|
|
147
|
-
* <b>Note: Native JSON methods will not work with objects that have functions.
|
|
148
|
-
* Also, property names must be quoted, otherwise the data will not parse.</b> (Defaults to false)
|
|
149
|
-
* @type Boolean
|
|
150
|
-
*/
|
|
151
|
-
USE_NATIVE_JSON : false,
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Copies all the properties of config to obj if they don't already exist.
|
|
155
|
-
* @param {Object} obj The receiver of the properties
|
|
156
|
-
* @param {Object} config The source of the properties
|
|
157
|
-
* @return {Object} returns obj
|
|
158
|
-
*/
|
|
159
|
-
applyIf : function(o, c){
|
|
160
|
-
if(o){
|
|
161
|
-
for(var p in c){
|
|
162
|
-
if(!Ext.isDefined(o[p])){
|
|
163
|
-
o[p] = c[p];
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return o;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Generates unique ids. If the element already has an id, it is unchanged
|
|
172
|
-
* @param {Mixed} el (optional) The element to generate an id for
|
|
173
|
-
* @param {String} prefix (optional) Id prefix (defaults "ext-gen")
|
|
174
|
-
* @return {String} The generated Id.
|
|
175
|
-
*/
|
|
176
|
-
id : function(el, prefix){
|
|
177
|
-
el = Ext.getDom(el, true) || {};
|
|
178
|
-
if (!el.id) {
|
|
179
|
-
el.id = (prefix || "ext-gen") + (++idSeed);
|
|
180
|
-
}
|
|
181
|
-
return el.id;
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* <p>Extends one class to create a subclass and optionally overrides members with the passed literal. This method
|
|
186
|
-
* also adds the function "override()" to the subclass that can be used to override members of the class.</p>
|
|
187
|
-
* For example, to create a subclass of Ext GridPanel:
|
|
188
|
-
* <pre><code>
|
|
189
|
-
MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
|
|
190
|
-
constructor: function(config) {
|
|
191
|
-
|
|
192
|
-
// Create configuration for this Grid.
|
|
193
|
-
var store = new Ext.data.Store({...});
|
|
194
|
-
var colModel = new Ext.grid.ColumnModel({...});
|
|
195
|
-
|
|
196
|
-
// Create a new config object containing our computed properties
|
|
197
|
-
// *plus* whatever was in the config parameter.
|
|
198
|
-
config = Ext.apply({
|
|
199
|
-
store: store,
|
|
200
|
-
colModel: colModel
|
|
201
|
-
}, config);
|
|
202
|
-
|
|
203
|
-
MyGridPanel.superclass.constructor.call(this, config);
|
|
204
|
-
|
|
205
|
-
// Your postprocessing here
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
yourMethod: function() {
|
|
209
|
-
// etc.
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
</code></pre>
|
|
213
|
-
*
|
|
214
|
-
* <p>This function also supports a 3-argument call in which the subclass's constructor is
|
|
215
|
-
* passed as an argument. In this form, the parameters are as follows:</p>
|
|
216
|
-
* <div class="mdetail-params"><ul>
|
|
217
|
-
* <li><code>subclass</code> : Function <div class="sub-desc">The subclass constructor.</div></li>
|
|
218
|
-
* <li><code>superclass</code> : Function <div class="sub-desc">The constructor of class being extended</div></li>
|
|
219
|
-
* <li><code>overrides</code> : Object <div class="sub-desc">A literal with members which are copied into the subclass's
|
|
220
|
-
* prototype, and are therefore shared among all instances of the new class.</div></li>
|
|
221
|
-
* </ul></div>
|
|
222
|
-
*
|
|
223
|
-
* @param {Function} superclass The constructor of class being extended.
|
|
224
|
-
* @param {Object} overrides <p>A literal with members which are copied into the subclass's
|
|
225
|
-
* prototype, and are therefore shared between all instances of the new class.</p>
|
|
226
|
-
* <p>This may contain a special member named <tt><b>constructor</b></tt>. This is used
|
|
227
|
-
* to define the constructor of the new class, and is returned. If this property is
|
|
228
|
-
* <i>not</i> specified, a constructor is generated and returned which just calls the
|
|
229
|
-
* superclass's constructor passing on its parameters.</p>
|
|
230
|
-
* <p><b>It is essential that you call the superclass constructor in any provided constructor. See example code.</b></p>
|
|
231
|
-
* @return {Function} The subclass constructor from the <code>overrides</code> parameter, or a generated one if not provided.
|
|
232
|
-
*/
|
|
233
|
-
extend : function(){
|
|
234
|
-
// inline overrides
|
|
235
|
-
var io = function(o){
|
|
236
|
-
for(var m in o){
|
|
237
|
-
this[m] = o[m];
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
var oc = Object.prototype.constructor;
|
|
241
|
-
|
|
242
|
-
return function(sb, sp, overrides){
|
|
243
|
-
if(typeof sp == 'object'){
|
|
244
|
-
overrides = sp;
|
|
245
|
-
sp = sb;
|
|
246
|
-
sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);};
|
|
247
|
-
}
|
|
248
|
-
var F = function(){},
|
|
249
|
-
sbp,
|
|
250
|
-
spp = sp.prototype;
|
|
251
|
-
|
|
252
|
-
F.prototype = spp;
|
|
253
|
-
sbp = sb.prototype = new F();
|
|
254
|
-
sbp.constructor=sb;
|
|
255
|
-
sb.superclass=spp;
|
|
256
|
-
if(spp.constructor == oc){
|
|
257
|
-
spp.constructor=sp;
|
|
258
|
-
}
|
|
259
|
-
sb.override = function(o){
|
|
260
|
-
Ext.override(sb, o);
|
|
261
|
-
};
|
|
262
|
-
sbp.superclass = sbp.supr = (function(){
|
|
263
|
-
return spp;
|
|
264
|
-
});
|
|
265
|
-
sbp.override = io;
|
|
266
|
-
Ext.override(sb, overrides);
|
|
267
|
-
sb.extend = function(o){return Ext.extend(sb, o);};
|
|
268
|
-
return sb;
|
|
269
|
-
};
|
|
270
|
-
}(),
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
|
|
274
|
-
* Usage:<pre><code>
|
|
275
|
-
Ext.override(MyClass, {
|
|
276
|
-
newMethod1: function(){
|
|
277
|
-
// etc.
|
|
278
|
-
},
|
|
279
|
-
newMethod2: function(foo){
|
|
280
|
-
// etc.
|
|
281
|
-
}
|
|
282
|
-
});
|
|
283
|
-
</code></pre>
|
|
284
|
-
* @param {Object} origclass The class to override
|
|
285
|
-
* @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal
|
|
286
|
-
* containing one or more methods.
|
|
287
|
-
* @method override
|
|
288
|
-
*/
|
|
289
|
-
override : function(origclass, overrides){
|
|
290
|
-
if(overrides){
|
|
291
|
-
var p = origclass.prototype;
|
|
292
|
-
Ext.apply(p, overrides);
|
|
293
|
-
if(Ext.isIE && overrides.hasOwnProperty('toString')){
|
|
294
|
-
p.toString = overrides.toString;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Creates namespaces to be used for scoping variables and classes so that they are not global.
|
|
301
|
-
* Specifying the last node of a namespace implicitly creates all other nodes. Usage:
|
|
302
|
-
* <pre><code>
|
|
303
|
-
Ext.namespace('Company', 'Company.data');
|
|
304
|
-
Ext.namespace('Company.data'); // equivalent and preferable to above syntax
|
|
305
|
-
Company.Widget = function() { ... }
|
|
306
|
-
Company.data.CustomStore = function(config) { ... }
|
|
307
|
-
</code></pre>
|
|
308
|
-
* @param {String} namespace1
|
|
309
|
-
* @param {String} namespace2
|
|
310
|
-
* @param {String} etc
|
|
311
|
-
* @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)
|
|
312
|
-
* @method namespace
|
|
313
|
-
*/
|
|
314
|
-
namespace : function(){
|
|
315
|
-
var o, d;
|
|
316
|
-
Ext.each(arguments, function(v) {
|
|
317
|
-
d = v.split(".");
|
|
318
|
-
o = window[d[0]] = window[d[0]] || {};
|
|
319
|
-
Ext.each(d.slice(1), function(v2){
|
|
320
|
-
o = o[v2] = o[v2] || {};
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
return o;
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* 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.
|
|
328
|
-
* @param {Object} o
|
|
329
|
-
* @param {String} pre (optional) A prefix to add to the url encoded string
|
|
330
|
-
* @return {String}
|
|
331
|
-
*/
|
|
332
|
-
urlEncode : function(o, pre){
|
|
333
|
-
var empty,
|
|
334
|
-
buf = [],
|
|
335
|
-
e = encodeURIComponent;
|
|
336
|
-
|
|
337
|
-
Ext.iterate(o, function(key, item){
|
|
338
|
-
empty = Ext.isEmpty(item);
|
|
339
|
-
Ext.each(empty ? key : item, function(val){
|
|
340
|
-
buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : '');
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
if(!pre){
|
|
344
|
-
buf.shift();
|
|
345
|
-
pre = '';
|
|
346
|
-
}
|
|
347
|
-
return pre + buf.join('');
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Takes an encoded URL and and converts it to an object. Example: <pre><code>
|
|
352
|
-
Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
|
|
353
|
-
Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
|
|
354
|
-
</code></pre>
|
|
355
|
-
* @param {String} string
|
|
356
|
-
* @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false).
|
|
357
|
-
* @return {Object} A literal with members
|
|
358
|
-
*/
|
|
359
|
-
urlDecode : function(string, overwrite){
|
|
360
|
-
if(Ext.isEmpty(string)){
|
|
361
|
-
return {};
|
|
362
|
-
}
|
|
363
|
-
var obj = {},
|
|
364
|
-
pairs = string.split('&'),
|
|
365
|
-
d = decodeURIComponent,
|
|
366
|
-
name,
|
|
367
|
-
value;
|
|
368
|
-
Ext.each(pairs, function(pair) {
|
|
369
|
-
pair = pair.split('=');
|
|
370
|
-
name = d(pair[0]);
|
|
371
|
-
value = d(pair[1]);
|
|
372
|
-
obj[name] = overwrite || !obj[name] ? value :
|
|
373
|
-
[].concat(obj[name]).concat(value);
|
|
374
|
-
});
|
|
375
|
-
return obj;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Appends content to the query string of a URL, handling logic for whether to place
|
|
380
|
-
* a question mark or ampersand.
|
|
381
|
-
* @param {String} url The URL to append to.
|
|
382
|
-
* @param {String} s The content to append to the URL.
|
|
383
|
-
* @return (String) The resulting URL
|
|
384
|
-
*/
|
|
385
|
-
urlAppend : function(url, s){
|
|
386
|
-
if(!Ext.isEmpty(s)){
|
|
387
|
-
return url + (url.indexOf('?') === -1 ? '?' : '&') + s;
|
|
388
|
-
}
|
|
389
|
-
return url;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Converts any iterable (numeric indices and a length property) into a true array
|
|
394
|
-
* Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
|
|
395
|
-
* For strings, use this instead: "abc".match(/./g) => [a,b,c];
|
|
396
|
-
* @param {Iterable} the iterable object to be turned into a true Array.
|
|
397
|
-
* @return (Array) array
|
|
398
|
-
*/
|
|
399
|
-
toArray : function(){
|
|
400
|
-
return isIE ?
|
|
401
|
-
function(a, i, j, res){
|
|
402
|
-
res = [];
|
|
403
|
-
for(var x = 0, len = a.length; x < len; x++) {
|
|
404
|
-
res.push(a[x]);
|
|
405
|
-
}
|
|
406
|
-
return res.slice(i || 0, j || res.length);
|
|
407
|
-
} :
|
|
408
|
-
function(a, i, j){
|
|
409
|
-
return Array.prototype.slice.call(a, i || 0, j || a.length);
|
|
410
|
-
};
|
|
411
|
-
}(),
|
|
412
|
-
|
|
413
|
-
isIterable : function(v){
|
|
414
|
-
//check for array or arguments
|
|
415
|
-
if(Ext.isArray(v) || v.callee){
|
|
416
|
-
return true;
|
|
417
|
-
}
|
|
418
|
-
//check for node list type
|
|
419
|
-
if(/NodeList|HTMLCollection/.test(toString.call(v))){
|
|
420
|
-
return true;
|
|
421
|
-
}
|
|
422
|
-
//NodeList has an item and length property
|
|
423
|
-
//IXMLDOMNodeList has nextNode method, needs to be checked first.
|
|
424
|
-
return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length));
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Iterates an array calling the supplied function.
|
|
429
|
-
* @param {Array/NodeList/Mixed} array The array to be iterated. If this
|
|
430
|
-
* argument is not really an array, the supplied function is called once.
|
|
431
|
-
* @param {Function} fn The function to be called with each item. If the
|
|
432
|
-
* supplied function returns false, iteration stops and this method returns
|
|
433
|
-
* the current <code>index</code>. This function is called with
|
|
434
|
-
* the following arguments:
|
|
435
|
-
* <div class="mdetail-params"><ul>
|
|
436
|
-
* <li><code>item</code> : <i>Mixed</i>
|
|
437
|
-
* <div class="sub-desc">The item at the current <code>index</code>
|
|
438
|
-
* in the passed <code>array</code></div></li>
|
|
439
|
-
* <li><code>index</code> : <i>Number</i>
|
|
440
|
-
* <div class="sub-desc">The current index within the array</div></li>
|
|
441
|
-
* <li><code>allItems</code> : <i>Array</i>
|
|
442
|
-
* <div class="sub-desc">The <code>array</code> passed as the first
|
|
443
|
-
* argument to <code>Ext.each</code>.</div></li>
|
|
444
|
-
* </ul></div>
|
|
445
|
-
* @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed.
|
|
446
|
-
* Defaults to the <code>item</code> at the current <code>index</code>
|
|
447
|
-
* within the passed <code>array</code>.
|
|
448
|
-
* @return See description for the fn parameter.
|
|
449
|
-
*/
|
|
450
|
-
each : function(array, fn, scope){
|
|
451
|
-
if(Ext.isEmpty(array, true)){
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
if(!Ext.isIterable(array) || Ext.isPrimitive(array)){
|
|
455
|
-
array = [array];
|
|
456
|
-
}
|
|
457
|
-
for(var i = 0, len = array.length; i < len; i++){
|
|
458
|
-
if(fn.call(scope || array[i], array[i], i, array) === false){
|
|
459
|
-
return i;
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Iterates either the elements in an array, or each of the properties in an object.
|
|
466
|
-
* <b>Note</b>: If you are only iterating arrays, it is better to call {@link #each}.
|
|
467
|
-
* @param {Object/Array} object The object or array to be iterated
|
|
468
|
-
* @param {Function} fn The function to be called for each iteration.
|
|
469
|
-
* The iteration will stop if the supplied function returns false, or
|
|
470
|
-
* all array elements / object properties have been covered. The signature
|
|
471
|
-
* varies depending on the type of object being interated:
|
|
472
|
-
* <div class="mdetail-params"><ul>
|
|
473
|
-
* <li>Arrays : <tt>(Object item, Number index, Array allItems)</tt>
|
|
474
|
-
* <div class="sub-desc">
|
|
475
|
-
* When iterating an array, the supplied function is called with each item.</div></li>
|
|
476
|
-
* <li>Objects : <tt>(String key, Object value, Object)</tt>
|
|
477
|
-
* <div class="sub-desc">
|
|
478
|
-
* When iterating an object, the supplied function is called with each key-value pair in
|
|
479
|
-
* the object, and the iterated object</div></li>
|
|
480
|
-
* </ul></div>
|
|
481
|
-
* @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed. Defaults to
|
|
482
|
-
* the <code>object</code> being iterated.
|
|
483
|
-
*/
|
|
484
|
-
iterate : function(obj, fn, scope){
|
|
485
|
-
if(Ext.isEmpty(obj)){
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
if(Ext.isIterable(obj)){
|
|
489
|
-
Ext.each(obj, fn, scope);
|
|
490
|
-
return;
|
|
491
|
-
}else if(typeof obj == 'object'){
|
|
492
|
-
for(var prop in obj){
|
|
493
|
-
if(obj.hasOwnProperty(prop)){
|
|
494
|
-
if(fn.call(scope || obj, prop, obj[prop], obj) === false){
|
|
495
|
-
return;
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Return the dom node for the passed String (id), dom node, or Ext.Element.
|
|
504
|
-
* Optional 'strict' flag is needed for IE since it can return 'name' and
|
|
505
|
-
* 'id' elements by using getElementById.
|
|
506
|
-
* Here are some examples:
|
|
507
|
-
* <pre><code>
|
|
508
|
-
// gets dom node based on id
|
|
509
|
-
var elDom = Ext.getDom('elId');
|
|
510
|
-
// gets dom node based on the dom node
|
|
511
|
-
var elDom1 = Ext.getDom(elDom);
|
|
512
|
-
|
|
513
|
-
// If we don't know if we are working with an
|
|
514
|
-
// Ext.Element or a dom node use Ext.getDom
|
|
515
|
-
function(el){
|
|
516
|
-
var dom = Ext.getDom(el);
|
|
517
|
-
// do something with the dom node
|
|
518
|
-
}
|
|
519
|
-
* </code></pre>
|
|
520
|
-
* <b>Note</b>: the dom node to be found actually needs to exist (be rendered, etc)
|
|
521
|
-
* when this method is called to be successful.
|
|
522
|
-
* @param {Mixed} el
|
|
523
|
-
* @return HTMLElement
|
|
524
|
-
*/
|
|
525
|
-
getDom : function(el, strict){
|
|
526
|
-
if(!el || !DOC){
|
|
527
|
-
return null;
|
|
528
|
-
}
|
|
529
|
-
if (el.dom){
|
|
530
|
-
return el.dom;
|
|
531
|
-
} else {
|
|
532
|
-
if (typeof el == 'string') {
|
|
533
|
-
var e = DOC.getElementById(el);
|
|
534
|
-
// IE returns elements with the 'name' and 'id' attribute.
|
|
535
|
-
// we do a strict check to return the element with only the id attribute
|
|
536
|
-
if (e && isIE && strict) {
|
|
537
|
-
if (el == e.getAttribute('id')) {
|
|
538
|
-
return e;
|
|
539
|
-
} else {
|
|
540
|
-
return null;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
return e;
|
|
544
|
-
} else {
|
|
545
|
-
return el;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Returns the current document body as an {@link Ext.Element}.
|
|
552
|
-
* @return Ext.Element The document body
|
|
553
|
-
*/
|
|
554
|
-
getBody : function(){
|
|
555
|
-
return Ext.get(DOC.body || DOC.documentElement);
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Returns the current document body as an {@link Ext.Element}.
|
|
560
|
-
* @return Ext.Element The document body
|
|
561
|
-
*/
|
|
562
|
-
getHead : function() {
|
|
563
|
-
var head;
|
|
564
|
-
|
|
565
|
-
return function() {
|
|
566
|
-
if (head == undefined) {
|
|
567
|
-
head = Ext.get(DOC.getElementsByTagName("head")[0]);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
return head;
|
|
571
|
-
};
|
|
572
|
-
}(),
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Removes a DOM node from the document.
|
|
576
|
-
*/
|
|
577
|
-
/**
|
|
578
|
-
* <p>Removes this element from the document, removes all DOM event listeners, and deletes the cache reference.
|
|
579
|
-
* All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is
|
|
580
|
-
* <code>true</code>, then DOM event listeners are also removed from all child nodes. The body node
|
|
581
|
-
* will be ignored if passed in.</p>
|
|
582
|
-
* @param {HTMLElement} node The node to remove
|
|
583
|
-
*/
|
|
584
|
-
removeNode : isIE && !isIE8 ? function(){
|
|
585
|
-
var d;
|
|
586
|
-
return function(n){
|
|
587
|
-
if(n && n.tagName != 'BODY'){
|
|
588
|
-
(Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n);
|
|
589
|
-
d = d || DOC.createElement('div');
|
|
590
|
-
d.appendChild(n);
|
|
591
|
-
d.innerHTML = '';
|
|
592
|
-
delete Ext.elCache[n.id];
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
}() : function(n){
|
|
596
|
-
if(n && n.parentNode && n.tagName != 'BODY'){
|
|
597
|
-
(Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n);
|
|
598
|
-
n.parentNode.removeChild(n);
|
|
599
|
-
delete Ext.elCache[n.id];
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* <p>Returns true if the passed value is empty.</p>
|
|
605
|
-
* <p>The value is deemed to be empty if it is<div class="mdetail-params"><ul>
|
|
606
|
-
* <li>null</li>
|
|
607
|
-
* <li>undefined</li>
|
|
608
|
-
* <li>an empty array</li>
|
|
609
|
-
* <li>a zero length string (Unless the <tt>allowBlank</tt> parameter is <tt>true</tt>)</li>
|
|
610
|
-
* </ul></div>
|
|
611
|
-
* @param {Mixed} value The value to test
|
|
612
|
-
* @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false)
|
|
613
|
-
* @return {Boolean}
|
|
614
|
-
*/
|
|
615
|
-
isEmpty : function(v, allowBlank){
|
|
616
|
-
return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false);
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Returns true if the passed value is a JavaScript array, otherwise false.
|
|
621
|
-
* @param {Mixed} value The value to test
|
|
622
|
-
* @return {Boolean}
|
|
623
|
-
*/
|
|
624
|
-
isArray : function(v){
|
|
625
|
-
return toString.apply(v) === '[object Array]';
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Returns true if the passed object is a JavaScript date object, otherwise false.
|
|
630
|
-
* @param {Object} object The object to test
|
|
631
|
-
* @return {Boolean}
|
|
632
|
-
*/
|
|
633
|
-
isDate : function(v){
|
|
634
|
-
return toString.apply(v) === '[object Date]';
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Returns true if the passed value is a JavaScript Object, otherwise false.
|
|
639
|
-
* @param {Mixed} value The value to test
|
|
640
|
-
* @return {Boolean}
|
|
641
|
-
*/
|
|
642
|
-
isObject : function(v){
|
|
643
|
-
return !!v && Object.prototype.toString.call(v) === '[object Object]';
|
|
644
|
-
},
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean.
|
|
648
|
-
* @param {Mixed} value The value to test
|
|
649
|
-
* @return {Boolean}
|
|
650
|
-
*/
|
|
651
|
-
isPrimitive : function(v){
|
|
652
|
-
return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v);
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Returns true if the passed value is a JavaScript Function, otherwise false.
|
|
657
|
-
* @param {Mixed} value The value to test
|
|
658
|
-
* @return {Boolean}
|
|
659
|
-
*/
|
|
660
|
-
isFunction : function(v){
|
|
661
|
-
return toString.apply(v) === '[object Function]';
|
|
662
|
-
},
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Returns true if the passed value is a number. Returns false for non-finite numbers.
|
|
666
|
-
* @param {Mixed} value The value to test
|
|
667
|
-
* @return {Boolean}
|
|
668
|
-
*/
|
|
669
|
-
isNumber : function(v){
|
|
670
|
-
return typeof v === 'number' && isFinite(v);
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* Returns true if the passed value is a string.
|
|
675
|
-
* @param {Mixed} value The value to test
|
|
676
|
-
* @return {Boolean}
|
|
677
|
-
*/
|
|
678
|
-
isString : function(v){
|
|
679
|
-
return typeof v === 'string';
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Returns true if the passed value is a boolean.
|
|
684
|
-
* @param {Mixed} value The value to test
|
|
685
|
-
* @return {Boolean}
|
|
686
|
-
*/
|
|
687
|
-
isBoolean : function(v){
|
|
688
|
-
return typeof v === 'boolean';
|
|
689
|
-
},
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* Returns true if the passed value is an HTMLElement
|
|
693
|
-
* @param {Mixed} value The value to test
|
|
694
|
-
* @return {Boolean}
|
|
695
|
-
*/
|
|
696
|
-
isElement : function(v) {
|
|
697
|
-
return v ? !!v.tagName : false;
|
|
698
|
-
},
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Returns true if the passed value is not undefined.
|
|
702
|
-
* @param {Mixed} value The value to test
|
|
703
|
-
* @return {Boolean}
|
|
704
|
-
*/
|
|
705
|
-
isDefined : function(v){
|
|
706
|
-
return typeof v !== 'undefined';
|
|
707
|
-
},
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* True if the detected browser is Opera.
|
|
711
|
-
* @type Boolean
|
|
712
|
-
*/
|
|
713
|
-
isOpera : isOpera,
|
|
714
|
-
/**
|
|
715
|
-
* True if the detected browser uses WebKit.
|
|
716
|
-
* @type Boolean
|
|
717
|
-
*/
|
|
718
|
-
isWebKit : isWebKit,
|
|
719
|
-
/**
|
|
720
|
-
* True if the detected browser is Chrome.
|
|
721
|
-
* @type Boolean
|
|
722
|
-
*/
|
|
723
|
-
isChrome : isChrome,
|
|
724
|
-
/**
|
|
725
|
-
* True if the detected browser is Safari.
|
|
726
|
-
* @type Boolean
|
|
727
|
-
*/
|
|
728
|
-
isSafari : isSafari,
|
|
729
|
-
/**
|
|
730
|
-
* True if the detected browser is Safari 3.x.
|
|
731
|
-
* @type Boolean
|
|
732
|
-
*/
|
|
733
|
-
isSafari3 : isSafari3,
|
|
734
|
-
/**
|
|
735
|
-
* True if the detected browser is Safari 4.x.
|
|
736
|
-
* @type Boolean
|
|
737
|
-
*/
|
|
738
|
-
isSafari4 : isSafari4,
|
|
739
|
-
/**
|
|
740
|
-
* True if the detected browser is Safari 2.x.
|
|
741
|
-
* @type Boolean
|
|
742
|
-
*/
|
|
743
|
-
isSafari2 : isSafari2,
|
|
744
|
-
/**
|
|
745
|
-
* True if the detected browser is Internet Explorer.
|
|
746
|
-
* @type Boolean
|
|
747
|
-
*/
|
|
748
|
-
isIE : isIE,
|
|
749
|
-
/**
|
|
750
|
-
* True if the detected browser is Internet Explorer 6.x.
|
|
751
|
-
* @type Boolean
|
|
752
|
-
*/
|
|
753
|
-
isIE6 : isIE6,
|
|
754
|
-
/**
|
|
755
|
-
* True if the detected browser is Internet Explorer 7.x.
|
|
756
|
-
* @type Boolean
|
|
757
|
-
*/
|
|
758
|
-
isIE7 : isIE7,
|
|
759
|
-
/**
|
|
760
|
-
* True if the detected browser is Internet Explorer 8.x.
|
|
761
|
-
* @type Boolean
|
|
762
|
-
*/
|
|
763
|
-
isIE8 : isIE8,
|
|
764
|
-
/**
|
|
765
|
-
* True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox).
|
|
766
|
-
* @type Boolean
|
|
767
|
-
*/
|
|
768
|
-
isGecko : isGecko,
|
|
769
|
-
/**
|
|
770
|
-
* True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x).
|
|
771
|
-
* @type Boolean
|
|
772
|
-
*/
|
|
773
|
-
isGecko2 : isGecko2,
|
|
774
|
-
/**
|
|
775
|
-
* True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x).
|
|
776
|
-
* @type Boolean
|
|
777
|
-
*/
|
|
778
|
-
isGecko3 : isGecko3,
|
|
779
|
-
/**
|
|
780
|
-
* True if the detected browser is Internet Explorer running in non-strict mode.
|
|
781
|
-
* @type Boolean
|
|
782
|
-
*/
|
|
783
|
-
isBorderBox : isBorderBox,
|
|
784
|
-
/**
|
|
785
|
-
* True if the detected platform is Linux.
|
|
786
|
-
* @type Boolean
|
|
787
|
-
*/
|
|
788
|
-
isLinux : isLinux,
|
|
789
|
-
/**
|
|
790
|
-
* True if the detected platform is Windows.
|
|
791
|
-
* @type Boolean
|
|
792
|
-
*/
|
|
793
|
-
isWindows : isWindows,
|
|
794
|
-
/**
|
|
795
|
-
* True if the detected platform is Mac OS.
|
|
796
|
-
* @type Boolean
|
|
797
|
-
*/
|
|
798
|
-
isMac : isMac,
|
|
799
|
-
/**
|
|
800
|
-
* True if the detected platform is Adobe Air.
|
|
801
|
-
* @type Boolean
|
|
802
|
-
*/
|
|
803
|
-
isAir : isAir
|
|
804
|
-
});
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* Creates namespaces to be used for scoping variables and classes so that they are not global.
|
|
808
|
-
* Specifying the last node of a namespace implicitly creates all other nodes. Usage:
|
|
809
|
-
* <pre><code>
|
|
810
|
-
Ext.namespace('Company', 'Company.data');
|
|
811
|
-
Ext.namespace('Company.data'); // equivalent and preferable to above syntax
|
|
812
|
-
Company.Widget = function() { ... }
|
|
813
|
-
Company.data.CustomStore = function(config) { ... }
|
|
814
|
-
</code></pre>
|
|
815
|
-
* @param {String} namespace1
|
|
816
|
-
* @param {String} namespace2
|
|
817
|
-
* @param {String} etc
|
|
818
|
-
* @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)
|
|
819
|
-
* @method ns
|
|
820
|
-
*/
|
|
821
|
-
Ext.ns = Ext.namespace;
|
|
822
|
-
})();
|
|
823
|
-
|
|
824
|
-
Ext.ns('Ext.util', 'Ext.lib', 'Ext.data', 'Ext.supports');
|
|
825
|
-
|
|
826
|
-
Ext.elCache = {};
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @class Function
|
|
830
|
-
* These functions are available on every Function object (any JavaScript function).
|
|
831
|
-
*/
|
|
832
|
-
Ext.apply(Function.prototype, {
|
|
833
|
-
/**
|
|
834
|
-
* Creates an interceptor function. The passed function is called before the original one. If it returns false,
|
|
835
|
-
* the original one is not called. The resulting function returns the results of the original function.
|
|
836
|
-
* The passed function is called with the parameters of the original function. Example usage:
|
|
837
|
-
* <pre><code>
|
|
838
|
-
var sayHi = function(name){
|
|
839
|
-
alert('Hi, ' + name);
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
sayHi('Fred'); // alerts "Hi, Fred"
|
|
843
|
-
|
|
844
|
-
// create a new function that validates input without
|
|
845
|
-
// directly modifying the original function:
|
|
846
|
-
var sayHiToFriend = sayHi.createInterceptor(function(name){
|
|
847
|
-
return name == 'Brian';
|
|
848
|
-
});
|
|
849
|
-
|
|
850
|
-
sayHiToFriend('Fred'); // no alert
|
|
851
|
-
sayHiToFriend('Brian'); // alerts "Hi, Brian"
|
|
852
|
-
</code></pre>
|
|
853
|
-
* @param {Function} fcn The function to call before the original
|
|
854
|
-
* @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the passed function is executed.
|
|
855
|
-
* <b>If omitted, defaults to the scope in which the original function is called or the browser window.</b>
|
|
856
|
-
* @return {Function} The new function
|
|
857
|
-
*/
|
|
858
|
-
createInterceptor : function(fcn, scope){
|
|
859
|
-
var method = this;
|
|
860
|
-
return !Ext.isFunction(fcn) ?
|
|
861
|
-
this :
|
|
862
|
-
function() {
|
|
863
|
-
var me = this,
|
|
864
|
-
args = arguments;
|
|
865
|
-
fcn.target = me;
|
|
866
|
-
fcn.method = method;
|
|
867
|
-
return (fcn.apply(scope || me || window, args) !== false) ?
|
|
868
|
-
method.apply(me || window, args) :
|
|
869
|
-
null;
|
|
870
|
-
};
|
|
871
|
-
},
|
|
872
|
-
|
|
873
|
-
/**
|
|
874
|
-
* Creates a callback that passes arguments[0], arguments[1], arguments[2], ...
|
|
875
|
-
* Call directly on any function. Example: <code>myFunction.createCallback(arg1, arg2)</code>
|
|
876
|
-
* Will create a function that is bound to those 2 args. <b>If a specific scope is required in the
|
|
877
|
-
* callback, use {@link #createDelegate} instead.</b> The function returned by createCallback always
|
|
878
|
-
* executes in the window scope.
|
|
879
|
-
* <p>This method is required when you want to pass arguments to a callback function. If no arguments
|
|
880
|
-
* are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn).
|
|
881
|
-
* However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function
|
|
882
|
-
* would simply execute immediately when the code is parsed. Example usage:
|
|
883
|
-
* <pre><code>
|
|
884
|
-
var sayHi = function(name){
|
|
885
|
-
alert('Hi, ' + name);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
// clicking the button alerts "Hi, Fred"
|
|
889
|
-
new Ext.Button({
|
|
890
|
-
text: 'Say Hi',
|
|
891
|
-
renderTo: Ext.getBody(),
|
|
892
|
-
handler: sayHi.createCallback('Fred')
|
|
893
|
-
});
|
|
894
|
-
</code></pre>
|
|
895
|
-
* @return {Function} The new function
|
|
896
|
-
*/
|
|
897
|
-
createCallback : function(/*args...*/){
|
|
898
|
-
// make args available, in function below
|
|
899
|
-
var args = arguments,
|
|
900
|
-
method = this;
|
|
901
|
-
return function() {
|
|
902
|
-
return method.apply(window, args);
|
|
903
|
-
};
|
|
904
|
-
},
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Creates a delegate (callback) that sets the scope to obj.
|
|
908
|
-
* Call directly on any function. Example: <code>this.myFunction.createDelegate(this, [arg1, arg2])</code>
|
|
909
|
-
* Will create a function that is automatically scoped to obj so that the <tt>this</tt> variable inside the
|
|
910
|
-
* callback points to obj. Example usage:
|
|
911
|
-
* <pre><code>
|
|
912
|
-
var sayHi = function(name){
|
|
913
|
-
// Note this use of "this.text" here. This function expects to
|
|
914
|
-
// execute within a scope that contains a text property. In this
|
|
915
|
-
// example, the "this" variable is pointing to the btn object that
|
|
916
|
-
// was passed in createDelegate below.
|
|
917
|
-
alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
var btn = new Ext.Button({
|
|
921
|
-
text: 'Say Hi',
|
|
922
|
-
renderTo: Ext.getBody()
|
|
923
|
-
});
|
|
924
|
-
|
|
925
|
-
// This callback will execute in the scope of the
|
|
926
|
-
// button instance. Clicking the button alerts
|
|
927
|
-
// "Hi, Fred. You clicked the "Say Hi" button."
|
|
928
|
-
btn.on('click', sayHi.createDelegate(btn, ['Fred']));
|
|
929
|
-
</code></pre>
|
|
930
|
-
* @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.
|
|
931
|
-
* <b>If omitted, defaults to the browser window.</b>
|
|
932
|
-
* @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)
|
|
933
|
-
* @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,
|
|
934
|
-
* if a number the args are inserted at the specified position
|
|
935
|
-
* @return {Function} The new function
|
|
936
|
-
*/
|
|
937
|
-
createDelegate : function(obj, args, appendArgs){
|
|
938
|
-
var method = this;
|
|
939
|
-
return function() {
|
|
940
|
-
var callArgs = args || arguments;
|
|
941
|
-
if (appendArgs === true){
|
|
942
|
-
callArgs = Array.prototype.slice.call(arguments, 0);
|
|
943
|
-
callArgs = callArgs.concat(args);
|
|
944
|
-
}else if (Ext.isNumber(appendArgs)){
|
|
945
|
-
callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first
|
|
946
|
-
var applyArgs = [appendArgs, 0].concat(args); // create method call params
|
|
947
|
-
Array.prototype.splice.apply(callArgs, applyArgs); // splice them in
|
|
948
|
-
}
|
|
949
|
-
return method.apply(obj || window, callArgs);
|
|
950
|
-
};
|
|
951
|
-
},
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage:
|
|
955
|
-
* <pre><code>
|
|
956
|
-
var sayHi = function(name){
|
|
957
|
-
alert('Hi, ' + name);
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
// executes immediately:
|
|
961
|
-
sayHi('Fred');
|
|
962
|
-
|
|
963
|
-
// executes after 2 seconds:
|
|
964
|
-
sayHi.defer(2000, this, ['Fred']);
|
|
965
|
-
|
|
966
|
-
// this syntax is sometimes useful for deferring
|
|
967
|
-
// execution of an anonymous function:
|
|
968
|
-
(function(){
|
|
969
|
-
alert('Anonymous');
|
|
970
|
-
}).defer(100);
|
|
971
|
-
</code></pre>
|
|
972
|
-
* @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately)
|
|
973
|
-
* @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.
|
|
974
|
-
* <b>If omitted, defaults to the browser window.</b>
|
|
975
|
-
* @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)
|
|
976
|
-
* @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,
|
|
977
|
-
* if a number the args are inserted at the specified position
|
|
978
|
-
* @return {Number} The timeout id that can be used with clearTimeout
|
|
979
|
-
*/
|
|
980
|
-
defer : function(millis, obj, args, appendArgs){
|
|
981
|
-
var fn = this.createDelegate(obj, args, appendArgs);
|
|
982
|
-
if(millis > 0){
|
|
983
|
-
return setTimeout(fn, millis);
|
|
984
|
-
}
|
|
985
|
-
fn();
|
|
986
|
-
return 0;
|
|
987
|
-
}
|
|
988
|
-
});
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* @class String
|
|
992
|
-
* These functions are available on every String object.
|
|
993
|
-
*/
|
|
994
|
-
Ext.applyIf(String, {
|
|
995
|
-
/**
|
|
996
|
-
* Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each
|
|
997
|
-
* token must be unique, and must increment in the format {0}, {1}, etc. Example usage:
|
|
998
|
-
* <pre><code>
|
|
999
|
-
var cls = 'my-class', text = 'Some text';
|
|
1000
|
-
var s = String.format('<div class="{0}">{1}</div>', cls, text);
|
|
1001
|
-
// s now contains the string: '<div class="my-class">Some text</div>'
|
|
1002
|
-
* </code></pre>
|
|
1003
|
-
* @param {String} string The tokenized string to be formatted
|
|
1004
|
-
* @param {String} value1 The value to replace token {0}
|
|
1005
|
-
* @param {String} value2 Etc...
|
|
1006
|
-
* @return {String} The formatted string
|
|
1007
|
-
* @static
|
|
1008
|
-
*/
|
|
1009
|
-
format : function(format){
|
|
1010
|
-
var args = Ext.toArray(arguments, 1);
|
|
1011
|
-
return format.replace(/\{(\d+)\}/g, function(m, i){
|
|
1012
|
-
return args[i];
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
|
|
1017
|
-
/**
|
|
1018
|
-
* @class Array
|
|
1019
|
-
*/
|
|
1020
|
-
Ext.applyIf(Array.prototype, {
|
|
1021
|
-
/**
|
|
1022
|
-
* Checks whether or not the specified object exists in the array.
|
|
1023
|
-
* @param {Object} o The object to check for
|
|
1024
|
-
* @param {Number} from (Optional) The index at which to begin the search
|
|
1025
|
-
* @return {Number} The index of o in the array (or -1 if it is not found)
|
|
1026
|
-
*/
|
|
1027
|
-
indexOf : function(o, from){
|
|
1028
|
-
var len = this.length;
|
|
1029
|
-
from = from || 0;
|
|
1030
|
-
from += (from < 0) ? len : 0;
|
|
1031
|
-
for (; from < len; ++from){
|
|
1032
|
-
if(this[from] === o){
|
|
1033
|
-
return from;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
return -1;
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Removes the specified object from the array. If the object is not found nothing happens.
|
|
1041
|
-
* @param {Object} o The object to remove
|
|
1042
|
-
* @return {Array} this array
|
|
1043
|
-
*/
|
|
1044
|
-
remove : function(o){
|
|
1045
|
-
var index = this.indexOf(o);
|
|
1046
|
-
if(index != -1){
|
|
1047
|
-
this.splice(index, 1);
|
|
1048
|
-
}
|
|
1049
|
-
return this;
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
/**
|
|
1053
|
-
* @class Ext.util.TaskRunner
|
|
1054
|
-
* Provides the ability to execute one or more arbitrary tasks in a multithreaded
|
|
1055
|
-
* manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but
|
|
1056
|
-
* if needed, you can create separate instances of TaskRunner. Any number of
|
|
1057
|
-
* separate tasks can be started at any time and will run independently of each
|
|
1058
|
-
* other. Example usage:
|
|
1059
|
-
* <pre><code>
|
|
1060
|
-
// Start a simple clock task that updates a div once per second
|
|
1061
|
-
var updateClock = function(){
|
|
1062
|
-
Ext.fly('clock').update(new Date().format('g:i:s A'));
|
|
1063
|
-
}
|
|
1064
|
-
var task = {
|
|
1065
|
-
run: updateClock,
|
|
1066
|
-
interval: 1000 //1 second
|
|
1067
|
-
}
|
|
1068
|
-
var runner = new Ext.util.TaskRunner();
|
|
1069
|
-
runner.start(task);
|
|
1070
|
-
|
|
1071
|
-
// equivalent using TaskMgr
|
|
1072
|
-
Ext.TaskMgr.start({
|
|
1073
|
-
run: updateClock,
|
|
1074
|
-
interval: 1000
|
|
1075
|
-
});
|
|
1076
|
-
|
|
1077
|
-
* </code></pre>
|
|
1078
|
-
* <p>See the {@link #start} method for details about how to configure a task object.</p>
|
|
1079
|
-
* Also see {@link Ext.util.DelayedTask}.
|
|
1080
|
-
*
|
|
1081
|
-
* @constructor
|
|
1082
|
-
* @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance
|
|
1083
|
-
* (defaults to 10)
|
|
1084
|
-
*/
|
|
1085
|
-
Ext.util.TaskRunner = function(interval){
|
|
1086
|
-
interval = interval || 10;
|
|
1087
|
-
var tasks = [],
|
|
1088
|
-
removeQueue = [],
|
|
1089
|
-
id = 0,
|
|
1090
|
-
running = false,
|
|
1091
|
-
|
|
1092
|
-
// private
|
|
1093
|
-
stopThread = function(){
|
|
1094
|
-
running = false;
|
|
1095
|
-
clearInterval(id);
|
|
1096
|
-
id = 0;
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1099
|
-
// private
|
|
1100
|
-
startThread = function(){
|
|
1101
|
-
if(!running){
|
|
1102
|
-
running = true;
|
|
1103
|
-
id = setInterval(runTasks, interval);
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
// private
|
|
1108
|
-
removeTask = function(t){
|
|
1109
|
-
removeQueue.push(t);
|
|
1110
|
-
if(t.onStop){
|
|
1111
|
-
t.onStop.apply(t.scope || t);
|
|
1112
|
-
}
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1115
|
-
// private
|
|
1116
|
-
runTasks = function(){
|
|
1117
|
-
var rqLen = removeQueue.length,
|
|
1118
|
-
now = new Date().getTime();
|
|
1119
|
-
|
|
1120
|
-
if(rqLen > 0){
|
|
1121
|
-
for(var i = 0; i < rqLen; i++){
|
|
1122
|
-
tasks.remove(removeQueue[i]);
|
|
1123
|
-
}
|
|
1124
|
-
removeQueue = [];
|
|
1125
|
-
if(tasks.length < 1){
|
|
1126
|
-
stopThread();
|
|
1127
|
-
return;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){
|
|
1131
|
-
t = tasks[i];
|
|
1132
|
-
itime = now - t.taskRunTime;
|
|
1133
|
-
if(t.interval <= itime){
|
|
1134
|
-
rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]);
|
|
1135
|
-
t.taskRunTime = now;
|
|
1136
|
-
if(rt === false || t.taskRunCount === t.repeat){
|
|
1137
|
-
removeTask(t);
|
|
1138
|
-
return;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
if(t.duration && t.duration <= (now - t.taskStartTime)){
|
|
1142
|
-
removeTask(t);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* Starts a new task.
|
|
1149
|
-
* @method start
|
|
1150
|
-
* @param {Object} task <p>A config object that supports the following properties:<ul>
|
|
1151
|
-
* <li><code>run</code> : Function<div class="sub-desc"><p>The function to execute each time the task is invoked. The
|
|
1152
|
-
* function will be called at each interval and passed the <code>args</code> argument if specified, and the
|
|
1153
|
-
* current invocation count if not.</p>
|
|
1154
|
-
* <p>If a particular scope (<code>this</code> reference) is required, be sure to specify it using the <code>scope</code> argument.</p>
|
|
1155
|
-
* <p>Return <code>false</code> from this function to terminate the task.</p></div></li>
|
|
1156
|
-
* <li><code>interval</code> : Number<div class="sub-desc">The frequency in milliseconds with which the task
|
|
1157
|
-
* should be invoked.</div></li>
|
|
1158
|
-
* <li><code>args</code> : Array<div class="sub-desc">(optional) An array of arguments to be passed to the function
|
|
1159
|
-
* specified by <code>run</code>. If not specified, the current invocation count is passed.</div></li>
|
|
1160
|
-
* <li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (<tt>this</tt> reference) in which to execute the
|
|
1161
|
-
* <code>run</code> function. Defaults to the task config object.</div></li>
|
|
1162
|
-
* <li><code>duration</code> : Number<div class="sub-desc">(optional) The length of time in milliseconds to invoke
|
|
1163
|
-
* the task before stopping automatically (defaults to indefinite).</div></li>
|
|
1164
|
-
* <li><code>repeat</code> : Number<div class="sub-desc">(optional) The number of times to invoke the task before
|
|
1165
|
-
* stopping automatically (defaults to indefinite).</div></li>
|
|
1166
|
-
* </ul></p>
|
|
1167
|
-
* <p>Before each invocation, Ext injects the property <code>taskRunCount</code> into the task object so
|
|
1168
|
-
* that calculations based on the repeat count can be performed.</p>
|
|
1169
|
-
* @return {Object} The task
|
|
1170
|
-
*/
|
|
1171
|
-
this.start = function(task){
|
|
1172
|
-
tasks.push(task);
|
|
1173
|
-
task.taskStartTime = new Date().getTime();
|
|
1174
|
-
task.taskRunTime = 0;
|
|
1175
|
-
task.taskRunCount = 0;
|
|
1176
|
-
startThread();
|
|
1177
|
-
return task;
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* Stops an existing running task.
|
|
1182
|
-
* @method stop
|
|
1183
|
-
* @param {Object} task The task to stop
|
|
1184
|
-
* @return {Object} The task
|
|
1185
|
-
*/
|
|
1186
|
-
this.stop = function(task){
|
|
1187
|
-
removeTask(task);
|
|
1188
|
-
return task;
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* Stops all tasks that are currently running.
|
|
1193
|
-
* @method stopAll
|
|
1194
|
-
*/
|
|
1195
|
-
this.stopAll = function(){
|
|
1196
|
-
stopThread();
|
|
1197
|
-
for(var i = 0, len = tasks.length; i < len; i++){
|
|
1198
|
-
if(tasks[i].onStop){
|
|
1199
|
-
tasks[i].onStop();
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
tasks = [];
|
|
1203
|
-
removeQueue = [];
|
|
1204
|
-
};
|
|
1205
|
-
};
|
|
1206
|
-
|
|
1207
|
-
/**
|
|
1208
|
-
* @class Ext.TaskMgr
|
|
1209
|
-
* @extends Ext.util.TaskRunner
|
|
1210
|
-
* A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See
|
|
1211
|
-
* {@link Ext.util.TaskRunner} for supported methods and task config properties.
|
|
1212
|
-
* <pre><code>
|
|
1213
|
-
// Start a simple clock task that updates a div once per second
|
|
1214
|
-
var task = {
|
|
1215
|
-
run: function(){
|
|
1216
|
-
Ext.fly('clock').update(new Date().format('g:i:s A'));
|
|
1217
|
-
},
|
|
1218
|
-
interval: 1000 //1 second
|
|
1219
|
-
}
|
|
1220
|
-
Ext.TaskMgr.start(task);
|
|
1221
|
-
</code></pre>
|
|
1222
|
-
* <p>See the {@link #start} method for details about how to configure a task object.</p>
|
|
1223
|
-
* @singleton
|
|
1224
|
-
*/
|
|
1225
|
-
Ext.TaskMgr = new Ext.util.TaskRunner();(function(){
|
|
1226
|
-
var libFlyweight;
|
|
1227
|
-
|
|
1228
|
-
function fly(el) {
|
|
1229
|
-
if (!libFlyweight) {
|
|
1230
|
-
libFlyweight = new Ext.Element.Flyweight();
|
|
1231
|
-
}
|
|
1232
|
-
libFlyweight.dom = el;
|
|
1233
|
-
return libFlyweight;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
(function(){
|
|
1237
|
-
var doc = document,
|
|
1238
|
-
isCSS1 = doc.compatMode == "CSS1Compat",
|
|
1239
|
-
MAX = Math.max,
|
|
1240
|
-
ROUND = Math.round,
|
|
1241
|
-
PARSEINT = parseInt;
|
|
1242
|
-
|
|
1243
|
-
Ext.lib.Dom = {
|
|
1244
|
-
isAncestor : function(p, c) {
|
|
1245
|
-
var ret = false;
|
|
1246
|
-
|
|
1247
|
-
p = Ext.getDom(p);
|
|
1248
|
-
c = Ext.getDom(c);
|
|
1249
|
-
if (p && c) {
|
|
1250
|
-
if (p.contains) {
|
|
1251
|
-
return p.contains(c);
|
|
1252
|
-
} else if (p.compareDocumentPosition) {
|
|
1253
|
-
return !!(p.compareDocumentPosition(c) & 16);
|
|
1254
|
-
} else {
|
|
1255
|
-
while (c = c.parentNode) {
|
|
1256
|
-
ret = c == p || ret;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
return ret;
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1263
|
-
getViewWidth : function(full) {
|
|
1264
|
-
return full ? this.getDocumentWidth() : this.getViewportWidth();
|
|
1265
|
-
},
|
|
1266
|
-
|
|
1267
|
-
getViewHeight : function(full) {
|
|
1268
|
-
return full ? this.getDocumentHeight() : this.getViewportHeight();
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
getDocumentHeight: function() {
|
|
1272
|
-
return MAX(!isCSS1 ? doc.body.scrollHeight : doc.documentElement.scrollHeight, this.getViewportHeight());
|
|
1273
|
-
},
|
|
1274
|
-
|
|
1275
|
-
getDocumentWidth: function() {
|
|
1276
|
-
return MAX(!isCSS1 ? doc.body.scrollWidth : doc.documentElement.scrollWidth, this.getViewportWidth());
|
|
1277
|
-
},
|
|
1278
|
-
|
|
1279
|
-
getViewportHeight: function(){
|
|
1280
|
-
return Ext.isIE ?
|
|
1281
|
-
(Ext.isStrict ? doc.documentElement.clientHeight : doc.body.clientHeight) :
|
|
1282
|
-
self.innerHeight;
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1285
|
-
getViewportWidth : function() {
|
|
1286
|
-
return !Ext.isStrict && !Ext.isOpera ? doc.body.clientWidth :
|
|
1287
|
-
Ext.isIE ? doc.documentElement.clientWidth : self.innerWidth;
|
|
1288
|
-
},
|
|
1289
|
-
|
|
1290
|
-
getY : function(el) {
|
|
1291
|
-
return this.getXY(el)[1];
|
|
1292
|
-
},
|
|
1293
|
-
|
|
1294
|
-
getX : function(el) {
|
|
1295
|
-
return this.getXY(el)[0];
|
|
1296
|
-
},
|
|
1297
|
-
|
|
1298
|
-
getXY : function(el) {
|
|
1299
|
-
var p,
|
|
1300
|
-
pe,
|
|
1301
|
-
b,
|
|
1302
|
-
bt,
|
|
1303
|
-
bl,
|
|
1304
|
-
dbd,
|
|
1305
|
-
x = 0,
|
|
1306
|
-
y = 0,
|
|
1307
|
-
scroll,
|
|
1308
|
-
hasAbsolute,
|
|
1309
|
-
bd = (doc.body || doc.documentElement),
|
|
1310
|
-
ret = [0,0];
|
|
1311
|
-
|
|
1312
|
-
el = Ext.getDom(el);
|
|
1313
|
-
|
|
1314
|
-
if(el != bd){
|
|
1315
|
-
if (el.getBoundingClientRect) {
|
|
1316
|
-
b = el.getBoundingClientRect();
|
|
1317
|
-
scroll = fly(document).getScroll();
|
|
1318
|
-
ret = [ROUND(b.left + scroll.left), ROUND(b.top + scroll.top)];
|
|
1319
|
-
} else {
|
|
1320
|
-
p = el;
|
|
1321
|
-
hasAbsolute = fly(el).isStyle("position", "absolute");
|
|
1322
|
-
|
|
1323
|
-
while (p) {
|
|
1324
|
-
pe = fly(p);
|
|
1325
|
-
x += p.offsetLeft;
|
|
1326
|
-
y += p.offsetTop;
|
|
1327
|
-
|
|
1328
|
-
hasAbsolute = hasAbsolute || pe.isStyle("position", "absolute");
|
|
1329
|
-
|
|
1330
|
-
if (Ext.isGecko) {
|
|
1331
|
-
y += bt = PARSEINT(pe.getStyle("borderTopWidth"), 10) || 0;
|
|
1332
|
-
x += bl = PARSEINT(pe.getStyle("borderLeftWidth"), 10) || 0;
|
|
1333
|
-
|
|
1334
|
-
if (p != el && !pe.isStyle('overflow','visible')) {
|
|
1335
|
-
x += bl;
|
|
1336
|
-
y += bt;
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
p = p.offsetParent;
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
if (Ext.isSafari && hasAbsolute) {
|
|
1343
|
-
x -= bd.offsetLeft;
|
|
1344
|
-
y -= bd.offsetTop;
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
if (Ext.isGecko && !hasAbsolute) {
|
|
1348
|
-
dbd = fly(bd);
|
|
1349
|
-
x += PARSEINT(dbd.getStyle("borderLeftWidth"), 10) || 0;
|
|
1350
|
-
y += PARSEINT(dbd.getStyle("borderTopWidth"), 10) || 0;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
p = el.parentNode;
|
|
1354
|
-
while (p && p != bd) {
|
|
1355
|
-
if (!Ext.isOpera || (p.tagName != 'TR' && !fly(p).isStyle("display", "inline"))) {
|
|
1356
|
-
x -= p.scrollLeft;
|
|
1357
|
-
y -= p.scrollTop;
|
|
1358
|
-
}
|
|
1359
|
-
p = p.parentNode;
|
|
1360
|
-
}
|
|
1361
|
-
ret = [x,y];
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
return ret;
|
|
1365
|
-
},
|
|
1366
|
-
|
|
1367
|
-
setXY : function(el, xy) {
|
|
1368
|
-
(el = Ext.fly(el, '_setXY')).position();
|
|
1369
|
-
|
|
1370
|
-
var pts = el.translatePoints(xy),
|
|
1371
|
-
style = el.dom.style,
|
|
1372
|
-
pos;
|
|
1373
|
-
|
|
1374
|
-
for (pos in pts) {
|
|
1375
|
-
if (!isNaN(pts[pos])) {
|
|
1376
|
-
style[pos] = pts[pos] + "px";
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
|
|
1381
|
-
setX : function(el, x) {
|
|
1382
|
-
this.setXY(el, [x, false]);
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1385
|
-
setY : function(el, y) {
|
|
1386
|
-
this.setXY(el, [false, y]);
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
})();Ext.lib.Event = function() {
|
|
1390
|
-
var loadComplete = false,
|
|
1391
|
-
unloadListeners = {},
|
|
1392
|
-
retryCount = 0,
|
|
1393
|
-
onAvailStack = [],
|
|
1394
|
-
_interval,
|
|
1395
|
-
locked = false,
|
|
1396
|
-
win = window,
|
|
1397
|
-
doc = document,
|
|
1398
|
-
|
|
1399
|
-
// constants
|
|
1400
|
-
POLL_RETRYS = 200,
|
|
1401
|
-
POLL_INTERVAL = 20,
|
|
1402
|
-
TYPE = 0,
|
|
1403
|
-
FN = 1,
|
|
1404
|
-
OBJ = 2,
|
|
1405
|
-
ADJ_SCOPE = 3,
|
|
1406
|
-
SCROLLLEFT = 'scrollLeft',
|
|
1407
|
-
SCROLLTOP = 'scrollTop',
|
|
1408
|
-
UNLOAD = 'unload',
|
|
1409
|
-
MOUSEOVER = 'mouseover',
|
|
1410
|
-
MOUSEOUT = 'mouseout',
|
|
1411
|
-
// private
|
|
1412
|
-
doAdd = function() {
|
|
1413
|
-
var ret;
|
|
1414
|
-
if (win.addEventListener) {
|
|
1415
|
-
ret = function(el, eventName, fn, capture) {
|
|
1416
|
-
if (eventName == 'mouseenter') {
|
|
1417
|
-
fn = fn.createInterceptor(checkRelatedTarget);
|
|
1418
|
-
el.addEventListener(MOUSEOVER, fn, (capture));
|
|
1419
|
-
} else if (eventName == 'mouseleave') {
|
|
1420
|
-
fn = fn.createInterceptor(checkRelatedTarget);
|
|
1421
|
-
el.addEventListener(MOUSEOUT, fn, (capture));
|
|
1422
|
-
} else {
|
|
1423
|
-
el.addEventListener(eventName, fn, (capture));
|
|
1424
|
-
}
|
|
1425
|
-
return fn;
|
|
1426
|
-
};
|
|
1427
|
-
} else if (win.attachEvent) {
|
|
1428
|
-
ret = function(el, eventName, fn, capture) {
|
|
1429
|
-
el.attachEvent("on" + eventName, fn);
|
|
1430
|
-
return fn;
|
|
1431
|
-
};
|
|
1432
|
-
} else {
|
|
1433
|
-
ret = function(){};
|
|
1434
|
-
}
|
|
1435
|
-
return ret;
|
|
1436
|
-
}(),
|
|
1437
|
-
// private
|
|
1438
|
-
doRemove = function(){
|
|
1439
|
-
var ret;
|
|
1440
|
-
if (win.removeEventListener) {
|
|
1441
|
-
ret = function (el, eventName, fn, capture) {
|
|
1442
|
-
if (eventName == 'mouseenter') {
|
|
1443
|
-
eventName = MOUSEOVER;
|
|
1444
|
-
} else if (eventName == 'mouseleave') {
|
|
1445
|
-
eventName = MOUSEOUT;
|
|
1446
|
-
}
|
|
1447
|
-
el.removeEventListener(eventName, fn, (capture));
|
|
1448
|
-
};
|
|
1449
|
-
} else if (win.detachEvent) {
|
|
1450
|
-
ret = function (el, eventName, fn) {
|
|
1451
|
-
el.detachEvent("on" + eventName, fn);
|
|
1452
|
-
};
|
|
1453
|
-
} else {
|
|
1454
|
-
ret = function(){};
|
|
1455
|
-
}
|
|
1456
|
-
return ret;
|
|
1457
|
-
}();
|
|
1458
|
-
|
|
1459
|
-
function checkRelatedTarget(e) {
|
|
1460
|
-
return !elContains(e.currentTarget, pub.getRelatedTarget(e));
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
function elContains(parent, child) {
|
|
1464
|
-
if(parent && parent.firstChild){
|
|
1465
|
-
while(child) {
|
|
1466
|
-
if(child === parent) {
|
|
1467
|
-
return true;
|
|
1468
|
-
}
|
|
1469
|
-
child = child.parentNode;
|
|
1470
|
-
if(child && (child.nodeType != 1)) {
|
|
1471
|
-
child = null;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
return false;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
// private
|
|
1479
|
-
function _tryPreloadAttach() {
|
|
1480
|
-
var ret = false,
|
|
1481
|
-
notAvail = [],
|
|
1482
|
-
element, i, v, override,
|
|
1483
|
-
tryAgain = !loadComplete || (retryCount > 0);
|
|
1484
|
-
|
|
1485
|
-
if(!locked){
|
|
1486
|
-
locked = true;
|
|
1487
|
-
|
|
1488
|
-
for(i = 0; i < onAvailStack.length; ++i){
|
|
1489
|
-
v = onAvailStack[i];
|
|
1490
|
-
if(v && (element = doc.getElementById(v.id))){
|
|
1491
|
-
if(!v.checkReady || loadComplete || element.nextSibling || (doc && doc.body)) {
|
|
1492
|
-
override = v.override;
|
|
1493
|
-
element = override ? (override === true ? v.obj : override) : element;
|
|
1494
|
-
v.fn.call(element, v.obj);
|
|
1495
|
-
onAvailStack.remove(v);
|
|
1496
|
-
--i;
|
|
1497
|
-
}else{
|
|
1498
|
-
notAvail.push(v);
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
retryCount = (notAvail.length === 0) ? 0 : retryCount - 1;
|
|
1504
|
-
|
|
1505
|
-
if (tryAgain) {
|
|
1506
|
-
startInterval();
|
|
1507
|
-
} else {
|
|
1508
|
-
clearInterval(_interval);
|
|
1509
|
-
_interval = null;
|
|
1510
|
-
}
|
|
1511
|
-
ret = !(locked = false);
|
|
1512
|
-
}
|
|
1513
|
-
return ret;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
// private
|
|
1517
|
-
function startInterval() {
|
|
1518
|
-
if(!_interval){
|
|
1519
|
-
var callback = function() {
|
|
1520
|
-
_tryPreloadAttach();
|
|
1521
|
-
};
|
|
1522
|
-
_interval = setInterval(callback, POLL_INTERVAL);
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
// private
|
|
1527
|
-
function getScroll() {
|
|
1528
|
-
var dd = doc.documentElement,
|
|
1529
|
-
db = doc.body;
|
|
1530
|
-
if(dd && (dd[SCROLLTOP] || dd[SCROLLLEFT])){
|
|
1531
|
-
return [dd[SCROLLLEFT], dd[SCROLLTOP]];
|
|
1532
|
-
}else if(db){
|
|
1533
|
-
return [db[SCROLLLEFT], db[SCROLLTOP]];
|
|
1534
|
-
}else{
|
|
1535
|
-
return [0, 0];
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
// private
|
|
1540
|
-
function getPageCoord (ev, xy) {
|
|
1541
|
-
ev = ev.browserEvent || ev;
|
|
1542
|
-
var coord = ev['page' + xy];
|
|
1543
|
-
if (!coord && coord !== 0) {
|
|
1544
|
-
coord = ev['client' + xy] || 0;
|
|
1545
|
-
|
|
1546
|
-
if (Ext.isIE) {
|
|
1547
|
-
coord += getScroll()[xy == "X" ? 0 : 1];
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
return coord;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
var pub = {
|
|
1555
|
-
extAdapter: true,
|
|
1556
|
-
onAvailable : function(p_id, p_fn, p_obj, p_override) {
|
|
1557
|
-
onAvailStack.push({
|
|
1558
|
-
id: p_id,
|
|
1559
|
-
fn: p_fn,
|
|
1560
|
-
obj: p_obj,
|
|
1561
|
-
override: p_override,
|
|
1562
|
-
checkReady: false });
|
|
1563
|
-
|
|
1564
|
-
retryCount = POLL_RETRYS;
|
|
1565
|
-
startInterval();
|
|
1566
|
-
},
|
|
1567
|
-
|
|
1568
|
-
// This function should ALWAYS be called from Ext.EventManager
|
|
1569
|
-
addListener: function(el, eventName, fn) {
|
|
1570
|
-
el = Ext.getDom(el);
|
|
1571
|
-
if (el && fn) {
|
|
1572
|
-
if (eventName == UNLOAD) {
|
|
1573
|
-
if (unloadListeners[el.id] === undefined) {
|
|
1574
|
-
unloadListeners[el.id] = [];
|
|
1575
|
-
}
|
|
1576
|
-
unloadListeners[el.id].push([eventName, fn]);
|
|
1577
|
-
return fn;
|
|
1578
|
-
}
|
|
1579
|
-
return doAdd(el, eventName, fn, false);
|
|
1580
|
-
}
|
|
1581
|
-
return false;
|
|
1582
|
-
},
|
|
1583
|
-
|
|
1584
|
-
// This function should ALWAYS be called from Ext.EventManager
|
|
1585
|
-
removeListener: function(el, eventName, fn) {
|
|
1586
|
-
el = Ext.getDom(el);
|
|
1587
|
-
var i, len, li, lis;
|
|
1588
|
-
if (el && fn) {
|
|
1589
|
-
if(eventName == UNLOAD){
|
|
1590
|
-
if((lis = unloadListeners[el.id]) !== undefined){
|
|
1591
|
-
for(i = 0, len = lis.length; i < len; i++){
|
|
1592
|
-
if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
|
|
1593
|
-
unloadListeners[el.id].splice(i, 1);
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
return;
|
|
1598
|
-
}
|
|
1599
|
-
doRemove(el, eventName, fn, false);
|
|
1600
|
-
}
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1603
|
-
getTarget : function(ev) {
|
|
1604
|
-
ev = ev.browserEvent || ev;
|
|
1605
|
-
return this.resolveTextNode(ev.target || ev.srcElement);
|
|
1606
|
-
},
|
|
1607
|
-
|
|
1608
|
-
resolveTextNode : Ext.isGecko ? function(node){
|
|
1609
|
-
if(!node){
|
|
1610
|
-
return;
|
|
1611
|
-
}
|
|
1612
|
-
// work around firefox bug, https://bugzilla.mozilla.org/show_bug.cgi?id=101197
|
|
1613
|
-
var s = HTMLElement.prototype.toString.call(node);
|
|
1614
|
-
if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){
|
|
1615
|
-
return;
|
|
1616
|
-
}
|
|
1617
|
-
return node.nodeType == 3 ? node.parentNode : node;
|
|
1618
|
-
} : function(node){
|
|
1619
|
-
return node && node.nodeType == 3 ? node.parentNode : node;
|
|
1620
|
-
},
|
|
1621
|
-
|
|
1622
|
-
getRelatedTarget : function(ev) {
|
|
1623
|
-
ev = ev.browserEvent || ev;
|
|
1624
|
-
return this.resolveTextNode(ev.relatedTarget ||
|
|
1625
|
-
(/(mouseout|mouseleave)/.test(ev.type) ? ev.toElement :
|
|
1626
|
-
/(mouseover|mouseenter)/.test(ev.type) ? ev.fromElement : null));
|
|
1627
|
-
},
|
|
1628
|
-
|
|
1629
|
-
getPageX : function(ev) {
|
|
1630
|
-
return getPageCoord(ev, "X");
|
|
1631
|
-
},
|
|
1632
|
-
|
|
1633
|
-
getPageY : function(ev) {
|
|
1634
|
-
return getPageCoord(ev, "Y");
|
|
1635
|
-
},
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
getXY : function(ev) {
|
|
1639
|
-
return [this.getPageX(ev), this.getPageY(ev)];
|
|
1640
|
-
},
|
|
1641
|
-
|
|
1642
|
-
stopEvent : function(ev) {
|
|
1643
|
-
this.stopPropagation(ev);
|
|
1644
|
-
this.preventDefault(ev);
|
|
1645
|
-
},
|
|
1646
|
-
|
|
1647
|
-
stopPropagation : function(ev) {
|
|
1648
|
-
ev = ev.browserEvent || ev;
|
|
1649
|
-
if (ev.stopPropagation) {
|
|
1650
|
-
ev.stopPropagation();
|
|
1651
|
-
} else {
|
|
1652
|
-
ev.cancelBubble = true;
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
|
|
1656
|
-
preventDefault : function(ev) {
|
|
1657
|
-
ev = ev.browserEvent || ev;
|
|
1658
|
-
if (ev.preventDefault) {
|
|
1659
|
-
ev.preventDefault();
|
|
1660
|
-
} else {
|
|
1661
|
-
ev.returnValue = false;
|
|
1662
|
-
}
|
|
1663
|
-
},
|
|
1664
|
-
|
|
1665
|
-
getEvent : function(e) {
|
|
1666
|
-
e = e || win.event;
|
|
1667
|
-
if (!e) {
|
|
1668
|
-
var c = this.getEvent.caller;
|
|
1669
|
-
while (c) {
|
|
1670
|
-
e = c.arguments[0];
|
|
1671
|
-
if (e && Event == e.constructor) {
|
|
1672
|
-
break;
|
|
1673
|
-
}
|
|
1674
|
-
c = c.caller;
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
return e;
|
|
1678
|
-
},
|
|
1679
|
-
|
|
1680
|
-
getCharCode : function(ev) {
|
|
1681
|
-
ev = ev.browserEvent || ev;
|
|
1682
|
-
return ev.charCode || ev.keyCode || 0;
|
|
1683
|
-
},
|
|
1684
|
-
|
|
1685
|
-
//clearCache: function() {},
|
|
1686
|
-
// deprecated, call from EventManager
|
|
1687
|
-
getListeners : function(el, eventName) {
|
|
1688
|
-
Ext.EventManager.getListeners(el, eventName);
|
|
1689
|
-
},
|
|
1690
|
-
|
|
1691
|
-
// deprecated, call from EventManager
|
|
1692
|
-
purgeElement : function(el, recurse, eventName) {
|
|
1693
|
-
Ext.EventManager.purgeElement(el, recurse, eventName);
|
|
1694
|
-
},
|
|
1695
|
-
|
|
1696
|
-
_load : function(e) {
|
|
1697
|
-
loadComplete = true;
|
|
1698
|
-
|
|
1699
|
-
if (Ext.isIE && e !== true) {
|
|
1700
|
-
// IE8 complains that _load is null or not an object
|
|
1701
|
-
// so lets remove self via arguments.callee
|
|
1702
|
-
doRemove(win, "load", arguments.callee);
|
|
1703
|
-
}
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
_unload : function(e) {
|
|
1707
|
-
var EU = Ext.lib.Event,
|
|
1708
|
-
i, v, ul, id, len, scope;
|
|
1709
|
-
|
|
1710
|
-
for (id in unloadListeners) {
|
|
1711
|
-
ul = unloadListeners[id];
|
|
1712
|
-
for (i = 0, len = ul.length; i < len; i++) {
|
|
1713
|
-
v = ul[i];
|
|
1714
|
-
if (v) {
|
|
1715
|
-
try{
|
|
1716
|
-
scope = v[ADJ_SCOPE] ? (v[ADJ_SCOPE] === true ? v[OBJ] : v[ADJ_SCOPE]) : win;
|
|
1717
|
-
v[FN].call(scope, EU.getEvent(e), v[OBJ]);
|
|
1718
|
-
}catch(ex){}
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
Ext.EventManager._unload();
|
|
1724
|
-
|
|
1725
|
-
doRemove(win, UNLOAD, EU._unload);
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
|
|
1729
|
-
// Initialize stuff.
|
|
1730
|
-
pub.on = pub.addListener;
|
|
1731
|
-
pub.un = pub.removeListener;
|
|
1732
|
-
if (doc && doc.body) {
|
|
1733
|
-
pub._load(true);
|
|
1734
|
-
} else {
|
|
1735
|
-
doAdd(win, "load", pub._load);
|
|
1736
|
-
}
|
|
1737
|
-
doAdd(win, UNLOAD, pub._unload);
|
|
1738
|
-
_tryPreloadAttach();
|
|
1739
|
-
|
|
1740
|
-
return pub;
|
|
1741
|
-
}();
|
|
1742
|
-
/*
|
|
1743
|
-
* Portions of this file are based on pieces of Yahoo User Interface Library
|
|
1744
|
-
* Copyright (c) 2007, Yahoo! Inc. All rights reserved.
|
|
1745
|
-
* YUI licensed under the BSD License:
|
|
1746
|
-
* http://developer.yahoo.net/yui/license.txt
|
|
1747
|
-
*/
|
|
1748
|
-
Ext.lib.Ajax = function() {
|
|
1749
|
-
var activeX = ['Msxml2.XMLHTTP.6.0',
|
|
1750
|
-
'Msxml2.XMLHTTP.3.0',
|
|
1751
|
-
'Msxml2.XMLHTTP'],
|
|
1752
|
-
CONTENTTYPE = 'Content-Type';
|
|
1753
|
-
|
|
1754
|
-
// private
|
|
1755
|
-
function setHeader(o) {
|
|
1756
|
-
var conn = o.conn,
|
|
1757
|
-
prop,
|
|
1758
|
-
headers = {};
|
|
1759
|
-
|
|
1760
|
-
function setTheHeaders(conn, headers){
|
|
1761
|
-
for (prop in headers) {
|
|
1762
|
-
if (headers.hasOwnProperty(prop)) {
|
|
1763
|
-
conn.setRequestHeader(prop, headers[prop]);
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
Ext.apply(headers, pub.headers, pub.defaultHeaders);
|
|
1769
|
-
setTheHeaders(conn, headers);
|
|
1770
|
-
delete pub.headers;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
// private
|
|
1774
|
-
function createExceptionObject(tId, callbackArg, isAbort, isTimeout) {
|
|
1775
|
-
return {
|
|
1776
|
-
tId : tId,
|
|
1777
|
-
status : isAbort ? -1 : 0,
|
|
1778
|
-
statusText : isAbort ? 'transaction aborted' : 'communication failure',
|
|
1779
|
-
isAbort: isAbort,
|
|
1780
|
-
isTimeout: isTimeout,
|
|
1781
|
-
argument : callbackArg
|
|
1782
|
-
};
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
// private
|
|
1786
|
-
function initHeader(label, value) {
|
|
1787
|
-
(pub.headers = pub.headers || {})[label] = value;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
// private
|
|
1791
|
-
function createResponseObject(o, callbackArg) {
|
|
1792
|
-
var headerObj = {},
|
|
1793
|
-
headerStr,
|
|
1794
|
-
conn = o.conn,
|
|
1795
|
-
t,
|
|
1796
|
-
s,
|
|
1797
|
-
// see: https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223
|
|
1798
|
-
isBrokenStatus = conn.status == 1223;
|
|
1799
|
-
|
|
1800
|
-
try {
|
|
1801
|
-
headerStr = o.conn.getAllResponseHeaders();
|
|
1802
|
-
Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){
|
|
1803
|
-
t = v.indexOf(':');
|
|
1804
|
-
if(t >= 0){
|
|
1805
|
-
s = v.substr(0, t).toLowerCase();
|
|
1806
|
-
if(v.charAt(t + 1) == ' '){
|
|
1807
|
-
++t;
|
|
1808
|
-
}
|
|
1809
|
-
headerObj[s] = v.substr(t + 1);
|
|
1810
|
-
}
|
|
1811
|
-
});
|
|
1812
|
-
} catch(e) {}
|
|
1813
|
-
|
|
1814
|
-
return {
|
|
1815
|
-
tId : o.tId,
|
|
1816
|
-
// Normalize the status and statusText when IE returns 1223, see the above link.
|
|
1817
|
-
status : isBrokenStatus ? 204 : conn.status,
|
|
1818
|
-
statusText : isBrokenStatus ? 'No Content' : conn.statusText,
|
|
1819
|
-
getResponseHeader : function(header){return headerObj[header.toLowerCase()];},
|
|
1820
|
-
getAllResponseHeaders : function(){return headerStr;},
|
|
1821
|
-
responseText : conn.responseText,
|
|
1822
|
-
responseXML : conn.responseXML,
|
|
1823
|
-
argument : callbackArg
|
|
1824
|
-
};
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
// private
|
|
1828
|
-
function releaseObject(o) {
|
|
1829
|
-
if (o.tId) {
|
|
1830
|
-
pub.conn[o.tId] = null;
|
|
1831
|
-
}
|
|
1832
|
-
o.conn = null;
|
|
1833
|
-
o = null;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
// private
|
|
1837
|
-
function handleTransactionResponse(o, callback, isAbort, isTimeout) {
|
|
1838
|
-
if (!callback) {
|
|
1839
|
-
releaseObject(o);
|
|
1840
|
-
return;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
var httpStatus, responseObject;
|
|
1844
|
-
|
|
1845
|
-
try {
|
|
1846
|
-
if (o.conn.status !== undefined && o.conn.status != 0) {
|
|
1847
|
-
httpStatus = o.conn.status;
|
|
1848
|
-
}
|
|
1849
|
-
else {
|
|
1850
|
-
httpStatus = 13030;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
catch(e) {
|
|
1854
|
-
httpStatus = 13030;
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
if ((httpStatus >= 200 && httpStatus < 300) || (Ext.isIE && httpStatus == 1223)) {
|
|
1858
|
-
responseObject = createResponseObject(o, callback.argument);
|
|
1859
|
-
if (callback.success) {
|
|
1860
|
-
if (!callback.scope) {
|
|
1861
|
-
callback.success(responseObject);
|
|
1862
|
-
}
|
|
1863
|
-
else {
|
|
1864
|
-
callback.success.apply(callback.scope, [responseObject]);
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
else {
|
|
1869
|
-
switch (httpStatus) {
|
|
1870
|
-
case 12002:
|
|
1871
|
-
case 12029:
|
|
1872
|
-
case 12030:
|
|
1873
|
-
case 12031:
|
|
1874
|
-
case 12152:
|
|
1875
|
-
case 13030:
|
|
1876
|
-
responseObject = createExceptionObject(o.tId, callback.argument, (isAbort ? isAbort : false), isTimeout);
|
|
1877
|
-
if (callback.failure) {
|
|
1878
|
-
if (!callback.scope) {
|
|
1879
|
-
callback.failure(responseObject);
|
|
1880
|
-
}
|
|
1881
|
-
else {
|
|
1882
|
-
callback.failure.apply(callback.scope, [responseObject]);
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
break;
|
|
1886
|
-
default:
|
|
1887
|
-
responseObject = createResponseObject(o, callback.argument);
|
|
1888
|
-
if (callback.failure) {
|
|
1889
|
-
if (!callback.scope) {
|
|
1890
|
-
callback.failure(responseObject);
|
|
1891
|
-
}
|
|
1892
|
-
else {
|
|
1893
|
-
callback.failure.apply(callback.scope, [responseObject]);
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
releaseObject(o);
|
|
1900
|
-
responseObject = null;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
function checkResponse(o, callback, conn, tId, poll, cbTimeout){
|
|
1904
|
-
if (conn && conn.readyState == 4) {
|
|
1905
|
-
clearInterval(poll[tId]);
|
|
1906
|
-
poll[tId] = null;
|
|
1907
|
-
|
|
1908
|
-
if (cbTimeout) {
|
|
1909
|
-
clearTimeout(pub.timeout[tId]);
|
|
1910
|
-
pub.timeout[tId] = null;
|
|
1911
|
-
}
|
|
1912
|
-
handleTransactionResponse(o, callback);
|
|
1913
|
-
}
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
function checkTimeout(o, callback){
|
|
1917
|
-
pub.abort(o, callback, true);
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
// private
|
|
1922
|
-
function handleReadyState(o, callback){
|
|
1923
|
-
callback = callback || {};
|
|
1924
|
-
var conn = o.conn,
|
|
1925
|
-
tId = o.tId,
|
|
1926
|
-
poll = pub.poll,
|
|
1927
|
-
cbTimeout = callback.timeout || null;
|
|
1928
|
-
|
|
1929
|
-
if (cbTimeout) {
|
|
1930
|
-
pub.conn[tId] = conn;
|
|
1931
|
-
pub.timeout[tId] = setTimeout(checkTimeout.createCallback(o, callback), cbTimeout);
|
|
1932
|
-
}
|
|
1933
|
-
poll[tId] = setInterval(checkResponse.createCallback(o, callback, conn, tId, poll, cbTimeout), pub.pollInterval);
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
// private
|
|
1937
|
-
function asyncRequest(method, uri, callback, postData) {
|
|
1938
|
-
var o = getConnectionObject() || null;
|
|
1939
|
-
|
|
1940
|
-
if (o) {
|
|
1941
|
-
o.conn.open(method, uri, true);
|
|
1942
|
-
|
|
1943
|
-
if (pub.useDefaultXhrHeader) {
|
|
1944
|
-
initHeader('X-Requested-With', pub.defaultXhrHeader);
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
if(postData && pub.useDefaultHeader && (!pub.headers || !pub.headers[CONTENTTYPE])){
|
|
1948
|
-
initHeader(CONTENTTYPE, pub.defaultPostHeader);
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
if (pub.defaultHeaders || pub.headers) {
|
|
1952
|
-
setHeader(o);
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
handleReadyState(o, callback);
|
|
1956
|
-
o.conn.send(postData || null);
|
|
1957
|
-
}
|
|
1958
|
-
return o;
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
// private
|
|
1962
|
-
function getConnectionObject() {
|
|
1963
|
-
var o;
|
|
1964
|
-
|
|
1965
|
-
try {
|
|
1966
|
-
if (o = createXhrObject(pub.transactionId)) {
|
|
1967
|
-
pub.transactionId++;
|
|
1968
|
-
}
|
|
1969
|
-
} catch(e) {
|
|
1970
|
-
} finally {
|
|
1971
|
-
return o;
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
// private
|
|
1976
|
-
function createXhrObject(transactionId) {
|
|
1977
|
-
var http;
|
|
1978
|
-
|
|
1979
|
-
try {
|
|
1980
|
-
http = new XMLHttpRequest();
|
|
1981
|
-
} catch(e) {
|
|
1982
|
-
for (var i = 0; i < activeX.length; ++i) {
|
|
1983
|
-
try {
|
|
1984
|
-
http = new ActiveXObject(activeX[i]);
|
|
1985
|
-
break;
|
|
1986
|
-
} catch(e) {}
|
|
1987
|
-
}
|
|
1988
|
-
} finally {
|
|
1989
|
-
return {conn : http, tId : transactionId};
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
var pub = {
|
|
1994
|
-
request : function(method, uri, cb, data, options) {
|
|
1995
|
-
if(options){
|
|
1996
|
-
var me = this,
|
|
1997
|
-
xmlData = options.xmlData,
|
|
1998
|
-
jsonData = options.jsonData,
|
|
1999
|
-
hs;
|
|
2000
|
-
|
|
2001
|
-
Ext.applyIf(me, options);
|
|
2002
|
-
|
|
2003
|
-
if(xmlData || jsonData){
|
|
2004
|
-
hs = me.headers;
|
|
2005
|
-
if(!hs || !hs[CONTENTTYPE]){
|
|
2006
|
-
initHeader(CONTENTTYPE, xmlData ? 'text/xml' : 'application/json');
|
|
2007
|
-
}
|
|
2008
|
-
data = xmlData || (!Ext.isPrimitive(jsonData) ? Ext.encode(jsonData) : jsonData);
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
return asyncRequest(method || options.method || "POST", uri, cb, data);
|
|
2012
|
-
},
|
|
2013
|
-
|
|
2014
|
-
serializeForm : function(form) {
|
|
2015
|
-
var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements,
|
|
2016
|
-
hasSubmit = false,
|
|
2017
|
-
encoder = encodeURIComponent,
|
|
2018
|
-
name,
|
|
2019
|
-
data = '',
|
|
2020
|
-
type,
|
|
2021
|
-
hasValue;
|
|
2022
|
-
|
|
2023
|
-
Ext.each(fElements, function(element){
|
|
2024
|
-
name = element.name;
|
|
2025
|
-
type = element.type;
|
|
2026
|
-
|
|
2027
|
-
if (!element.disabled && name) {
|
|
2028
|
-
if (/select-(one|multiple)/i.test(type)) {
|
|
2029
|
-
Ext.each(element.options, function(opt){
|
|
2030
|
-
if (opt.selected) {
|
|
2031
|
-
hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;
|
|
2032
|
-
data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));
|
|
2033
|
-
}
|
|
2034
|
-
});
|
|
2035
|
-
} else if (!(/file|undefined|reset|button/i.test(type))) {
|
|
2036
|
-
if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {
|
|
2037
|
-
data += encoder(name) + '=' + encoder(element.value) + '&';
|
|
2038
|
-
hasSubmit = /submit/i.test(type);
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
});
|
|
2043
|
-
return data.substr(0, data.length - 1);
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2046
|
-
useDefaultHeader : true,
|
|
2047
|
-
defaultPostHeader : 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
2048
|
-
useDefaultXhrHeader : true,
|
|
2049
|
-
defaultXhrHeader : 'XMLHttpRequest',
|
|
2050
|
-
poll : {},
|
|
2051
|
-
timeout : {},
|
|
2052
|
-
conn: {},
|
|
2053
|
-
pollInterval : 50,
|
|
2054
|
-
transactionId : 0,
|
|
2055
|
-
|
|
2056
|
-
// This is never called - Is it worth exposing this?
|
|
2057
|
-
// setProgId : function(id) {
|
|
2058
|
-
// activeX.unshift(id);
|
|
2059
|
-
// },
|
|
2060
|
-
|
|
2061
|
-
// This is never called - Is it worth exposing this?
|
|
2062
|
-
// setDefaultPostHeader : function(b) {
|
|
2063
|
-
// this.useDefaultHeader = b;
|
|
2064
|
-
// },
|
|
2065
|
-
|
|
2066
|
-
// This is never called - Is it worth exposing this?
|
|
2067
|
-
// setDefaultXhrHeader : function(b) {
|
|
2068
|
-
// this.useDefaultXhrHeader = b;
|
|
2069
|
-
// },
|
|
2070
|
-
|
|
2071
|
-
// This is never called - Is it worth exposing this?
|
|
2072
|
-
// setPollingInterval : function(i) {
|
|
2073
|
-
// if (typeof i == 'number' && isFinite(i)) {
|
|
2074
|
-
// this.pollInterval = i;
|
|
2075
|
-
// }
|
|
2076
|
-
// },
|
|
2077
|
-
|
|
2078
|
-
// This is never called - Is it worth exposing this?
|
|
2079
|
-
// resetDefaultHeaders : function() {
|
|
2080
|
-
// this.defaultHeaders = null;
|
|
2081
|
-
// },
|
|
2082
|
-
|
|
2083
|
-
abort : function(o, callback, isTimeout) {
|
|
2084
|
-
var me = this,
|
|
2085
|
-
tId = o.tId,
|
|
2086
|
-
isAbort = false;
|
|
2087
|
-
|
|
2088
|
-
if (me.isCallInProgress(o)) {
|
|
2089
|
-
o.conn.abort();
|
|
2090
|
-
clearInterval(me.poll[tId]);
|
|
2091
|
-
me.poll[tId] = null;
|
|
2092
|
-
clearTimeout(pub.timeout[tId]);
|
|
2093
|
-
me.timeout[tId] = null;
|
|
2094
|
-
|
|
2095
|
-
handleTransactionResponse(o, callback, (isAbort = true), isTimeout);
|
|
2096
|
-
}
|
|
2097
|
-
return isAbort;
|
|
2098
|
-
},
|
|
2099
|
-
|
|
2100
|
-
isCallInProgress : function(o) {
|
|
2101
|
-
// if there is a connection and readyState is not 0 or 4
|
|
2102
|
-
return o.conn && !{0:true,4:true}[o.conn.readyState];
|
|
2103
|
-
}
|
|
2104
|
-
};
|
|
2105
|
-
return pub;
|
|
2106
|
-
}();(function(){
|
|
2107
|
-
var EXTLIB = Ext.lib,
|
|
2108
|
-
noNegatives = /width|height|opacity|padding/i,
|
|
2109
|
-
offsetAttribute = /^((width|height)|(top|left))$/,
|
|
2110
|
-
defaultUnit = /width|height|top$|bottom$|left$|right$/i,
|
|
2111
|
-
offsetUnit = /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,
|
|
2112
|
-
isset = function(v){
|
|
2113
|
-
return typeof v !== 'undefined';
|
|
2114
|
-
},
|
|
2115
|
-
now = function(){
|
|
2116
|
-
return new Date();
|
|
2117
|
-
};
|
|
2118
|
-
|
|
2119
|
-
EXTLIB.Anim = {
|
|
2120
|
-
motion : function(el, args, duration, easing, cb, scope) {
|
|
2121
|
-
return this.run(el, args, duration, easing, cb, scope, Ext.lib.Motion);
|
|
2122
|
-
},
|
|
2123
|
-
|
|
2124
|
-
run : function(el, args, duration, easing, cb, scope, type) {
|
|
2125
|
-
type = type || Ext.lib.AnimBase;
|
|
2126
|
-
if (typeof easing == "string") {
|
|
2127
|
-
easing = Ext.lib.Easing[easing];
|
|
2128
|
-
}
|
|
2129
|
-
var anim = new type(el, args, duration, easing);
|
|
2130
|
-
anim.animateX(function() {
|
|
2131
|
-
if(Ext.isFunction(cb)){
|
|
2132
|
-
cb.call(scope);
|
|
2133
|
-
}
|
|
2134
|
-
});
|
|
2135
|
-
return anim;
|
|
2136
|
-
}
|
|
2137
|
-
};
|
|
2138
|
-
|
|
2139
|
-
EXTLIB.AnimBase = function(el, attributes, duration, method) {
|
|
2140
|
-
if (el) {
|
|
2141
|
-
this.init(el, attributes, duration, method);
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
|
|
2145
|
-
EXTLIB.AnimBase.prototype = {
|
|
2146
|
-
doMethod: function(attr, start, end) {
|
|
2147
|
-
var me = this;
|
|
2148
|
-
return me.method(me.curFrame, start, end - start, me.totalFrames);
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
setAttr: function(attr, val, unit) {
|
|
2153
|
-
if (noNegatives.test(attr) && val < 0) {
|
|
2154
|
-
val = 0;
|
|
2155
|
-
}
|
|
2156
|
-
Ext.fly(this.el, '_anim').setStyle(attr, val + unit);
|
|
2157
|
-
},
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
getAttr: function(attr) {
|
|
2161
|
-
var el = Ext.fly(this.el),
|
|
2162
|
-
val = el.getStyle(attr),
|
|
2163
|
-
a = offsetAttribute.exec(attr) || [];
|
|
2164
|
-
|
|
2165
|
-
if (val !== 'auto' && !offsetUnit.test(val)) {
|
|
2166
|
-
return parseFloat(val);
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
return (!!(a[2]) || (el.getStyle('position') == 'absolute' && !!(a[3]))) ? el.dom['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)] : 0;
|
|
2170
|
-
},
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
getDefaultUnit: function(attr) {
|
|
2174
|
-
return defaultUnit.test(attr) ? 'px' : '';
|
|
2175
|
-
},
|
|
2176
|
-
|
|
2177
|
-
animateX : function(callback, scope) {
|
|
2178
|
-
var me = this,
|
|
2179
|
-
f = function() {
|
|
2180
|
-
me.onComplete.removeListener(f);
|
|
2181
|
-
if (Ext.isFunction(callback)) {
|
|
2182
|
-
callback.call(scope || me, me);
|
|
2183
|
-
}
|
|
2184
|
-
};
|
|
2185
|
-
me.onComplete.addListener(f, me);
|
|
2186
|
-
me.animate();
|
|
2187
|
-
},
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
setRunAttr: function(attr) {
|
|
2191
|
-
var me = this,
|
|
2192
|
-
a = this.attributes[attr],
|
|
2193
|
-
to = a.to,
|
|
2194
|
-
by = a.by,
|
|
2195
|
-
from = a.from,
|
|
2196
|
-
unit = a.unit,
|
|
2197
|
-
ra = (this.runAttrs[attr] = {}),
|
|
2198
|
-
end;
|
|
2199
|
-
|
|
2200
|
-
if (!isset(to) && !isset(by)){
|
|
2201
|
-
return false;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
var start = isset(from) ? from : me.getAttr(attr);
|
|
2205
|
-
if (isset(to)) {
|
|
2206
|
-
end = to;
|
|
2207
|
-
}else if(isset(by)) {
|
|
2208
|
-
if (Ext.isArray(start)){
|
|
2209
|
-
end = [];
|
|
2210
|
-
for(var i=0,len=start.length; i<len; i++) {
|
|
2211
|
-
end[i] = start[i] + by[i];
|
|
2212
|
-
}
|
|
2213
|
-
}else{
|
|
2214
|
-
end = start + by;
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
Ext.apply(ra, {
|
|
2219
|
-
start: start,
|
|
2220
|
-
end: end,
|
|
2221
|
-
unit: isset(unit) ? unit : me.getDefaultUnit(attr)
|
|
2222
|
-
});
|
|
2223
|
-
},
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
init: function(el, attributes, duration, method) {
|
|
2227
|
-
var me = this,
|
|
2228
|
-
actualFrames = 0,
|
|
2229
|
-
mgr = EXTLIB.AnimMgr;
|
|
2230
|
-
|
|
2231
|
-
Ext.apply(me, {
|
|
2232
|
-
isAnimated: false,
|
|
2233
|
-
startTime: null,
|
|
2234
|
-
el: Ext.getDom(el),
|
|
2235
|
-
attributes: attributes || {},
|
|
2236
|
-
duration: duration || 1,
|
|
2237
|
-
method: method || EXTLIB.Easing.easeNone,
|
|
2238
|
-
useSec: true,
|
|
2239
|
-
curFrame: 0,
|
|
2240
|
-
totalFrames: mgr.fps,
|
|
2241
|
-
runAttrs: {},
|
|
2242
|
-
animate: function(){
|
|
2243
|
-
var me = this,
|
|
2244
|
-
d = me.duration;
|
|
2245
|
-
|
|
2246
|
-
if(me.isAnimated){
|
|
2247
|
-
return false;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
me.curFrame = 0;
|
|
2251
|
-
me.totalFrames = me.useSec ? Math.ceil(mgr.fps * d) : d;
|
|
2252
|
-
mgr.registerElement(me);
|
|
2253
|
-
},
|
|
2254
|
-
|
|
2255
|
-
stop: function(finish){
|
|
2256
|
-
var me = this;
|
|
2257
|
-
|
|
2258
|
-
if(finish){
|
|
2259
|
-
me.curFrame = me.totalFrames;
|
|
2260
|
-
me._onTween.fire();
|
|
2261
|
-
}
|
|
2262
|
-
mgr.stop(me);
|
|
2263
|
-
}
|
|
2264
|
-
});
|
|
2265
|
-
|
|
2266
|
-
var onStart = function(){
|
|
2267
|
-
var me = this,
|
|
2268
|
-
attr;
|
|
2269
|
-
|
|
2270
|
-
me.onStart.fire();
|
|
2271
|
-
me.runAttrs = {};
|
|
2272
|
-
for(attr in this.attributes){
|
|
2273
|
-
this.setRunAttr(attr);
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
me.isAnimated = true;
|
|
2277
|
-
me.startTime = now();
|
|
2278
|
-
actualFrames = 0;
|
|
2279
|
-
};
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
var onTween = function(){
|
|
2283
|
-
var me = this;
|
|
2284
|
-
|
|
2285
|
-
me.onTween.fire({
|
|
2286
|
-
duration: now() - me.startTime,
|
|
2287
|
-
curFrame: me.curFrame
|
|
2288
|
-
});
|
|
2289
|
-
|
|
2290
|
-
var ra = me.runAttrs;
|
|
2291
|
-
for (var attr in ra) {
|
|
2292
|
-
this.setAttr(attr, me.doMethod(attr, ra[attr].start, ra[attr].end), ra[attr].unit);
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
++actualFrames;
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
|
-
var onComplete = function() {
|
|
2299
|
-
var me = this,
|
|
2300
|
-
actual = (now() - me.startTime) / 1000,
|
|
2301
|
-
data = {
|
|
2302
|
-
duration: actual,
|
|
2303
|
-
frames: actualFrames,
|
|
2304
|
-
fps: actualFrames / actual
|
|
2305
|
-
};
|
|
2306
|
-
|
|
2307
|
-
me.isAnimated = false;
|
|
2308
|
-
actualFrames = 0;
|
|
2309
|
-
me.onComplete.fire(data);
|
|
2310
|
-
};
|
|
2311
|
-
|
|
2312
|
-
me.onStart = new Ext.util.Event(me);
|
|
2313
|
-
me.onTween = new Ext.util.Event(me);
|
|
2314
|
-
me.onComplete = new Ext.util.Event(me);
|
|
2315
|
-
(me._onStart = new Ext.util.Event(me)).addListener(onStart);
|
|
2316
|
-
(me._onTween = new Ext.util.Event(me)).addListener(onTween);
|
|
2317
|
-
(me._onComplete = new Ext.util.Event(me)).addListener(onComplete);
|
|
2318
|
-
}
|
|
2319
|
-
};
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
Ext.lib.AnimMgr = new function() {
|
|
2323
|
-
var me = this,
|
|
2324
|
-
thread = null,
|
|
2325
|
-
queue = [],
|
|
2326
|
-
tweenCount = 0;
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
Ext.apply(me, {
|
|
2330
|
-
fps: 1000,
|
|
2331
|
-
delay: 1,
|
|
2332
|
-
registerElement: function(tween){
|
|
2333
|
-
queue.push(tween);
|
|
2334
|
-
++tweenCount;
|
|
2335
|
-
tween._onStart.fire();
|
|
2336
|
-
me.start();
|
|
2337
|
-
},
|
|
2338
|
-
|
|
2339
|
-
unRegister: function(tween, index){
|
|
2340
|
-
tween._onComplete.fire();
|
|
2341
|
-
index = index || getIndex(tween);
|
|
2342
|
-
if (index != -1) {
|
|
2343
|
-
queue.splice(index, 1);
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2346
|
-
if (--tweenCount <= 0) {
|
|
2347
|
-
me.stop();
|
|
2348
|
-
}
|
|
2349
|
-
},
|
|
2350
|
-
|
|
2351
|
-
start: function(){
|
|
2352
|
-
if(thread === null){
|
|
2353
|
-
thread = setInterval(me.run, me.delay);
|
|
2354
|
-
}
|
|
2355
|
-
},
|
|
2356
|
-
|
|
2357
|
-
stop: function(tween){
|
|
2358
|
-
if(!tween){
|
|
2359
|
-
clearInterval(thread);
|
|
2360
|
-
for(var i = 0, len = queue.length; i < len; ++i){
|
|
2361
|
-
if(queue[0].isAnimated){
|
|
2362
|
-
me.unRegister(queue[0], 0);
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
queue = [];
|
|
2367
|
-
thread = null;
|
|
2368
|
-
tweenCount = 0;
|
|
2369
|
-
}else{
|
|
2370
|
-
me.unRegister(tween);
|
|
2371
|
-
}
|
|
2372
|
-
},
|
|
2373
|
-
|
|
2374
|
-
run: function(){
|
|
2375
|
-
var tf, i, len, tween;
|
|
2376
|
-
for(i = 0, len = queue.length; i<len; i++) {
|
|
2377
|
-
tween = queue[i];
|
|
2378
|
-
if(tween && tween.isAnimated){
|
|
2379
|
-
tf = tween.totalFrames;
|
|
2380
|
-
if(tween.curFrame < tf || tf === null){
|
|
2381
|
-
++tween.curFrame;
|
|
2382
|
-
if(tween.useSec){
|
|
2383
|
-
correctFrame(tween);
|
|
2384
|
-
}
|
|
2385
|
-
tween._onTween.fire();
|
|
2386
|
-
}else{
|
|
2387
|
-
me.stop(tween);
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
});
|
|
2393
|
-
|
|
2394
|
-
var getIndex = function(anim) {
|
|
2395
|
-
var i, len;
|
|
2396
|
-
for(i = 0, len = queue.length; i<len; i++) {
|
|
2397
|
-
if(queue[i] === anim) {
|
|
2398
|
-
return i;
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
return -1;
|
|
2402
|
-
};
|
|
2403
|
-
|
|
2404
|
-
var correctFrame = function(tween) {
|
|
2405
|
-
var frames = tween.totalFrames,
|
|
2406
|
-
frame = tween.curFrame,
|
|
2407
|
-
duration = tween.duration,
|
|
2408
|
-
expected = (frame * duration * 1000 / frames),
|
|
2409
|
-
elapsed = (now() - tween.startTime),
|
|
2410
|
-
tweak = 0;
|
|
2411
|
-
|
|
2412
|
-
if(elapsed < duration * 1000){
|
|
2413
|
-
tweak = Math.round((elapsed / expected - 1) * frame);
|
|
2414
|
-
}else{
|
|
2415
|
-
tweak = frames - (frame + 1);
|
|
2416
|
-
}
|
|
2417
|
-
if(tweak > 0 && isFinite(tweak)){
|
|
2418
|
-
if(tween.curFrame + tweak >= frames){
|
|
2419
|
-
tweak = frames - (frame + 1);
|
|
2420
|
-
}
|
|
2421
|
-
tween.curFrame += tweak;
|
|
2422
|
-
}
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
|
|
2426
|
-
EXTLIB.Bezier = new function() {
|
|
2427
|
-
|
|
2428
|
-
this.getPosition = function(points, t) {
|
|
2429
|
-
var n = points.length,
|
|
2430
|
-
tmp = [],
|
|
2431
|
-
c = 1 - t,
|
|
2432
|
-
i,
|
|
2433
|
-
j;
|
|
2434
|
-
|
|
2435
|
-
for (i = 0; i < n; ++i) {
|
|
2436
|
-
tmp[i] = [points[i][0], points[i][1]];
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
for (j = 1; j < n; ++j) {
|
|
2440
|
-
for (i = 0; i < n - j; ++i) {
|
|
2441
|
-
tmp[i][0] = c * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
|
|
2442
|
-
tmp[i][1] = c * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
return [ tmp[0][0], tmp[0][1] ];
|
|
2447
|
-
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
EXTLIB.Easing = {
|
|
2453
|
-
easeNone: function (t, b, c, d) {
|
|
2454
|
-
return c * t / d + b;
|
|
2455
|
-
},
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
easeIn: function (t, b, c, d) {
|
|
2459
|
-
return c * (t /= d) * t + b;
|
|
2460
|
-
},
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
easeOut: function (t, b, c, d) {
|
|
2464
|
-
return -c * (t /= d) * (t - 2) + b;
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2467
|
-
|
|
2468
|
-
(function() {
|
|
2469
|
-
EXTLIB.Motion = function(el, attributes, duration, method) {
|
|
2470
|
-
if (el) {
|
|
2471
|
-
EXTLIB.Motion.superclass.constructor.call(this, el, attributes, duration, method);
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
|
-
|
|
2475
|
-
Ext.extend(EXTLIB.Motion, Ext.lib.AnimBase);
|
|
2476
|
-
|
|
2477
|
-
var superclass = EXTLIB.Motion.superclass,
|
|
2478
|
-
pointsRe = /^points$/i;
|
|
2479
|
-
|
|
2480
|
-
Ext.apply(EXTLIB.Motion.prototype, {
|
|
2481
|
-
setAttr: function(attr, val, unit){
|
|
2482
|
-
var me = this,
|
|
2483
|
-
setAttr = superclass.setAttr;
|
|
2484
|
-
|
|
2485
|
-
if (pointsRe.test(attr)) {
|
|
2486
|
-
unit = unit || 'px';
|
|
2487
|
-
setAttr.call(me, 'left', val[0], unit);
|
|
2488
|
-
setAttr.call(me, 'top', val[1], unit);
|
|
2489
|
-
} else {
|
|
2490
|
-
setAttr.call(me, attr, val, unit);
|
|
2491
|
-
}
|
|
2492
|
-
},
|
|
2493
|
-
|
|
2494
|
-
getAttr: function(attr){
|
|
2495
|
-
var me = this,
|
|
2496
|
-
getAttr = superclass.getAttr;
|
|
2497
|
-
|
|
2498
|
-
return pointsRe.test(attr) ? [getAttr.call(me, 'left'), getAttr.call(me, 'top')] : getAttr.call(me, attr);
|
|
2499
|
-
},
|
|
2500
|
-
|
|
2501
|
-
doMethod: function(attr, start, end){
|
|
2502
|
-
var me = this;
|
|
2503
|
-
|
|
2504
|
-
return pointsRe.test(attr)
|
|
2505
|
-
? EXTLIB.Bezier.getPosition(me.runAttrs[attr], me.method(me.curFrame, 0, 100, me.totalFrames) / 100)
|
|
2506
|
-
: superclass.doMethod.call(me, attr, start, end);
|
|
2507
|
-
},
|
|
2508
|
-
|
|
2509
|
-
setRunAttr: function(attr){
|
|
2510
|
-
if(pointsRe.test(attr)){
|
|
2511
|
-
|
|
2512
|
-
var me = this,
|
|
2513
|
-
el = this.el,
|
|
2514
|
-
points = this.attributes.points,
|
|
2515
|
-
control = points.control || [],
|
|
2516
|
-
from = points.from,
|
|
2517
|
-
to = points.to,
|
|
2518
|
-
by = points.by,
|
|
2519
|
-
DOM = EXTLIB.Dom,
|
|
2520
|
-
start,
|
|
2521
|
-
i,
|
|
2522
|
-
end,
|
|
2523
|
-
len,
|
|
2524
|
-
ra;
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
if(control.length > 0 && !Ext.isArray(control[0])){
|
|
2528
|
-
control = [control];
|
|
2529
|
-
}else{
|
|
2530
|
-
/*
|
|
2531
|
-
var tmp = [];
|
|
2532
|
-
for (i = 0,len = control.length; i < len; ++i) {
|
|
2533
|
-
tmp[i] = control[i];
|
|
2534
|
-
}
|
|
2535
|
-
control = tmp;
|
|
2536
|
-
*/
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
Ext.fly(el, '_anim').position();
|
|
2540
|
-
DOM.setXY(el, isset(from) ? from : DOM.getXY(el));
|
|
2541
|
-
start = me.getAttr('points');
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
if(isset(to)){
|
|
2545
|
-
end = translateValues.call(me, to, start);
|
|
2546
|
-
for (i = 0,len = control.length; i < len; ++i) {
|
|
2547
|
-
control[i] = translateValues.call(me, control[i], start);
|
|
2548
|
-
}
|
|
2549
|
-
} else if (isset(by)) {
|
|
2550
|
-
end = [start[0] + by[0], start[1] + by[1]];
|
|
2551
|
-
|
|
2552
|
-
for (i = 0,len = control.length; i < len; ++i) {
|
|
2553
|
-
control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
|
|
2554
|
-
}
|
|
2555
|
-
}
|
|
2556
|
-
|
|
2557
|
-
ra = this.runAttrs[attr] = [start];
|
|
2558
|
-
if (control.length > 0) {
|
|
2559
|
-
ra = ra.concat(control);
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
ra[ra.length] = end;
|
|
2563
|
-
}else{
|
|
2564
|
-
superclass.setRunAttr.call(this, attr);
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
});
|
|
2568
|
-
|
|
2569
|
-
var translateValues = function(val, start) {
|
|
2570
|
-
var pageXY = EXTLIB.Dom.getXY(this.el);
|
|
2571
|
-
return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]];
|
|
2572
|
-
};
|
|
2573
|
-
})();
|
|
2574
|
-
})();// Easing functions
|
|
2575
|
-
(function(){
|
|
2576
|
-
// shortcuts to aid compression
|
|
2577
|
-
var abs = Math.abs,
|
|
2578
|
-
pi = Math.PI,
|
|
2579
|
-
asin = Math.asin,
|
|
2580
|
-
pow = Math.pow,
|
|
2581
|
-
sin = Math.sin,
|
|
2582
|
-
EXTLIB = Ext.lib;
|
|
2583
|
-
|
|
2584
|
-
Ext.apply(EXTLIB.Easing, {
|
|
2585
|
-
|
|
2586
|
-
easeBoth: function (t, b, c, d) {
|
|
2587
|
-
return ((t /= d / 2) < 1) ? c / 2 * t * t + b : -c / 2 * ((--t) * (t - 2) - 1) + b;
|
|
2588
|
-
},
|
|
2589
|
-
|
|
2590
|
-
easeInStrong: function (t, b, c, d) {
|
|
2591
|
-
return c * (t /= d) * t * t * t + b;
|
|
2592
|
-
},
|
|
2593
|
-
|
|
2594
|
-
easeOutStrong: function (t, b, c, d) {
|
|
2595
|
-
return -c * ((t = t / d - 1) * t * t * t - 1) + b;
|
|
2596
|
-
},
|
|
2597
|
-
|
|
2598
|
-
easeBothStrong: function (t, b, c, d) {
|
|
2599
|
-
return ((t /= d / 2) < 1) ? c / 2 * t * t * t * t + b : -c / 2 * ((t -= 2) * t * t * t - 2) + b;
|
|
2600
|
-
},
|
|
2601
|
-
|
|
2602
|
-
elasticIn: function (t, b, c, d, a, p) {
|
|
2603
|
-
if (t == 0 || (t /= d) == 1) {
|
|
2604
|
-
return t == 0 ? b : b + c;
|
|
2605
|
-
}
|
|
2606
|
-
p = p || (d * .3);
|
|
2607
|
-
|
|
2608
|
-
var s;
|
|
2609
|
-
if (a >= abs(c)) {
|
|
2610
|
-
s = p / (2 * pi) * asin(c / a);
|
|
2611
|
-
} else {
|
|
2612
|
-
a = c;
|
|
2613
|
-
s = p / 4;
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
return -(a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b;
|
|
2617
|
-
|
|
2618
|
-
},
|
|
2619
|
-
|
|
2620
|
-
elasticOut: function (t, b, c, d, a, p) {
|
|
2621
|
-
if (t == 0 || (t /= d) == 1) {
|
|
2622
|
-
return t == 0 ? b : b + c;
|
|
2623
|
-
}
|
|
2624
|
-
p = p || (d * .3);
|
|
2625
|
-
|
|
2626
|
-
var s;
|
|
2627
|
-
if (a >= abs(c)) {
|
|
2628
|
-
s = p / (2 * pi) * asin(c / a);
|
|
2629
|
-
} else {
|
|
2630
|
-
a = c;
|
|
2631
|
-
s = p / 4;
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b;
|
|
2635
|
-
},
|
|
2636
|
-
|
|
2637
|
-
elasticBoth: function (t, b, c, d, a, p) {
|
|
2638
|
-
if (t == 0 || (t /= d / 2) == 2) {
|
|
2639
|
-
return t == 0 ? b : b + c;
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
p = p || (d * (.3 * 1.5));
|
|
2643
|
-
|
|
2644
|
-
var s;
|
|
2645
|
-
if (a >= abs(c)) {
|
|
2646
|
-
s = p / (2 * pi) * asin(c / a);
|
|
2647
|
-
} else {
|
|
2648
|
-
a = c;
|
|
2649
|
-
s = p / 4;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
return t < 1 ?
|
|
2653
|
-
-.5 * (a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b :
|
|
2654
|
-
a * pow(2, -10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p) * .5 + c + b;
|
|
2655
|
-
},
|
|
2656
|
-
|
|
2657
|
-
backIn: function (t, b, c, d, s) {
|
|
2658
|
-
s = s || 1.70158;
|
|
2659
|
-
return c * (t /= d) * t * ((s + 1) * t - s) + b;
|
|
2660
|
-
},
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
backOut: function (t, b, c, d, s) {
|
|
2664
|
-
if (!s) {
|
|
2665
|
-
s = 1.70158;
|
|
2666
|
-
}
|
|
2667
|
-
return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
|
|
2668
|
-
},
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
backBoth: function (t, b, c, d, s) {
|
|
2672
|
-
s = s || 1.70158;
|
|
2673
|
-
|
|
2674
|
-
return ((t /= d / 2 ) < 1) ?
|
|
2675
|
-
c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b :
|
|
2676
|
-
c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
|
|
2677
|
-
},
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
bounceIn: function (t, b, c, d) {
|
|
2681
|
-
return c - EXTLIB.Easing.bounceOut(d - t, 0, c, d) + b;
|
|
2682
|
-
},
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
bounceOut: function (t, b, c, d) {
|
|
2686
|
-
if ((t /= d) < (1 / 2.75)) {
|
|
2687
|
-
return c * (7.5625 * t * t) + b;
|
|
2688
|
-
} else if (t < (2 / 2.75)) {
|
|
2689
|
-
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
|
|
2690
|
-
} else if (t < (2.5 / 2.75)) {
|
|
2691
|
-
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
|
|
2692
|
-
}
|
|
2693
|
-
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
|
|
2694
|
-
},
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
bounceBoth: function (t, b, c, d) {
|
|
2698
|
-
return (t < d / 2) ?
|
|
2699
|
-
EXTLIB.Easing.bounceIn(t * 2, 0, c, d) * .5 + b :
|
|
2700
|
-
EXTLIB.Easing.bounceOut(t * 2 - d, 0, c, d) * .5 + c * .5 + b;
|
|
2701
|
-
}
|
|
2702
|
-
});
|
|
2703
|
-
})();
|
|
2704
|
-
|
|
2705
|
-
(function() {
|
|
2706
|
-
var EXTLIB = Ext.lib;
|
|
2707
|
-
// Color Animation
|
|
2708
|
-
EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
|
|
2709
|
-
return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.ColorAnim);
|
|
2710
|
-
};
|
|
2711
|
-
|
|
2712
|
-
EXTLIB.ColorAnim = function(el, attributes, duration, method) {
|
|
2713
|
-
EXTLIB.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
|
|
2714
|
-
};
|
|
2715
|
-
|
|
2716
|
-
Ext.extend(EXTLIB.ColorAnim, EXTLIB.AnimBase);
|
|
2717
|
-
|
|
2718
|
-
var superclass = EXTLIB.ColorAnim.superclass,
|
|
2719
|
-
colorRE = /color$/i,
|
|
2720
|
-
transparentRE = /^transparent|rgba\(0, 0, 0, 0\)$/,
|
|
2721
|
-
rgbRE = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
|
|
2722
|
-
hexRE= /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
|
|
2723
|
-
hex3RE = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,
|
|
2724
|
-
isset = function(v){
|
|
2725
|
-
return typeof v !== 'undefined';
|
|
2726
|
-
};
|
|
2727
|
-
|
|
2728
|
-
// private
|
|
2729
|
-
function parseColor(s) {
|
|
2730
|
-
var pi = parseInt,
|
|
2731
|
-
base,
|
|
2732
|
-
out = null,
|
|
2733
|
-
c;
|
|
2734
|
-
|
|
2735
|
-
if (s.length == 3) {
|
|
2736
|
-
return s;
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){
|
|
2740
|
-
base = (idx % 2 == 0) ? 16 : 10;
|
|
2741
|
-
c = re.exec(s);
|
|
2742
|
-
if(c && c.length == 4){
|
|
2743
|
-
out = [pi(c[1], base), pi(c[2], base), pi(c[3], base)];
|
|
2744
|
-
return false;
|
|
2745
|
-
}
|
|
2746
|
-
});
|
|
2747
|
-
return out;
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
Ext.apply(EXTLIB.ColorAnim.prototype, {
|
|
2751
|
-
getAttr : function(attr) {
|
|
2752
|
-
var me = this,
|
|
2753
|
-
el = me.el,
|
|
2754
|
-
val;
|
|
2755
|
-
if(colorRE.test(attr)){
|
|
2756
|
-
while(el && transparentRE.test(val = Ext.fly(el).getStyle(attr))){
|
|
2757
|
-
el = el.parentNode;
|
|
2758
|
-
val = "fff";
|
|
2759
|
-
}
|
|
2760
|
-
}else{
|
|
2761
|
-
val = superclass.getAttr.call(me, attr);
|
|
2762
|
-
}
|
|
2763
|
-
return val;
|
|
2764
|
-
},
|
|
2765
|
-
|
|
2766
|
-
doMethod : function(attr, start, end) {
|
|
2767
|
-
var me = this,
|
|
2768
|
-
val,
|
|
2769
|
-
floor = Math.floor,
|
|
2770
|
-
i,
|
|
2771
|
-
len,
|
|
2772
|
-
v;
|
|
2773
|
-
|
|
2774
|
-
if(colorRE.test(attr)){
|
|
2775
|
-
val = [];
|
|
2776
|
-
end = end || [];
|
|
2777
|
-
|
|
2778
|
-
for(i = 0, len = start.length; i < len; i++) {
|
|
2779
|
-
v = start[i];
|
|
2780
|
-
val[i] = superclass.doMethod.call(me, attr, v, end[i]);
|
|
2781
|
-
}
|
|
2782
|
-
val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';
|
|
2783
|
-
}else{
|
|
2784
|
-
val = superclass.doMethod.call(me, attr, start, end);
|
|
2785
|
-
}
|
|
2786
|
-
return val;
|
|
2787
|
-
},
|
|
2788
|
-
|
|
2789
|
-
setRunAttr : function(attr) {
|
|
2790
|
-
var me = this,
|
|
2791
|
-
a = me.attributes[attr],
|
|
2792
|
-
to = a.to,
|
|
2793
|
-
by = a.by,
|
|
2794
|
-
ra;
|
|
2795
|
-
|
|
2796
|
-
superclass.setRunAttr.call(me, attr);
|
|
2797
|
-
ra = me.runAttrs[attr];
|
|
2798
|
-
if(colorRE.test(attr)){
|
|
2799
|
-
var start = parseColor(ra.start),
|
|
2800
|
-
end = parseColor(ra.end);
|
|
2801
|
-
|
|
2802
|
-
if(!isset(to) && isset(by)){
|
|
2803
|
-
end = parseColor(by);
|
|
2804
|
-
for(var i=0,len=start.length; i<len; i++) {
|
|
2805
|
-
end[i] = start[i] + end[i];
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
ra.start = start;
|
|
2809
|
-
ra.end = end;
|
|
2810
|
-
}
|
|
2811
|
-
}
|
|
2812
|
-
});
|
|
2813
|
-
})();
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
(function() {
|
|
2817
|
-
// Scroll Animation
|
|
2818
|
-
var EXTLIB = Ext.lib;
|
|
2819
|
-
EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
|
|
2820
|
-
return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.Scroll);
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
EXTLIB.Scroll = function(el, attributes, duration, method) {
|
|
2824
|
-
if(el){
|
|
2825
|
-
EXTLIB.Scroll.superclass.constructor.call(this, el, attributes, duration, method);
|
|
2826
|
-
}
|
|
2827
|
-
};
|
|
2828
|
-
|
|
2829
|
-
Ext.extend(EXTLIB.Scroll, EXTLIB.ColorAnim);
|
|
2830
|
-
|
|
2831
|
-
var superclass = EXTLIB.Scroll.superclass,
|
|
2832
|
-
SCROLL = 'scroll';
|
|
2833
|
-
|
|
2834
|
-
Ext.apply(EXTLIB.Scroll.prototype, {
|
|
2835
|
-
|
|
2836
|
-
doMethod : function(attr, start, end) {
|
|
2837
|
-
var val,
|
|
2838
|
-
me = this,
|
|
2839
|
-
curFrame = me.curFrame,
|
|
2840
|
-
totalFrames = me.totalFrames;
|
|
2841
|
-
|
|
2842
|
-
if(attr == SCROLL){
|
|
2843
|
-
val = [me.method(curFrame, start[0], end[0] - start[0], totalFrames),
|
|
2844
|
-
me.method(curFrame, start[1], end[1] - start[1], totalFrames)];
|
|
2845
|
-
}else{
|
|
2846
|
-
val = superclass.doMethod.call(me, attr, start, end);
|
|
2847
|
-
}
|
|
2848
|
-
return val;
|
|
2849
|
-
},
|
|
2850
|
-
|
|
2851
|
-
getAttr : function(attr) {
|
|
2852
|
-
var me = this;
|
|
2853
|
-
|
|
2854
|
-
if (attr == SCROLL) {
|
|
2855
|
-
return [me.el.scrollLeft, me.el.scrollTop];
|
|
2856
|
-
}else{
|
|
2857
|
-
return superclass.getAttr.call(me, attr);
|
|
2858
|
-
}
|
|
2859
|
-
},
|
|
2860
|
-
|
|
2861
|
-
setAttr : function(attr, val, unit) {
|
|
2862
|
-
var me = this;
|
|
2863
|
-
|
|
2864
|
-
if(attr == SCROLL){
|
|
2865
|
-
me.el.scrollLeft = val[0];
|
|
2866
|
-
me.el.scrollTop = val[1];
|
|
2867
|
-
}else{
|
|
2868
|
-
superclass.setAttr.call(me, attr, val, unit);
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
});
|
|
2872
|
-
})();
|
|
2873
|
-
if (Ext.isIE) {
|
|
2874
|
-
function fnCleanUp() {
|
|
2875
|
-
var p = Function.prototype;
|
|
2876
|
-
delete p.createSequence;
|
|
2877
|
-
delete p.defer;
|
|
2878
|
-
delete p.createDelegate;
|
|
2879
|
-
delete p.createCallback;
|
|
2880
|
-
delete p.createInterceptor;
|
|
2881
|
-
|
|
2882
|
-
window.detachEvent("onunload", fnCleanUp);
|
|
2883
|
-
}
|
|
2884
|
-
window.attachEvent("onunload", fnCleanUp);
|
|
2885
|
-
}
|
|
2886
|
-
})();
|