make erromessages translateable
This commit is contained in:
parent
7daecf6741
commit
9140914a24
3 changed files with 18 additions and 2 deletions
|
@ -851,7 +851,7 @@ function doActivityItemAction(ident, verb, un) {
|
|||
$('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child').addClass('fa-share');
|
||||
$('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').addClass(thumbsClass);
|
||||
$('a[id^=' + verb + '-' + ident.toString() + '] i:first-child').addClass(thumbsClass);
|
||||
$.jGrowl(verb + ' not successful (server error)', {sticky: false, theme: 'info', life: 5000});
|
||||
$.jGrowl(aActSrvErr[verb], {sticky: false, theme: 'info', life: 5000});
|
||||
}
|
||||
})
|
||||
.error(function(data){
|
||||
|
@ -860,7 +860,7 @@ function doActivityItemAction(ident, verb, un) {
|
|||
$('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child').addClass('fa-share');
|
||||
$('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').addClass(thumbsClass);
|
||||
$('a[id^=' + verb + '-' + ident.toString() + '] i:first-child').addClass(thumbsClass);
|
||||
$.jGrowl(verb + ' not successful (network error)', {sticky: false, theme: 'info', life: 5000});
|
||||
$.jGrowl(aActNetErr[verb], {sticky: false, theme: 'info', life: 5000});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -10,4 +10,14 @@ They are loaded into the html <head> so that js functions can use them *}}
|
|||
'blockAuthor' : "{{$blockAuthor|escape:'javascript' nofilter}}",
|
||||
'ignoreAuthor' : "{{$ignoreAuthor|escape:'javascript' nofilter}}",
|
||||
};
|
||||
var aActNetErr = {
|
||||
'like' : "{{$likeNetError}}",
|
||||
'dislike' : "{{$dislikeNetError}}",
|
||||
'announce' : "{{$annonNetError}}",
|
||||
};
|
||||
var aActSrvErr = {
|
||||
'like' : "{{$likeSrvError}}",
|
||||
'dislike' : "{{$dislikeSrvError}}",
|
||||
'announce' : "{{$annonSrvError}}",
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue