Use double quotes for strings passed via templates to javascript. Some translated strings have unescaped single quotes.
This commit is contained in:
parent
51c610de73
commit
fbb357ac47
@ -377,7 +377,7 @@ function enableOnUser(){
|
|||||||
$.post("embedphotos/album", {name: album},
|
$.post("embedphotos/album", {name: album},
|
||||||
function(data) {
|
function(data) {
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
$('#embedPhotoModalLabel').html('{{$modalchooseimages}}');
|
$('#embedPhotoModalLabel').html("{{$modalchooseimages}}");
|
||||||
$('#embedPhotoModalBodyAlbumDialog').html('\
|
$('#embedPhotoModalBodyAlbumDialog').html('\
|
||||||
<div><ul class="nav">\n\
|
<div><ul class="nav">\n\
|
||||||
<li><a href="#" onclick="initializeEmbedPhotoDialog();return false;">\n\
|
<li><a href="#" onclick="initializeEmbedPhotoDialog();return false;">\n\
|
||||||
@ -405,7 +405,7 @@ function enableOnUser(){
|
|||||||
if (ddata['status']) {
|
if (ddata['status']) {
|
||||||
addeditortext(ddata['photolink']);
|
addeditortext(ddata['photolink']);
|
||||||
} else {
|
} else {
|
||||||
window.console.log('{{$modalerrorlink}}' + ':' + ddata['errormsg']);
|
window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -416,7 +416,7 @@ function enableOnUser(){
|
|||||||
$('#embedPhotoModal').modal('hide');
|
$('#embedPhotoModal').modal('hide');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
window.console.log('{{$modalerroralbum}} ' + JSON.stringify(album) + ':' + data['errormsg']);
|
window.console.log("{{$modalerroralbum}} " + JSON.stringify(album) + ':' + data['errormsg']);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -428,7 +428,7 @@ function enableOnUser(){
|
|||||||
function(data) {
|
function(data) {
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
var albums = data['albumlist']; //JSON.parse(data['albumlist']);
|
var albums = data['albumlist']; //JSON.parse(data['albumlist']);
|
||||||
$('#embedPhotoModalLabel').html('{{$modalchoosealbum}}');
|
$('#embedPhotoModalLabel').html("{{$modalchoosealbum}}");
|
||||||
$('#embedPhotoModalBodyAlbumList').html('<ul class="nav"></ul>');
|
$('#embedPhotoModalBodyAlbumList').html('<ul class="nav"></ul>');
|
||||||
for(var i=0; i<albums.length; i++) {
|
for(var i=0; i<albums.length; i++) {
|
||||||
var albumName = albums[i].text;
|
var albumName = albums[i].text;
|
||||||
@ -440,7 +440,7 @@ function enableOnUser(){
|
|||||||
$('#embedPhotoModalBodyAlbumDialog').addClass('hide');
|
$('#embedPhotoModalBodyAlbumDialog').addClass('hide');
|
||||||
$('#embedPhotoModalBodyAlbumListDialog').removeClass('hide');
|
$('#embedPhotoModalBodyAlbumListDialog').removeClass('hide');
|
||||||
} else {
|
} else {
|
||||||
window.console.log('{{$modalerrorlist}}' + ':' + data['errormsg']);
|
window.console.log("{{$modalerrorlist}}" + ':' + data['errormsg']);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user