mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
emit a notice if an item was deleted - issue #1691
This commit is contained in:
@@ -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>'),
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
var aStr = {
|
||||
|
||||
'delitem' : "{{$delitem}}",
|
||||
'itemdel' : "{{$itemdel}}",
|
||||
'comment' : "{{$comment}}",
|
||||
'showmore' : "{{$showmore}}",
|
||||
'showfewer' : "{{$showfewer}}",
|
||||
|
||||
Reference in New Issue
Block a user