Frio Bugfix: correct wrong use of default arg 'title' in modal.js

pull/2974/head
rabuzarus 2016-11-25 19:13:40 +01:00
parent 7729e6cfb4
commit a194c44de9
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ $(document).ready(function(){
});
// overwrite Dialog.show from main js to load the filebrowser into a bs modal
Dialog.show = function(url, title="") {
Dialog.show = function(url, title) {
if (typeof(title)==='undefined') {
title = "";
}
var modal = $('#modal').modal();
modal.find("#modal-header h4").html(title);
modal