mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Merge pull request #2974 from rabuzarus/2511_frio_fix_default_js_arg
Frio Bugfix: correct wrong use of default arg 'title' in modal.js
This commit is contained in:
commit
425bd83c8d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue