mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/feature/6132-disabling-tabs-dynamically' into saas/3.0
This commit is contained in:
@@ -127,13 +127,13 @@ $.widget( "itop.regulartabs", $.ui.tabs, {
|
||||
// JQuery UI overload
|
||||
disable: function(index){
|
||||
const panel = this._getPanelForTab( index );
|
||||
panel.hide();
|
||||
panel.addClass('ibo-is-hidden'); // Do not use .hide() since it alters the tab state
|
||||
this._super( index );
|
||||
},
|
||||
// JQuery UI overload
|
||||
enable: function(index) {
|
||||
const panel = this._getPanelForTab( index );
|
||||
panel.show();
|
||||
panel.removeClass('ibo-is-hidden'); // Do not use .show() since it alters the tab state
|
||||
this._super( index );
|
||||
},
|
||||
});
|
||||
|
||||
@@ -380,13 +380,13 @@ $.widget( "itop.scrollabletabs", $.ui.tabs, {
|
||||
// JQuery UI overload
|
||||
disable: function(index){
|
||||
const panel = this._getPanelForTab( this.tabs[index] );
|
||||
panel.hide();
|
||||
panel.addClass('ibo-is-hidden'); // Do not use .hide() since it alters the tab state
|
||||
this._super( index );
|
||||
},
|
||||
// JQuery UI overload
|
||||
enable: function(index) {
|
||||
const panel = this._getPanelForTab( this.tabs[index] );
|
||||
panel.show();
|
||||
panel.removeClass('ibo-is-hidden'); // Do not use .show() since it alters the tab state
|
||||
this._super( index );
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user