]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/modal.js
frio: some css work for help docs
[friendica.git] / view / theme / frio / js / modal.js
index 82b1ebdb919db133baade1a63cf15efc32f9e09e..f657ff5f2314afd450d68718d3f82a9dd539d8b3 100644 (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