From a194c44de94f93202ab61baee93a065e148202f6 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Fri, 25 Nov 2016 19:13:40 +0100 Subject: [PATCH 1/2] 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 From 5068563cf5bc67ab6d6dcc406998fa8ffa651b82 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 25 Nov 2016 19:18:01 +0100 Subject: [PATCH 2/2] small code formatting correction --- view/theme/frio/js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index f7927e46ec..f657ff5f23 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -91,7 +91,7 @@ $(document).ready(function(){ // overwrite Dialog.show from main js to load the filebrowser into a bs modal Dialog.show = function(url, title) { - if (typeof(title)==='undefined') { + if (typeof(title) === 'undefined') { title = ""; }