Browse Source

Use `tabID` as a jQuery selector.

pull/16965/head
maliming 3 years ago
parent
commit
cb81063ad8
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 7
      modules/setting-management/src/Volo.Abp.SettingManagement.Web/Pages/SettingManagement/Index.js

7
modules/setting-management/src/Volo.Abp.SettingManagement.Web/Pages/SettingManagement/Index.js

@ -7,7 +7,8 @@
return;
}
var id = _this.data("id")
var id = _this.data("id");
var tabId = id.replace(/\./g, '-');
abp.ui.block({
elm: '#tab-content',
busy: true,
@ -19,8 +20,8 @@
processData: false
}).done(function (response) {
$('#tab-content').children('.tab-pane').removeClass('show').removeClass('active');
_this.attr('data-bs-target', '#' + $.escapeSelector(id));
$('#tab-content').append('<div id=' + $.escapeSelector(id) + ' class="tab-pane fade active show">' + response + '</div>');
_this.attr('data-bs-target', '#' + tabId);
$('#tab-content').append('<div id=' + tabId + ' class="tab-pane fade active show">' + response + '</div>');
})
});
}).first().click();

Loading…
Cancel
Save