aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-15 17:18:42 -0700
committerredmatrix <git@macgirvin.com>2016-08-15 17:20:29 -0700
commit38de583db025e297ef9d18ce4c01a19865abb52f (patch)
tree0ede912787779430217fb61252199395b4cbba1e /view
parent055ee753021c7977401f6e9c847991515c9c4e3a (diff)
downloadvolse-hubzilla-38de583db025e297ef9d18ce4c01a19865abb52f.tar.gz
volse-hubzilla-38de583db025e297ef9d18ce4c01a19865abb52f.tar.bz2
volse-hubzilla-38de583db025e297ef9d18ce4c01a19865abb52f.zip
Use double quotes for strings passed via templates to javascript. Some translated strings have unescaped single quotes.
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/jot-header.tpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 9de049b58..63691f842 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -398,7 +398,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\
@@ -426,7 +426,7 @@ function enableOnUser(){
if (ddata['status']) {
addeditortext(ddata['photolink']);
} else {
- window.console.log('{{$modalerrorlink}}' + ':' + ddata['errormsg']);
+ window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']);
}
return false;
},
@@ -437,7 +437,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;
},
@@ -449,7 +449,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;
@@ -461,7 +461,7 @@ function enableOnUser(){
$('#embedPhotoModalBodyAlbumDialog').addClass('hide');
$('#embedPhotoModalBodyAlbumListDialog').removeClass('hide');
} else {
- window.console.log('{{$modalerrorlist}}' + ':' + data['errormsg']);
+ window.console.log("{{$modalerrorlist}}" + ':' + data['errormsg']);
}
return false;
},