mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Fixed tab activation afeter re-enabling.
This commit is contained in:
@@ -127,13 +127,13 @@ $.widget( "itop.regulartabs", $.ui.tabs, {
|
|||||||
// JQuery UI overload
|
// JQuery UI overload
|
||||||
disable: function(index){
|
disable: function(index){
|
||||||
const panel = this._getPanelForTab( 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 );
|
this._super( index );
|
||||||
},
|
},
|
||||||
// JQuery UI overload
|
// JQuery UI overload
|
||||||
enable: function(index) {
|
enable: function(index) {
|
||||||
const panel = this._getPanelForTab( 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 );
|
this._super( index );
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -380,13 +380,13 @@ $.widget( "itop.scrollabletabs", $.ui.tabs, {
|
|||||||
// JQuery UI overload
|
// JQuery UI overload
|
||||||
disable: function(index){
|
disable: function(index){
|
||||||
const panel = this._getPanelForTab( this.tabs[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 );
|
this._super( index );
|
||||||
},
|
},
|
||||||
// JQuery UI overload
|
// JQuery UI overload
|
||||||
enable: function(index) {
|
enable: function(index) {
|
||||||
const panel = this._getPanelForTab( this.tabs[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 );
|
this._super( index );
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user