From a194c44de94f93202ab61baee93a065e148202f6 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Fri, 25 Nov 2016 19:13:40 +0100 Subject: [PATCH] Frio Bugfix: correct wrong use of default arg 'title' in modal.js --- view/theme/frio/js/modal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index 82b1ebdb91..f7927e46ec 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -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 -- 2.39.5