mirror of https://github.com/abpframework/abp.git
3 changed files with 31 additions and 1 deletions
@ -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…
Reference in new issue