Merge remote-tracking branch 'origin/feature/6132-disabling-tabs-dynamically' into saas/3.0

This commit is contained in:
denis.flaven@combodo.com
2023-04-03 14:02:19 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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 );
},
});

View File

@@ -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 );
},
});