mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
Apply suggestions from code review
JS cleanup after review Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
This commit is contained in:
@@ -126,13 +126,14 @@ $.widget( "itop.regulartabs", $.ui.tabs, {
|
||||
},
|
||||
// JQuery UI overload
|
||||
disable: function(index){
|
||||
let panel = this._getPanelForTab( index );
|
||||
panel.css({display: 'none'});
|
||||
const panel = this._getPanelForTab( index );
|
||||
panel.hide();
|
||||
this._super( index );
|
||||
},
|
||||
// JQuery UI overload
|
||||
enable: function(index) {
|
||||
let panel = this._getPanelForTab( index );
|
||||
panel.css({display: 'block'});
|
||||
const panel = this._getPanelForTab( index );
|
||||
panel.show();
|
||||
this._super( index );
|
||||
},
|
||||
});
|
||||
|
||||
@@ -379,12 +379,13 @@ $.widget( "itop.scrollabletabs", $.ui.tabs, {
|
||||
},
|
||||
// JQuery UI overload
|
||||
disable: function(index){
|
||||
let panel = this._getPanelForTab( this.tabs[index] );
|
||||
const panel = this._getPanelForTab( this.tabs[index] );
|
||||
panel.css({display: 'none'});
|
||||
this._super( index );
|
||||
},
|
||||
// JQuery UI overload
|
||||
enable: function(index) {
|
||||
let panel = this._getPanelForTab( this.tabs[index] );
|
||||
const panel = this._getPanelForTab( this.tabs[index] );
|
||||
panel.css({display: 'block'});
|
||||
this._super( index );
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user