added dom-event-handlers

pull/279/head
Halil İbrahim Kalkan 7 years ago
parent d84bf38844
commit 7b7af7bc16

@ -44,7 +44,8 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared
"/libs/abp/jquery/abp.ajax.js",
"/libs/abp/jquery/abp.resource-loader.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/jquery/jquery-extensions.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/bootstrap/abp.modal-manager.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/bootstrap/dom-event-handlers.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/bootstrap/modal-manager.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables-extensions.js"
});
});

@ -0,0 +1,29 @@
(function() {
abp.dom.onNodeAdded(function (args) {
args.$el.findWithSelf('[data-toggle="tooltip"]').tooltip({
container: 'body'
});
args.$el.findWithSelf('[data-toggle="popover"]').popover({
container: 'body'
});
});
abp.dom.onNodeRemoved(function (args) {
args.$el.findWithSelf('[data-toggle="tooltip"]').each(function () {
$('#' + $(this).attr('aria-describedby')).remove();
});
});
$(function () {
$('[data-toggle="tooltip"]').tooltip({
container: 'body'
});
$('[data-toggle="popover"]').popover({
container: 'body'
});
});
})();
Loading…
Cancel
Save