aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-29 07:49:19 +0000
committerMario <mario@mariovavti.com>2021-06-29 07:49:19 +0000
commit652d083766a4a0b11151fe1f196a49da533d6349 (patch)
treef867996d5eb89191c7ef7b5bcae30b25a449300b /view/js/main.js
parent5a474f94e05e16f48a5683e991112455c38fc6cf (diff)
downloadvolse-hubzilla-652d083766a4a0b11151fe1f196a49da533d6349.tar.gz
volse-hubzilla-652d083766a4a0b11151fe1f196a49da533d6349.tar.bz2
volse-hubzilla-652d083766a4a0b11151fe1f196a49da533d6349.zip
implement removing of notifications/preview-messages of deleted items
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 9ab66833c..9ef81b72c 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1274,7 +1274,7 @@ function dopin(id) {
});
}
-function dropItem(url, object) {
+function dropItem(url, object, b64mid) {
var confirm = confirmDelete();
if(confirm) {
var id = url.split('/')[2];
@@ -1286,11 +1286,18 @@ function dropItem(url, object) {
$('body').css('cursor', 'auto');
});
- if($('#wall-item-pinned-' + id).length)
+ if($('#wall-item-pinned-' + id).length) {
$.post('pin/pin', { 'id' : id });
+ }
+
+ if (typeof b64mid !== typeof undefined) {
+ $('[data-b64mid=\'' + b64mid + '\']').fadeOut(function() {
+ this.remove();
+ });
+ }
return true;
- }
+ }
else {
return false;
}