Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- In your tab panel definition (you know, the object with "xtype: 'modx-tabs'" in it) add the following lines to have the active tab remembered:
- Tested on MODX Revolution 2.1.5-pl
- */
- // Copied from modx.layout.js
- ,activeTab: 0
- ,stateful: true
- ,stateId: 'modx-ima_graph-state'
- ,stateEvents: ['tabchange']
- ,getState:function() {
- return {
- activeTab:this.items.indexOf(this.getActiveTab())
- };
- }
- // End copied from modx.layout.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement