Rename method for consistency across the widget

This commit is contained in:
Molkobain
2021-08-25 15:13:03 +02:00
parent 88e210d84d
commit 16dc7de8e2
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ $(function()
* Return tabs widget instance * Return tabs widget instance
* @public * @public
*/ */
GetTabWidget: function () { GetTabsWidget: function () {
if (this.element.hasClass(this.css_classes.is_scrollable)) { if (this.element.hasClass(this.css_classes.is_scrollable)) {
return this.element.scrollabletabs('instance'); return this.element.scrollabletabs('instance');
} else { } else {

View File

@@ -450,7 +450,7 @@ $(function()
{ {
this._close_all_tooltips(); this._close_all_tooltips();
// Activate the 3rd tab // Activate the 3rd tab
this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabWidget").option("active", 2); this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabsWidget").option("active", 2);
// Scroll into view the group // Scroll into view the group
if ($('#'+sGroupId).length > 0) if ($('#'+sGroupId).length > 0)
{ {
@@ -743,12 +743,12 @@ $(function()
// The "Groups" tab is present, refresh it // The "Groups" tab is present, refresh it
if (aGroups.length == 0) if (aGroups.length == 0)
{ {
this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabWidget").disable(2); this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabsWidget").disable(2);
$('#impacted_groups').html(''); $('#impacted_groups').html('');
} }
else else
{ {
this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabWidget").enable(2); this.element.closest('[data-role="ibo-tab-container"]').tab_container("GetTabsWidget").enable(2);
$('#impacted_groups').block({message:this.options.labels.loading}); $('#impacted_groups').block({message:this.options.labels.loading});
var sUrl = GetAbsoluteUrlAppRoot()+'pages/ajax.render.php'; var sUrl = GetAbsoluteUrlAppRoot()+'pages/ajax.render.php';
$.post(sUrl, { operation: 'relation_groups', groups: aGroups }, function(data) { $.post(sUrl, { operation: 'relation_groups', groups: aGroups }, function(data) {