mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Load selectpicker only if required.
This commit is contained in:
@@ -50,9 +50,11 @@ function modalbox(e, css, defhref, defcb, defclosecb) {
|
||||
|
||||
$div.modal({show: false});
|
||||
$div.one('shown.bs.modal', function() {
|
||||
$(".selectpicker").selectpicker({
|
||||
container: 'body'
|
||||
});
|
||||
if ($(".selectpicker").length) {
|
||||
$(".selectpicker").selectpicker({
|
||||
container: 'body'
|
||||
});
|
||||
}
|
||||
$(".help").popover({
|
||||
container: "#modalbox",
|
||||
trigger: "hover"
|
||||
|
||||
Reference in New Issue
Block a user