diff options
author | redmatrix <git@macgirvin.com> | 2016-08-15 17:18:42 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-08-15 17:18:42 -0700 |
commit | 7fc254a81c5648653a03a7a631195d7c5212dcba (patch) | |
tree | 42fcb32a8a9d2e59945a0b6b598c2eaa1712f43c /view | |
parent | 752bb169ed5f45f5825619a1692c0a033b00aa27 (diff) | |
download | volse-hubzilla-7fc254a81c5648653a03a7a631195d7c5212dcba.tar.gz volse-hubzilla-7fc254a81c5648653a03a7a631195d7c5212dcba.tar.bz2 volse-hubzilla-7fc254a81c5648653a03a7a631195d7c5212dcba.zip |
Use double quotes for strings passed via templates to javascript. Some translated strings have unescaped single quotes.
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/jot-header.tpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 3d38df0f0..c63aa053e 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -411,7 +411,7 @@ function enableOnUser(){ $.post("embedphotos/album", {name: album}, function(data) { if (data['status']) { - $('#embedPhotoModalLabel').html('{{$modalchooseimages}}'); + $('#embedPhotoModalLabel').html("{{$modalchooseimages}}"); $('#embedPhotoModalBodyAlbumDialog').html('\ <div><ul class="nav">\n\ <li><a href="#" onclick="initializeEmbedPhotoDialog();return false;">\n\ @@ -439,7 +439,7 @@ function enableOnUser(){ if (ddata['status']) { addeditortext(ddata['photolink']); } else { - window.console.log('{{$modalerrorlink}}' + ':' + ddata['errormsg']); + window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']); } return false; }, @@ -450,7 +450,7 @@ function enableOnUser(){ $('#embedPhotoModal').modal('hide'); }); } else { - window.console.log('{{$modalerroralbum}} ' + JSON.stringify(album) + ':' + data['errormsg']); + window.console.log("{{$modalerroralbum}} " + JSON.stringify(album) + ':' + data['errormsg']); } return false; }, @@ -462,7 +462,7 @@ function enableOnUser(){ function(data) { if (data['status']) { var albums = data['albumlist']; //JSON.parse(data['albumlist']); - $('#embedPhotoModalLabel').html('{{$modalchoosealbum}}'); + $('#embedPhotoModalLabel').html("{{$modalchoosealbum}}"); $('#embedPhotoModalBodyAlbumList').html('<ul class="nav"></ul>'); for(var i=0; i<albums.length; i++) { var albumName = albums[i].text; @@ -474,7 +474,7 @@ function enableOnUser(){ $('#embedPhotoModalBodyAlbumDialog').addClass('hide'); $('#embedPhotoModalBodyAlbumListDialog').removeClass('hide'); } else { - window.console.log('{{$modalerrorlist}}' + ':' + data['errormsg']); + window.console.log("{{$modalerrorlist}}" + ':' + data['errormsg']); } return false; }, |