Skip to content

Commit

Permalink
implemented helper function for tabbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Jun 21, 2023
1 parent 42c5bcf commit 45c44d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
16 changes: 1 addition & 15 deletions public/js/document/printcontainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,7 @@ pimcore.document.printcontainer = Class.create(pimcore.document.printabstract, {
items.push(this.workflows.getLayout());
}

this.tabbar = new Ext.TabPanel({
tabBar: {
cls: 'pimcore_editor_tabbar'
},
tabPosition: "top",
region:'center',
deferredRender:true,
enableTabScroll:true,
defaults: {autoScroll:true},
border: false,
items: items,
activeTab: 0
});
return this.tabbar;
return pimcore.helpers.getTabBar({items: items, defaults: {autoScroll:true}});
}

});

16 changes: 1 addition & 15 deletions public/js/document/printpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,8 @@ pimcore.document.printpage = Class.create(pimcore.document.printabstract, {
items.push(this.workflows.getLayout());
}

this.tabbar = new Ext.TabPanel({
tabBar: {
cls: 'pimcore_editor_tabbar'
},
tabPosition: "top",
region:'center',
deferredRender:true,
enableTabScroll:true,
defaults: {autoScroll:true},
border: false,
items: items,
activeTab: 0
});
return this.tabbar;
return pimcore.helpers.getTabBar({items: items, defaults: {autoScroll:true}});
}

});


0 comments on commit 45c44d1

Please sign in to comment.