gridx-rails 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/LICENSE +2 -0
- data/README.md +18 -0
- data/Rakefile +36 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/ajax-loader.gif +0 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/arrow.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartial.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartialdisabled.png +0 -0
- data/app/assets/images/gridx/resources/images/claro-grid-header-onepixel.bmp +0 -0
- data/app/assets/images/gridx/resources/images/dndCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndMove.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoMove.png +0 -0
- data/app/assets/images/gridx/resources/images/gridxCellChanged.png +0 -0
- data/app/assets/images/gridx/resources/images/header.png +0 -0
- data/app/assets/images/gridx/resources/images/header_shadow.png +0 -0
- data/app/assets/images/gridx/resources/images/loadingAnimation.gif +0 -0
- data/app/assets/images/gridx/resources/images/row_back.png +0 -0
- data/app/assets/images/gridx/resources/images/row_back_changed.png +0 -0
- data/app/assets/images/gridx/resources/images/sprite_icons.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpandImages.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpand_loading.gif +0 -0
- data/app/assets/javascripts/gridx/Grid.js +224 -0
- data/app/assets/javascripts/gridx/GridCommon.js +52 -0
- data/app/assets/javascripts/gridx/allModules.js +105 -0
- data/app/assets/javascripts/gridx/core/Cell.js +86 -0
- data/app/assets/javascripts/gridx/core/Column.js +183 -0
- data/app/assets/javascripts/gridx/core/Core.js +447 -0
- data/app/assets/javascripts/gridx/core/Row.js +174 -0
- data/app/assets/javascripts/gridx/core/_Module.js +285 -0
- data/app/assets/javascripts/gridx/core/model/Model.js +495 -0
- data/app/assets/javascripts/gridx/core/model/_Extension.js +84 -0
- data/app/assets/javascripts/gridx/core/model/cache/Async.js +469 -0
- data/app/assets/javascripts/gridx/core/model/cache/Sync.js +59 -0
- data/app/assets/javascripts/gridx/core/model/cache/_Cache.js +386 -0
- data/app/assets/javascripts/gridx/core/model/extensions/ClientFilter.js +303 -0
- data/app/assets/javascripts/gridx/core/model/extensions/FormatSort.js +103 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Mark.js +370 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Modify.js +418 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Move.js +429 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Query.js +50 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Sort.js +81 -0
- data/app/assets/javascripts/gridx/core/util.js +13 -0
- data/app/assets/javascripts/gridx/mobile/Grid.js +300 -0
- data/app/assets/javascripts/gridx/mobile/LazyLoad.js +88 -0
- data/app/assets/javascripts/gridx/mobile/PullRefresh.js +117 -0
- data/app/assets/javascripts/gridx/mobile/Sort.js +66 -0
- data/app/assets/javascripts/gridx/mobile/nls/LazyLoad.js +38 -0
- data/app/assets/javascripts/gridx/mobile/nls/PullRefresh.js +39 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/common.js +37 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/common.js +5 -0
- data/app/assets/javascripts/gridx/modules/AutoScroll.js +100 -0
- data/app/assets/javascripts/gridx/modules/Bar.js +322 -0
- data/app/assets/javascripts/gridx/modules/Body.js +1059 -0
- data/app/assets/javascripts/gridx/modules/CellWidget.js +538 -0
- data/app/assets/javascripts/gridx/modules/ColumnLock.js +254 -0
- data/app/assets/javascripts/gridx/modules/ColumnResizer.js +278 -0
- data/app/assets/javascripts/gridx/modules/ColumnWidth.js +320 -0
- data/app/assets/javascripts/gridx/modules/Dod.js +368 -0
- data/app/assets/javascripts/gridx/modules/Edit.js +1024 -0
- data/app/assets/javascripts/gridx/modules/Filter.js +482 -0
- data/app/assets/javascripts/gridx/modules/Focus.js +439 -0
- data/app/assets/javascripts/gridx/modules/GroupHeader.js +437 -0
- data/app/assets/javascripts/gridx/modules/HLayout.js +139 -0
- data/app/assets/javascripts/gridx/modules/HScroller.js +172 -0
- data/app/assets/javascripts/gridx/modules/Header.js +289 -0
- data/app/assets/javascripts/gridx/modules/HeaderMenu.js +63 -0
- data/app/assets/javascripts/gridx/modules/HeaderRegions.js +201 -0
- data/app/assets/javascripts/gridx/modules/HiddenColumns.js +274 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelect.js +287 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelectColumn.js +277 -0
- data/app/assets/javascripts/gridx/modules/Menu.js +167 -0
- data/app/assets/javascripts/gridx/modules/NavigableCell.js +170 -0
- data/app/assets/javascripts/gridx/modules/NestedSort.js +280 -0
- data/app/assets/javascripts/gridx/modules/PagedBody.js +409 -0
- data/app/assets/javascripts/gridx/modules/Pagination.js +293 -0
- data/app/assets/javascripts/gridx/modules/Persist.js +266 -0
- data/app/assets/javascripts/gridx/modules/Printer.js +49 -0
- data/app/assets/javascripts/gridx/modules/RowHeader.js +412 -0
- data/app/assets/javascripts/gridx/modules/RowLock.js +143 -0
- data/app/assets/javascripts/gridx/modules/SingleSort.js +276 -0
- data/app/assets/javascripts/gridx/modules/SummaryBar.js +33 -0
- data/app/assets/javascripts/gridx/modules/TitleBar.js +51 -0
- data/app/assets/javascripts/gridx/modules/ToolBar.js +55 -0
- data/app/assets/javascripts/gridx/modules/TouchScroll.js +103 -0
- data/app/assets/javascripts/gridx/modules/TouchVScroller.js +89 -0
- data/app/assets/javascripts/gridx/modules/Traverse.js +159 -0
- data/app/assets/javascripts/gridx/modules/Tree.js +646 -0
- data/app/assets/javascripts/gridx/modules/VLayout.js +152 -0
- data/app/assets/javascripts/gridx/modules/VScroller.js +342 -0
- data/app/assets/javascripts/gridx/modules/View.js +540 -0
- data/app/assets/javascripts/gridx/modules/VirtualVScroller.js +445 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/GotoPageButton.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/Summary.js +16 -0
- data/app/assets/javascripts/gridx/modules/dnd/Avatar.js +45 -0
- data/app/assets/javascripts/gridx/modules/dnd/Column.js +210 -0
- data/app/assets/javascripts/gridx/modules/dnd/Row.js +286 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Base.js +60 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Dnd.js +371 -0
- data/app/assets/javascripts/gridx/modules/exporter/CSV.js +43 -0
- data/app/assets/javascripts/gridx/modules/exporter/Exporter.js +34 -0
- data/app/assets/javascripts/gridx/modules/exporter/Table.js +42 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Cell.js +491 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Column.js +290 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Row.js +458 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_Base.js +244 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_RowCellBase.js +35 -0
- data/app/assets/javascripts/gridx/modules/filter/DistinctComboBoxMenu.js +22 -0
- data/app/assets/javascripts/gridx/modules/filter/Filter.js +16 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterBar.js +649 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterConfirmDialog.js +33 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterDialog.js +179 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterPane.js +340 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterTooltip.js +103 -0
- data/app/assets/javascripts/gridx/modules/filter/QuickFilter.js +33 -0
- data/app/assets/javascripts/gridx/modules/move/Column.js +223 -0
- data/app/assets/javascripts/gridx/modules/move/Row.js +154 -0
- data/app/assets/javascripts/gridx/modules/pagination/Pagination.js +16 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBarDD.js +40 -0
- data/app/assets/javascripts/gridx/modules/pagination/_PaginationBarBase.js +105 -0
- data/app/assets/javascripts/gridx/modules/select/Cell.js +229 -0
- data/app/assets/javascripts/gridx/modules/select/Column.js +209 -0
- data/app/assets/javascripts/gridx/modules/select/Row.js +302 -0
- data/app/assets/javascripts/gridx/modules/select/_Base.js +99 -0
- data/app/assets/javascripts/gridx/modules/select/_RowCellBase.js +51 -0
- data/app/assets/javascripts/gridx/nls/Body.js +47 -0
- data/app/assets/javascripts/gridx/nls/FilterBar.js +133 -0
- data/app/assets/javascripts/gridx/nls/NestedSort.js +45 -0
- data/app/assets/javascripts/gridx/nls/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/nls/QuickFilter.js +40 -0
- data/app/assets/javascripts/gridx/nls/SummaryBar.js +38 -0
- data/app/assets/javascripts/gridx/nls/ar/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ar/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ar/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ar/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/bg/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/bg/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/bg/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/bg/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/bg/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/bg/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/ca/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ca/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ca/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ca/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ca/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ca/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/cs/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/cs/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/da/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/da/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/da/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/da/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/de/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/de/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/de/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/de/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/el/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/el/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/el/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/el/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/es/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/es/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/es/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/es/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/es/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/es/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fi/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fi/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/fr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/he/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/he/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/he/QuickFilter.js +6 -0
- data/app/assets/javascripts/gridx/nls/he/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/hr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hu/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hu/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/PaginationBar.js +33 -0
- data/app/assets/javascripts/gridx/nls/hu/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hu/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/it/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/it/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/it/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/it/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/ja/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ja/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ja/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ja/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/kk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/kk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/kk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/kk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/kk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/kk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ko/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ko/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nb/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nb/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nb/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nb/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/Body.js +6 -0
- data/app/assets/javascripts/gridx/nls/pt-br/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-br/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-br/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pt-br/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ro/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ro/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ro/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ro/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ro/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ro/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ru/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ru/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/sk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/sk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/sk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sv/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sv/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sv/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sv/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/th/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/th/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/th/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/th/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/tr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/tr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/tr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/tr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/uk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/uk/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/uk/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/uk/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/uk/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/uk/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/zh/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/support/DropDownPager.js +111 -0
- data/app/assets/javascripts/gridx/support/DropDownSizer.js +112 -0
- data/app/assets/javascripts/gridx/support/GotoPageButton.js +92 -0
- data/app/assets/javascripts/gridx/support/GotoPagePane.js +61 -0
- data/app/assets/javascripts/gridx/support/LinkPager.js +180 -0
- data/app/assets/javascripts/gridx/support/LinkSizer.js +138 -0
- data/app/assets/javascripts/gridx/support/QuickFilter.js +138 -0
- data/app/assets/javascripts/gridx/support/Summary.js +49 -0
- data/app/assets/javascripts/gridx/support/_LinkPageBase.js +92 -0
- data/app/assets/javascripts/gridx/support/exporter/exporter.js +350 -0
- data/app/assets/javascripts/gridx/support/exporter/toCSV.js +75 -0
- data/app/assets/javascripts/gridx/support/exporter/toTable.js +92 -0
- data/app/assets/javascripts/gridx/support/menu/AZFilterMenu.js +57 -0
- data/app/assets/javascripts/gridx/support/menu/NumberFilterMenu.js +87 -0
- data/app/assets/javascripts/gridx/support/menu/_FilterMenuBase.js +83 -0
- data/app/assets/javascripts/gridx/support/printer.js +157 -0
- data/app/assets/javascripts/gridx/templates/FilterBar.html +8 -0
- data/app/assets/javascripts/gridx/templates/FilterConfirmDialog.html +5 -0
- data/app/assets/javascripts/gridx/templates/FilterDialog.html +19 -0
- data/app/assets/javascripts/gridx/templates/FilterPane.html +64 -0
- data/app/assets/javascripts/gridx/templates/GotoPagePane.html +28 -0
- data/app/assets/javascripts/gridx/templates/Grid.html +19 -0
- data/app/assets/javascripts/gridx/templates/LinkPager.html +24 -0
- data/app/assets/javascripts/gridx/templates/PaginationBar.html +60 -0
- data/app/assets/javascripts/gridx/templates/PaginationBarDD.html +23 -0
- data/app/assets/javascripts/gridx/templates/QuickFilter.html +38 -0
- data/app/assets/stylesheets/gridx/mobile/themes/iphone/Grid.css +107 -0
- data/app/assets/stylesheets/gridx/resources/Dod.css +39 -0
- data/app/assets/stylesheets/gridx/resources/Gridx.css +10 -0
- data/app/assets/stylesheets/gridx/resources/Gridx_rtl.css +5 -0
- data/app/assets/stylesheets/gridx/resources/Tree.css +46 -0
- data/app/assets/stylesheets/gridx/resources/Tree_rtl.css +4 -0
- data/app/assets/stylesheets/gridx/resources/bar.css +24 -0
- data/app/assets/stylesheets/gridx/resources/basic.css +482 -0
- data/app/assets/stylesheets/gridx/resources/basic_rtl.css +37 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx.css +16 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx_rtl.css +7 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic.css +109 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic_rtl.css +21 -0
- data/app/assets/stylesheets/gridx/resources/claro/filter.css +47 -0
- data/app/assets/stylesheets/gridx/resources/claro/lock.css +19 -0
- data/app/assets/stylesheets/gridx/resources/claro/pagination.css +33 -0
- data/app/assets/stylesheets/gridx/resources/claro/select.css +20 -0
- data/app/assets/stylesheets/gridx/resources/dnd.css +108 -0
- data/app/assets/stylesheets/gridx/resources/filter.css +321 -0
- data/app/assets/stylesheets/gridx/resources/filter_rtl.css +38 -0
- data/app/assets/stylesheets/gridx/resources/lock.css +20 -0
- data/app/assets/stylesheets/gridx/resources/pagination.css +142 -0
- data/app/assets/stylesheets/gridx/resources/pagination_rtl.css +54 -0
- data/app/assets/stylesheets/gridx/resources/select.css +39 -0
- data/app/assets/stylesheets/gridx/resources/sort.css +154 -0
- data/app/assets/stylesheets/gridx/resources/sort_rtl.css +51 -0
- data/lib/gridx-rails/engine.rb +8 -0
- data/lib/gridx-rails/version.rb +3 -0
- data/lib/gridx-rails.rb +4 -0
- data/lib/tasks/gridx-rails_tasks.rake +52 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +78 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/gridx-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +621 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"dojo/_base/kernel",
|
|
3
|
+
"dojo/_base/declare",
|
|
4
|
+
"dojo/_base/lang",
|
|
5
|
+
"dojo/_base/array",
|
|
6
|
+
"dojo/_base/sniff",
|
|
7
|
+
"dojo/dom-class",
|
|
8
|
+
"dojo/keys",
|
|
9
|
+
"dojo/query",
|
|
10
|
+
"./Header"
|
|
11
|
+
], function(kernel, declare, lang, array, has, domClass, keys, query, Header){
|
|
12
|
+
kernel.experimental('gridx/modules/GroupHeader');
|
|
13
|
+
|
|
14
|
+
/*=====
|
|
15
|
+
var GroupHeader = declare(Header, {
|
|
16
|
+
// summary:
|
|
17
|
+
// The header UI of grid. This implementation supports header groups (also called "column groups").
|
|
18
|
+
// This module is not compatible with IE7 and below.
|
|
19
|
+
// This module is not compatible with ColumnLock and HiddenColumns.
|
|
20
|
+
// description:
|
|
21
|
+
// This module inherites the default Header module, adding support of column groups.
|
|
22
|
+
// Several adjacent headers can be grouped together by configuring the "groups" parameter of this module.
|
|
23
|
+
// Header groups are shown as higher level headers with colspan.
|
|
24
|
+
// example:
|
|
25
|
+
// Simple single level groups:
|
|
26
|
+
// | var grid = new Grid({
|
|
27
|
+
// | ......
|
|
28
|
+
// | structure: [
|
|
29
|
+
// | { id: 'column1', name: 'Column 1' },
|
|
30
|
+
// | { id: 'column2', name: 'Column 2' },
|
|
31
|
+
// | { id: 'column3', name: 'Column 3' },
|
|
32
|
+
// | { id: 'column4', name: 'Column 4' },
|
|
33
|
+
// | { id: 'column5', name: 'Column 5' },
|
|
34
|
+
// | { id: 'column6', name: 'Column 6' },
|
|
35
|
+
// | { id: 'column7', name: 'Column 7' },
|
|
36
|
+
// | { id: 'column8', name: 'Column 8' },
|
|
37
|
+
// | { id: 'column9', name: 'Column 9' }
|
|
38
|
+
// | ],
|
|
39
|
+
// | headerGroups: [
|
|
40
|
+
// | { name: "Group 1", children: 3 }, //This group contains 3 real columns (Column1, 2, and 3).
|
|
41
|
+
// | { name: "Group 2", children: 2 }, //This group contains 2 real columns (Column 4, and 5).
|
|
42
|
+
// | { name: "Group 3", children: 4 }, //This group contains 4 real columns (Column 6, 7, 8, and 9).
|
|
43
|
+
// | ],
|
|
44
|
+
// | modules: [
|
|
45
|
+
// | ......
|
|
46
|
+
// | "gridx/modules/GroupHeader"
|
|
47
|
+
// | ],
|
|
48
|
+
// | ......
|
|
49
|
+
// | });
|
|
50
|
+
// Multi-level groups:
|
|
51
|
+
// (structure and other settings are the same as the previous sample)
|
|
52
|
+
// | var grid = new Grid({
|
|
53
|
+
// | ......
|
|
54
|
+
// | headerGroups: [
|
|
55
|
+
// | { name: "Group 1", children: [
|
|
56
|
+
// | { name: "Group 1-1", children: 2}, //Contains Column 1 and 2
|
|
57
|
+
// | { name: "Group 1-2", children: 2} //Contains Column 3 and 4
|
|
58
|
+
// | ]},
|
|
59
|
+
// | { name: "Group 2", children: [
|
|
60
|
+
// | { name: "Group 2-1", children: 2}, //Contains Column 5 and 6
|
|
61
|
+
// | { name: "Group 2-2", children: 3} //Contains Column 7, 8, and 9
|
|
62
|
+
// | ]}
|
|
63
|
+
// | ],
|
|
64
|
+
// | ......
|
|
65
|
+
// | });
|
|
66
|
+
// Complicated group structure (colspan and rowspan):
|
|
67
|
+
// (structure and other settings are the same as the previous sample)
|
|
68
|
+
// | var grid = new Grid({
|
|
69
|
+
// | ......
|
|
70
|
+
// | headerGroups: [
|
|
71
|
+
// | 1, //Column 1
|
|
72
|
+
// | { name: "Group 1", children: [
|
|
73
|
+
// | { name: "Group 1-1", children: 2 }, //Contains Column 2 and 3
|
|
74
|
+
// | 1, Column 4
|
|
75
|
+
// | { name: "Group 1-2", children: [
|
|
76
|
+
// | { name: "Group 1-2-1", children: 2 }, //Contains Column 5 and 6
|
|
77
|
+
// | { name: "Group 1-2-2", children: 2 } //Contains Column 7 and 8
|
|
78
|
+
// | ]}
|
|
79
|
+
// | ]}
|
|
80
|
+
// | //If not all columns are included in previous groups, the remaining are automatically added here.
|
|
81
|
+
// | //So the final is Column 9, same level as Column 1 and "Group 1".
|
|
82
|
+
// | ],
|
|
83
|
+
// | ......
|
|
84
|
+
// | });
|
|
85
|
+
|
|
86
|
+
// groups: (Integer|GroupHeader.__HeaderGroup)[]
|
|
87
|
+
// Configure the header group structure. Must be an array.
|
|
88
|
+
groups: null
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
GroupHeader.__HeaderGroup = declare([], {
|
|
92
|
+
// summary:
|
|
93
|
+
// Definition of a header group.
|
|
94
|
+
// description:
|
|
95
|
+
// Defines the content shown in this header group and the children included in this group.
|
|
96
|
+
|
|
97
|
+
// id: String
|
|
98
|
+
// The identity of this header group.
|
|
99
|
+
// If not provided, default to "group-" + group_level + "-" + id_of_first_column_in_this_group
|
|
100
|
+
// where group_level starts from 0 (the highest groups).
|
|
101
|
+
id: '',
|
|
102
|
+
|
|
103
|
+
// name: String
|
|
104
|
+
// The content shown in this header group.
|
|
105
|
+
name: '',
|
|
106
|
+
|
|
107
|
+
// children: Integer|(Integer|GroupHeader.__HeaderGroup)[]
|
|
108
|
+
// The children included in this header group. Can be other header groups or real columns.
|
|
109
|
+
// If to include real columns, a number is given to indicate how many real columns are located here.
|
|
110
|
+
// For example: [3, { name: "child group", children: 4 }] means this group includes 3 real columns
|
|
111
|
+
// followed by a child group whose "name" is "child group" and whose children is 4 real columns.
|
|
112
|
+
children: []
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
return GroupHeader;
|
|
116
|
+
=====*/
|
|
117
|
+
|
|
118
|
+
return declare(Header, {
|
|
119
|
+
preload: function(args){
|
|
120
|
+
this.inherited(arguments);
|
|
121
|
+
var t = this,
|
|
122
|
+
g = t.grid,
|
|
123
|
+
escapeId = g._escapeId;
|
|
124
|
+
if(g.columnResizer){
|
|
125
|
+
t.aspect(g.columnResizer, 'onResize', function(colId){
|
|
126
|
+
var w = (query('[colid="' + escapeId(colId) + '"]', g.headerNode)[0].offsetWidth - g.columnWidth._padBorder) + 'px';
|
|
127
|
+
if(w != g._columnsById[colId].width){
|
|
128
|
+
query('[colid="' + escapeId(colId) + '"]', g.domNode).forEach(function(cell){
|
|
129
|
+
var cs = cell.style;
|
|
130
|
+
cs.width = w;
|
|
131
|
+
cs.minWidth = w;
|
|
132
|
+
cs.maxWidth = w;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
_parse: function(){
|
|
140
|
+
var columns = this.grid._columns,
|
|
141
|
+
columnCount = columns.length,
|
|
142
|
+
cnt = 0,
|
|
143
|
+
maxLevel = 0,
|
|
144
|
+
groups = this.arg('groups', []),
|
|
145
|
+
groupsById = this._groupsById = {},
|
|
146
|
+
check = function(struct, level, groupId){
|
|
147
|
+
if(!lang.isArrayLike(struct)){
|
|
148
|
+
struct = [struct];
|
|
149
|
+
}
|
|
150
|
+
if(level > maxLevel){
|
|
151
|
+
maxLevel = level;
|
|
152
|
+
}
|
|
153
|
+
var colCount = 0;
|
|
154
|
+
for(var i = 0; i < struct.length;){
|
|
155
|
+
var item = struct[i];
|
|
156
|
+
if(cnt >= columnCount){
|
|
157
|
+
//There's already no more columns
|
|
158
|
+
struct.splice(i, 1);
|
|
159
|
+
}else if(typeof item == 'number' && item > 0){
|
|
160
|
+
//After adding some columns, it is overloaded
|
|
161
|
+
if(cnt + item > columnCount){
|
|
162
|
+
item = struct[i] = columnCount - cnt;
|
|
163
|
+
}
|
|
164
|
+
for(var j = 0; j < item; ++j){
|
|
165
|
+
columns[cnt + j].groupId = groupId;
|
|
166
|
+
}
|
|
167
|
+
colCount += item;
|
|
168
|
+
cnt += item;
|
|
169
|
+
++i;
|
|
170
|
+
}else if(item && lang.isObject(item)){
|
|
171
|
+
//This is a column group
|
|
172
|
+
if(!lang.isArrayLike(item.children)){
|
|
173
|
+
item.children = [item.children];
|
|
174
|
+
}
|
|
175
|
+
item.groupId = groupId;
|
|
176
|
+
item.id = item.id || 'group-' + level + '-' + columns[cnt].id;
|
|
177
|
+
item.level = level;
|
|
178
|
+
item.start = cnt;
|
|
179
|
+
var colSpan = check(item.children, level + 1, item.id);
|
|
180
|
+
if(item.children.length){
|
|
181
|
+
groupsById[item.id] = item;
|
|
182
|
+
item.colCount = colSpan;
|
|
183
|
+
colCount += colSpan;
|
|
184
|
+
++i;
|
|
185
|
+
}else{
|
|
186
|
+
//No children for this group
|
|
187
|
+
struct.splice(i, 1);
|
|
188
|
+
}
|
|
189
|
+
}else{
|
|
190
|
+
//the format of this item is not recognizable.
|
|
191
|
+
struct.splice(i, 1);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return colCount;
|
|
195
|
+
};
|
|
196
|
+
check(groups, 0);
|
|
197
|
+
if(cnt < columnCount){
|
|
198
|
+
groups.push(columnCount - cnt);
|
|
199
|
+
}
|
|
200
|
+
return maxLevel;
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
_configMoveColumn: function(){
|
|
204
|
+
var t = this,
|
|
205
|
+
g = t.grid;
|
|
206
|
+
if(g.move && g.move.column){
|
|
207
|
+
//Compatiblity with move/Column
|
|
208
|
+
var constraints = g.move.column.arg('constraints', {});
|
|
209
|
+
for(var id in t._groupsById){
|
|
210
|
+
var group = t._groupsById[id];
|
|
211
|
+
var end = group.start + group.colCount - 1;
|
|
212
|
+
if(typeof constraints[group.start] != 'number' || end < constraints[group.start]){
|
|
213
|
+
constraints[group.start] = end;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
var gPrev = -1,
|
|
217
|
+
gStart = 0;
|
|
218
|
+
array.forEach(g._columns, function(col, i){
|
|
219
|
+
if(!col.groupId){
|
|
220
|
+
if(i != gPrev + 1){
|
|
221
|
+
gStart = i;
|
|
222
|
+
}
|
|
223
|
+
gPrev = i;
|
|
224
|
+
constraints[gStart] = i;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
_build: function(){
|
|
231
|
+
var t = this,
|
|
232
|
+
g = t.grid,
|
|
233
|
+
f = g.focus,
|
|
234
|
+
columns = g._columns.slice(),
|
|
235
|
+
currentLevel = 0,
|
|
236
|
+
level = t._parse(),
|
|
237
|
+
q = t.groups.slice(),
|
|
238
|
+
sb = ['<table role="presentation" border="0" cellpadding="0" cellspacing="0">'];
|
|
239
|
+
t._configMoveColumn();
|
|
240
|
+
function build(){
|
|
241
|
+
sb.push('<tr>');
|
|
242
|
+
var prevColCount = 0;
|
|
243
|
+
for(var i = 0, len = q.length; i < len; ++i){
|
|
244
|
+
var item = q.shift();
|
|
245
|
+
if(typeof item == 'number'){
|
|
246
|
+
for(var j = 0; j < item; ++j){
|
|
247
|
+
var col = columns[prevColCount + j],
|
|
248
|
+
cls = col.headerClass,
|
|
249
|
+
style = col.headerStyle,
|
|
250
|
+
width = col.width;
|
|
251
|
+
col._domId = (g.id + '-' + col.id).replace(/\s+/, '');
|
|
252
|
+
sb.push('<td role="columnheader" aria-readonly="true" tabindex="-1" id="', col._domId,
|
|
253
|
+
'" colid="', col.id,
|
|
254
|
+
level - currentLevel ? '" rowspan="' + (level - currentLevel + 1) : '',
|
|
255
|
+
'" class="gridxCell ',
|
|
256
|
+
currentLevel ? 'gridxSubHeader' : '',
|
|
257
|
+
f && f.currentArea() == 'header' && col.id == t._focusHeaderId ? t._focusClass : '',
|
|
258
|
+
(cls && lang.isFunction(cls) ? cls(col) : cls) || '',
|
|
259
|
+
'" style="width:', width, ';min-width:', width, ';max-width:', width, ';',
|
|
260
|
+
g.getTextDirStyle(col.id, col.name),
|
|
261
|
+
(style && lang.isFunction(style) ? style(col) : style) || '',
|
|
262
|
+
'"><div class="gridxSortNode">',
|
|
263
|
+
col.name || '',
|
|
264
|
+
'</div></td>');
|
|
265
|
+
}
|
|
266
|
+
columns.splice(prevColCount, item);
|
|
267
|
+
}else{
|
|
268
|
+
prevColCount += item.colCount;
|
|
269
|
+
q = q.concat(item.children);
|
|
270
|
+
sb.push('<td tabindex="-1" colspan="', item.colCount,
|
|
271
|
+
'" class="gridxGroupHeader', currentLevel ? ' gridxSubHeader' : '',
|
|
272
|
+
'" groupid="', item.id,
|
|
273
|
+
'"><div class="gridxSortNode">', item.name || '', '</div></td>');
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
sb.push('</tr>');
|
|
277
|
+
currentLevel++;
|
|
278
|
+
}
|
|
279
|
+
while(q.length){
|
|
280
|
+
build();
|
|
281
|
+
}
|
|
282
|
+
sb.push('</table>');
|
|
283
|
+
t.innerNode.innerHTML = sb.join('');
|
|
284
|
+
domClass.toggle(t.domNode, 'gridxHeaderRowHidden', t.arg('hidden'));
|
|
285
|
+
domClass.add(g.domNode, 'gridxGH');
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
_initFocus: function(){
|
|
289
|
+
var t = this, g = t.grid;
|
|
290
|
+
if(g.focus){
|
|
291
|
+
g.focus.registerArea({
|
|
292
|
+
name: 'header',
|
|
293
|
+
priority: 0,
|
|
294
|
+
focusNode: t.innerNode,
|
|
295
|
+
scope: t,
|
|
296
|
+
doFocus: t._doFocus,
|
|
297
|
+
doBlur: t._blurNode,
|
|
298
|
+
onBlur: t._blurNode,
|
|
299
|
+
connects: [
|
|
300
|
+
t.connect(t.domNode, 'onkeydown', '_onKeyDown'),
|
|
301
|
+
t.connect(t.domNode, 'onmousedown', function(evt){
|
|
302
|
+
t._focusNode(query(evt.target).closest('td', t.domNode)[0]);
|
|
303
|
+
g.focus.currentArea();
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
_doFocus: function(evt, step){
|
|
311
|
+
var t = this,
|
|
312
|
+
n = t._curNode || query('td', t.domNode)[0];
|
|
313
|
+
t._focusNode(n);
|
|
314
|
+
return n;
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
_focusNode: function(node){
|
|
318
|
+
if(node){
|
|
319
|
+
var t = this, g = t.grid,
|
|
320
|
+
fid = t._focusHeaderId = node.getAttribute('colid');
|
|
321
|
+
if(!fid){
|
|
322
|
+
fid = t._focusGroupId = node.getAttribute('groupid');
|
|
323
|
+
var group = t._groupsById[fid];
|
|
324
|
+
if(group){
|
|
325
|
+
//If the group node is half visible, should scroll to the farther end column to make it fully visible.
|
|
326
|
+
//Otherwise, it'll cause header-body mismatch in IE.
|
|
327
|
+
var colIdx = node.offsetLeft + node.offsetWidth > t.innerNode.scrollLeft + t.innerNode.clientWidth ?
|
|
328
|
+
group.start + group.colCount - 1 :
|
|
329
|
+
group.start;
|
|
330
|
+
fid = g._columns[colIdx].id;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if(fid){
|
|
334
|
+
t._blurNode();
|
|
335
|
+
if(g.hScroller){
|
|
336
|
+
g.hScroller.scrollToColumn(fid);
|
|
337
|
+
}
|
|
338
|
+
g.body._focusCellCol = g._columnsById[fid].index;
|
|
339
|
+
|
|
340
|
+
t._curNode = node;
|
|
341
|
+
domClass.add(node, t._focusClass);
|
|
342
|
+
//If no timeout, the header and body may be mismatch.
|
|
343
|
+
setTimeout(function(){
|
|
344
|
+
//For webkit browsers, when moving column using keyboard, the header cell will lose this focus class,
|
|
345
|
+
//although it was set correctly before this setTimeout. So re-add it here.
|
|
346
|
+
if(has('webkit')){
|
|
347
|
+
domClass.add(node, t._focusClass);
|
|
348
|
+
}
|
|
349
|
+
node.focus();
|
|
350
|
+
if(has('ie') < 8){
|
|
351
|
+
t.innerNode.scrollLeft = t._scrollLeft;
|
|
352
|
+
}
|
|
353
|
+
}, 0);
|
|
354
|
+
return true;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return false;
|
|
358
|
+
},
|
|
359
|
+
|
|
360
|
+
_blurNode: function(){
|
|
361
|
+
var t = this, n = query('.' + t._focusClass, t.innerNode)[0];
|
|
362
|
+
if(n){
|
|
363
|
+
domClass.remove(n, t._focusClass);
|
|
364
|
+
}
|
|
365
|
+
return true;
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
_getUpNode: function(node){
|
|
369
|
+
var colId = node.getAttribute('colid'),
|
|
370
|
+
groupId = node.getAttribute('groupid'),
|
|
371
|
+
item = this.grid._columnsById[colId] || this._groupsById[groupId];
|
|
372
|
+
return item && query('[groupid="' + item.groupId + '"]', this.domNode)[0];
|
|
373
|
+
},
|
|
374
|
+
|
|
375
|
+
_getDownNode: function(node, last){
|
|
376
|
+
var item = this._groupsById[node.getAttribute('groupid')];
|
|
377
|
+
if(item){
|
|
378
|
+
var child = item.children[0];
|
|
379
|
+
if(typeof child == 'number'){
|
|
380
|
+
var col = this.grid._columns[item.start];
|
|
381
|
+
return this.getHeaderNode(col.id);
|
|
382
|
+
}else{
|
|
383
|
+
var nodes = query('[groupid="' + child.id + '"]', this.domNode);
|
|
384
|
+
return last ? nodes[nodes.length - 1] : nodes[0];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
_getPrevNode: function(node){
|
|
390
|
+
var n = node.previousSibling;
|
|
391
|
+
if(!n){
|
|
392
|
+
n = this._getUpNode(node);
|
|
393
|
+
n = n && this._getPrevNode(n);
|
|
394
|
+
n = n && this._getDownNode(n, 1) || n;
|
|
395
|
+
}
|
|
396
|
+
return n;
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
_getNextNode: function(node){
|
|
400
|
+
var n = node.nextSibling;
|
|
401
|
+
if(!n){
|
|
402
|
+
n = this._getUpNode(node);
|
|
403
|
+
n = n && this._getNextNode(n);
|
|
404
|
+
n = n && this._getDownNode(n) || n;
|
|
405
|
+
}
|
|
406
|
+
return n;
|
|
407
|
+
},
|
|
408
|
+
|
|
409
|
+
_onKeyDown: function(evt){
|
|
410
|
+
var t = this, g = t.grid, col,
|
|
411
|
+
node = t._curNode;
|
|
412
|
+
if(!evt.ctrlKey && !evt.altKey &&
|
|
413
|
+
(evt.keyCode == keys.LEFT_ARROW || evt.keyCode == keys.RIGHT_ARROW)){
|
|
414
|
+
//Prevent scrolling the whole page.
|
|
415
|
+
g.focus.stopEvent(evt);
|
|
416
|
+
var isPrev = g.isLeftToRight() ^ evt.keyCode == keys.RIGHT_ARROW;
|
|
417
|
+
var n = isPrev ? t._getPrevNode(node) : t._getNextNode(node);
|
|
418
|
+
if(n){
|
|
419
|
+
t._focusHeaderId = n.getAttribute('colid');
|
|
420
|
+
t._focusGroupId = n.getAttribute('groupid');
|
|
421
|
+
t._focusNode(n);
|
|
422
|
+
if(t._focusHeaderId){
|
|
423
|
+
t.onMoveToHeaderCell(t._focusHeaderId, evt);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}else if(evt.keyCode == keys.UP_ARROW){
|
|
427
|
+
//Prevent scrolling the whole page.
|
|
428
|
+
g.focus.stopEvent(evt);
|
|
429
|
+
t._focusNode(t._getUpNode(node));
|
|
430
|
+
}else if(evt.keyCode == keys.DOWN_ARROW){
|
|
431
|
+
//Prevent scrolling the whole page.
|
|
432
|
+
g.focus.stopEvent(evt);
|
|
433
|
+
t._focusNode(t._getDownNode(node));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"dojo/_base/declare",
|
|
3
|
+
"dojo/_base/Deferred",
|
|
4
|
+
"dojo/_base/array",
|
|
5
|
+
"dojo/dom-style",
|
|
6
|
+
"dojo/DeferredList",
|
|
7
|
+
"../core/_Module"
|
|
8
|
+
], function(declare, Deferred, array, domStyle, DeferredList, _Module){
|
|
9
|
+
|
|
10
|
+
/*=====
|
|
11
|
+
return declare(_Module, {
|
|
12
|
+
// summary:
|
|
13
|
+
// This module manages the horizontal layout of all grid UI parts.
|
|
14
|
+
// description:
|
|
15
|
+
// When a user creates a grid with a given width, it means the width of the whole grid,
|
|
16
|
+
// which includes grid body, row header, and virtical scrollerbar (and maybe more in the future).
|
|
17
|
+
// So the width of the grid body must be calculated out so as to layout the grid properly.
|
|
18
|
+
// This module calculates grid body width by collecting width from all the registered
|
|
19
|
+
// grid UI parts. It is assumed that the width of these UI parts will not change when grid is resized.
|
|
20
|
+
|
|
21
|
+
// lead: [private readonly] Number
|
|
22
|
+
// The pixel size of the total width of all the UI parts that are before(LTR: left, RTL: right) the grid body.
|
|
23
|
+
lead: 0,
|
|
24
|
+
|
|
25
|
+
// tail: [private readonly] Number
|
|
26
|
+
// The pixel size of the total width of all the UI parts that are after(LTR: right, RTL: left) the grid body.
|
|
27
|
+
tail: 0,
|
|
28
|
+
|
|
29
|
+
register: function(ready, refNode, isTail){
|
|
30
|
+
// summary:
|
|
31
|
+
// Register a 'refNode' so this module can calculate its width when it is 'ready'
|
|
32
|
+
// tags:
|
|
33
|
+
// private
|
|
34
|
+
// ready: dojo.Deferred|null
|
|
35
|
+
// A deferred object indicating when the DOM node is ready for width calculation.
|
|
36
|
+
// If omitted, it means the refNode can be calculated at any time.
|
|
37
|
+
// refNode: DOMNode
|
|
38
|
+
// The DOM node that represents a UI part in grid.
|
|
39
|
+
// isTail: Boolean?
|
|
40
|
+
// If the 'refNode' appears after(LTR: right, RTL: left) the grid body, set this to true.
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
reLayout: function(){
|
|
44
|
+
// summary:
|
|
45
|
+
// Re-layout the grid horizontally. This means calculated the width of all registered
|
|
46
|
+
// grid UI components except the grid body. Then update the grid body width.
|
|
47
|
+
// Usually there's no need for users to call this method. It'll be automatically called
|
|
48
|
+
// when calling grid.resize().
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
onUpdateWidth: function(){
|
|
52
|
+
// summary:
|
|
53
|
+
// Fired when the body width is updated.
|
|
54
|
+
// tags:
|
|
55
|
+
// private
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
=====*/
|
|
59
|
+
|
|
60
|
+
return declare(_Module, {
|
|
61
|
+
name: 'hLayout',
|
|
62
|
+
|
|
63
|
+
load: function(args, startup){
|
|
64
|
+
var t = this;
|
|
65
|
+
t.connect(t.grid, '_onResizeEnd', function(changeSize, ds){
|
|
66
|
+
var d, dl = [];
|
|
67
|
+
for(d in ds){
|
|
68
|
+
dl.push(ds[d]);
|
|
69
|
+
}
|
|
70
|
+
new DeferredList(dl).then(function(){
|
|
71
|
+
t.reLayout();
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
startup.then(function(){
|
|
75
|
+
t._layout();
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
lead: 0,
|
|
80
|
+
|
|
81
|
+
tail: 0,
|
|
82
|
+
|
|
83
|
+
register: function(ready, refNode, isTail){
|
|
84
|
+
var r = this._regs = this._regs || [];
|
|
85
|
+
if(!ready){
|
|
86
|
+
ready = new Deferred();
|
|
87
|
+
ready.callback();
|
|
88
|
+
}
|
|
89
|
+
r.push([ready, refNode, isTail]);
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
reLayout: function(){
|
|
93
|
+
var t = this,
|
|
94
|
+
r = t._regs,
|
|
95
|
+
lead = 0,
|
|
96
|
+
tail = 0;
|
|
97
|
+
if(r){
|
|
98
|
+
array.forEach(r, function(reg){
|
|
99
|
+
var w = reg[1].offsetWidth || domStyle.get(reg[1], 'width');
|
|
100
|
+
if(reg[2]){
|
|
101
|
+
tail += w;
|
|
102
|
+
}else{
|
|
103
|
+
lead += w;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
t.lead = lead;
|
|
107
|
+
t.tail = tail;
|
|
108
|
+
t.onUpdateWidth(lead, tail);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
onUpdateWidth: function(){},
|
|
113
|
+
|
|
114
|
+
_layout: function(){
|
|
115
|
+
var t = this, r = t._regs;
|
|
116
|
+
if(r){
|
|
117
|
+
var lead = 0, tail = 0,
|
|
118
|
+
dl = array.map(r, function(reg){
|
|
119
|
+
return reg[0];
|
|
120
|
+
});
|
|
121
|
+
new DeferredList(dl).then(function(){
|
|
122
|
+
array.forEach(r, function(reg){
|
|
123
|
+
var w = reg[1].offsetWidth || domStyle.get(reg[1], 'width');
|
|
124
|
+
if(reg[2]){
|
|
125
|
+
tail += w;
|
|
126
|
+
}else{
|
|
127
|
+
lead += w;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
t.lead = lead;
|
|
131
|
+
t.tail = tail;
|
|
132
|
+
t.loaded.callback();
|
|
133
|
+
});
|
|
134
|
+
}else{
|
|
135
|
+
t.loaded.callback();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|