emit a notice if an item was deleted - issue #1691

This commit is contained in:
Mario
2022-09-22 12:50:11 +00:00
parent f220cf3173
commit 7cfc14fef7
3 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
function js_strings() {
return replace_macros(get_markup_template('js_strings.tpl'), array(
'$delitem' => t('Delete this item?'),
'$itemdel' => t('Item deleted'),
'$comment' => t('Comment'),
'$showmore' => sprintf( t('%s show all'), '<i class=\'fa fa-chevron-down\'></i>'),
'$showfewer' => sprintf( t('%s show less'), '<i class=\'fa fa-chevron-up\'></i>'),

View File

@@ -1284,6 +1284,8 @@ function dropItem(url, object, b64mid) {
$(object + ', #pinned-wrapper-' + id).remove();
$('body').css('cursor', 'auto');
$.jGrowl(aStr.itemdel, { sticky: false, theme: 'notice', life: 3000 });
if (typeof b64mid !== typeof undefined) {
$('[data-b64mid=\'' + b64mid + '\']').fadeOut(function() {
this.remove();

View File

@@ -3,6 +3,7 @@
var aStr = {
'delitem' : "{{$delitem}}",
'itemdel' : "{{$itemdel}}",
'comment' : "{{$comment}}",
'showmore' : "{{$showmore}}",
'showfewer' : "{{$showfewer}}",