aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-01 13:46:20 -0800
committerzotlabs <mike@macgirvin.com>2017-01-01 13:46:20 -0800
commit1436b075bfbf6a2f4abaddfd9d124153004bc45f (patch)
tree8e0150fce050834dca9777e910b52a6e5849d082 /view/tpl/wiki.tpl
parent7f60ab49b26e619168c886e6e30b2578d4c9b11a (diff)
downloadvolse-hubzilla-1436b075bfbf6a2f4abaddfd9d124153004bc45f.tar.gz
volse-hubzilla-1436b075bfbf6a2f4abaddfd9d124153004bc45f.tar.bz2
volse-hubzilla-1436b075bfbf6a2f4abaddfd9d124153004bc45f.zip
issue #636 - some localised (e.g. Italian) strings have single quotes which throw JS errors when used in single quoted template constructs.
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r--view/tpl/wiki.tpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 1b0b06132..8ad010168 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -368,7 +368,7 @@
$.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\
@@ -402,7 +402,7 @@
$('#editor').val(currentContent + ddata['photolink']);
{{/if}}
} else {
- window.console.log('{{$modalerrorlink}}' + ':' + ddata['errormsg']);
+ window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']);
}
return false;
},
@@ -413,7 +413,7 @@
$('#embedPhotoModal').modal('hide');
});
} else {
- window.console.log('{{$modalerroralbum}} ' + JSON.stringify(album) + ':' + data['errormsg']);
+ window.console.log("{{$modalerroralbum}} " + JSON.stringify(album) + ':' + data['errormsg']);
}
return false;
},
@@ -425,19 +425,19 @@
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;
var albumLink = '<li>';
- albumLink += '<a href="#" onclick="choosePhotoFromAlbum(\'' + albumName + '\');return false;">' + albumName + '</a>';
+ albumLink += '<a href="#" onclick="choosePhotoFromAlbum("' + albumName + '");return false;">' + albumName + '</a>';
albumLink += '</li>';
$('#embedPhotoModalBodyAlbumList').find('ul').append(albumLink);
}
$('#embedPhotoModalBodyAlbumDialog').addClass('hide');
$('#embedPhotoModalBodyAlbumListDialog').removeClass('hide');
} else {
- window.console.log('{{$modalerrorlist}}' + ':' + data['errormsg']);
+ window.console.log("{{$modalerrorlist}}" + ':' + data['errormsg']);
}
return false;
},