diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 566df6494..e72ac94db 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -892,11 +892,10 @@ $(document).ready(function () { function printDocumentChooserJs($formName) { /* {{{ */ ?> -modalDocChooser = $('#docChooser'); function documentSelected(id, name) { $('#docid').val(id); $('#choosedocsearch').val(name); - modalDocChooser.modal('hide'); + $('#docChooser').modal('hide'); } function folderSelected(id, name) { } @@ -938,11 +937,10 @@ function folderSelected(id, name) { function printFolderChooserJs($formName) { /* {{{ */ ?> -modalFolderChooser = $('#folderChooser'); function folderSelected(id, name) { $('#targetid').val(id); $('#choosefoldersearch').val(name); - modalFolderChooser.modal('hide'); + $('#folderChooser').modal('hide'); }