Index: typo3/sysext/recycler/res/js/t3_recycler.js =================================================================== --- typo3/sysext/recycler/res/js/t3_recycler.js (revision 8607) +++ typo3/sysext/recycler/res/js/t3_recycler.js (revision ) @@ -83,7 +83,7 @@ pagingSizeDefault: TYPO3.settings.Recycler.pagingSize, table: TYPO3.settings.Recycler.tableSelection } - + }); /**************************************************** @@ -111,10 +111,10 @@ * Confirmation Window ****************************************************/ Recycler.ConfirmWindow = Ext.extend(Ext.Window, { - + width: 300, - height: 200, - + height: 200, + title: '', confirmText: '', confirmQuestion: '', @@ -135,7 +135,7 @@ xtype: 'form', bodyCssClass: 'recycler-messagebox', modal: true, - + items: [ { xtype: 'label', @@ -162,14 +162,14 @@ scope: this, handler: function(button, event) { var tcemainData = []; - + for (var i=0; i < this.records.length; i++) { tcemainData[i] = [this.records[i].data.table, this.records[i].data.uid]; } Ext.Ajax.request({ url: TYPO3.settings.Recycler.ajaxController + '&cmd=' + this.command, params: { - 'data': Ext.encode(tcemainData), + 'data': Ext.encode(tcemainData), 'recursive': this.getComponent('recursiveCheck').getValue() }, callback: function(options, success, response) { @@ -190,7 +190,7 @@ } } }); - + this.close(); } },{ @@ -215,7 +215,7 @@ top.content.nav_frame.Tree.refresh(); } }, - + // not used? filterGrid: function(grid, component) { var filterText = component.getValue(); @@ -228,16 +228,16 @@ } }); }, - + /**************************************************** * permanent deleting function ****************************************************/ function_delete: function(button, event) { Recycler.Utility.rowAction( - 'doDelete', - TYPO3.lang.cmd_doDelete_confirmText, - TYPO3.lang.title_delete, + 'doDelete', + TYPO3.lang.cmd_doDelete_confirmText, + TYPO3.lang.title_delete, TYPO3.lang.text_delete ); }, @@ -249,8 +249,8 @@ function_undelete: function(button, event) { Recycler.Utility.rowAction( 'doUndelete', - TYPO3.lang.sure, - TYPO3.lang.title_undelete, + TYPO3.lang.sure, + TYPO3.lang.title_undelete, TYPO3.lang.text_undelete ); }, @@ -270,7 +270,7 @@ var arePagesAffected = false; var tables = []; var hideRecursive = ('doDelete' == command); - + for (iterator=0; iterator < records.length; iterator++) { if (tables.indexOf(records[iterator].data.table) < 0) { tables.push(records[iterator].data.table); @@ -305,7 +305,7 @@ }); } }, - + /**************************************************** * pluggable renderer ****************************************************/ @@ -333,10 +333,13 @@ border: false, defaults: {autoScroll: false}, plain: true, - + initComponent : function() { Ext.apply(this, { id: 'delRecordId', + stateful: true, + stateId: 'recyclerGrid', + stateEvents: ['columnmove', 'columnresize', 'sortchange', 'expand', 'collapse'], loadMask: true, stripeRows: true, collapsible: false, @@ -410,6 +413,9 @@ ****************************************************/ xtype: 'combo', + stateful: true, + stateId: 'depthCombo', + stateEvents: ['select'], width: 150, lazyRender: true, valueField: 'depth', @@ -465,6 +471,9 @@ xtype: 'combo', lazyRender: true, + stateful: true, + stateId: 'tableCombo', + stateEvents: ['select'], valueField: 'valueField', displayField: 'tableTitle', id: 'tableSelector', @@ -475,7 +484,7 @@ triggerAction: 'all', editable: false, forceSelection: true, - + store: Recycler.TableStore, valueNotFoundText: String.format(TYPO3.lang.noValueFound, TYPO3.settings.Recycler.tableSelection), tpl: '
{tableTitle} ({records})
{tableTitle} ({records})
', @@ -519,6 +528,16 @@ }; Ext.onReady(function(){ + + //save states in BE_USER->uc + Ext.state.Manager.setProvider(new TYPO3.state.ExtDirectProvider({ + key: 'moduleData.web_recycler.States' + })); + + if (Ext.isObject(TYPO3.settings.Recycler.States)) { + Ext.state.Manager.getProvider().initState(TYPO3.settings.Recycler.States); + } + // disable loadindicator Ext.UpdateManager.defaults.showLoadIndicator = false; // fire recycler grid Index: typo3/sysext/recycler/mod1/index.php =================================================================== --- typo3/sysext/recycler/mod1/index.php (revision 9758) +++ typo3/sysext/recycler/mod1/index.php (revision ) @@ -61,6 +61,7 @@ $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('recycler') . 'mod1/mod_template.html'); $this->doc->backPath = $GLOBALS['BACK_PATH']; + $this->doc->setExtDirectStateProvider(); $this->pageRenderer = $this->doc->getPageRenderer(); @@ -189,6 +190,7 @@ 'deleteDisable' => $this->allowDelete ? 0 : 1, 'depthSelection' => $this->getDataFromSession('depthSelection', 0), 'tableSelection' => $this->getDataFromSession('tableSelection', 'pages'), + 'States' => $GLOBALS['BE_USER']->uc['moduleData']['web_recycler']['States'], ); return $configuration; }