'$touch_icon' => $touch_icon,
'$block_public' => intval($config->get('system', 'block_public')),
'$stylesheets' => $this->stylesheets,
- '$likeNetError' => $l10n->t('Like not successfull (Network error)'),
- '$dislikeNetError' => $l10n->t('Dislike not successfull (Network error)'),
- '$annonNetError' => $l10n->t('Sharing not successfull (Network error)'),
- '$likeSrvError' => $l10n->t('Like not successfull (Backend error)'),
- '$dislikeSrvError' => $l10n->t('Dislike not successfull (Backend error)'),
- '$annonSrvError' => $l10n->t('Sharing not successfull (Backend error)'),
+ '$likeError' => $l10n->t('Like not successfull'),
+ '$dislikeError' => $l10n->t('Dislike not successfull'),
+ '$announceError' => $l10n->t('Sharing not successfull'),
+ '$srvError' => $l10n->t('Backend error'),
+ '$netError' => $l10n->t('Network error'),
]) . $this->page['htmlhead'];
}
$('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(aActSrvErr[verb], {sticky: false, theme: 'info', life: 5000});
+ $('a[id^=' + verb + '-' + ident.toString() + '] i:first-child').addClass(thumbsClass);
+ $.jGrowl(aActErr[verb] + '<br>(' + aErrType['srvErr'] + ')', {sticky: false, theme: 'info', life: 5000});
}
})
.error(function(data){
$('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(aActNetErr[verb], {sticky: false, theme: 'info', life: 5000});
+ $.jGrowl(aActErr[verb] + '<br>(' + aErrType['netErr'] + ')', {sticky: false, theme: 'info', life: 5000});
});
}
'blockAuthor' : "{{$blockAuthor|escape:'javascript' nofilter}}",
'ignoreAuthor' : "{{$ignoreAuthor|escape:'javascript' nofilter}}",
};
- var aActNetErr = {
- 'like' : "{{$likeNetError}}",
- 'dislike' : "{{$dislikeNetError}}",
- 'announce' : "{{$annonNetError}}",
+ var aActErr = {
+ 'like' : "{{$likeError}}",
+ 'dislike' : "{{$dislikeError}}",
+ 'announce' : "{{$announceError}}",
};
- var aActSrvErr = {
- 'like' : "{{$likeSrvError}}",
- 'dislike' : "{{$dislikeSrvError}}",
- 'announce' : "{{$annonSrvError}}",
+ var aErrType = {
+ 'srvErr' : "{{$srvError}}",
+ 'netErr' : "{{$netError}}",
};
</script>