mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Rename method for consistency across the widget
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user