Skip to content

Instantly share code, notes, and snippets.

@luniki
Created November 4, 2014 12:05
Show Gist options
  • Save luniki/bbd6fc8cb1fc26b69ba0 to your computer and use it in GitHub Desktop.
Save luniki/bbd6fc8cb1fc26b69ba0 to your computer and use it in GitHub Desktop.
Schnelles Als-gelesen-markieren von Personal Notifications
diff --git a/public/assets/javascripts/personal_notifications.js b/public/assets/javascripts/personal_notifications.js
index 09a9777..d709cdb 100644
--- a/public/assets/javascripts/personal_notifications.js
+++ b/public/assets/javascripts/personal_notifications.js
@@ -63,17 +63,13 @@
return false;
},
sendReadInfo: function (id, notification) {
- $.ajax({
- 'url': STUDIP.ABSOLUTE_URI_STUDIP + "dispatch.php/jsupdater/mark_notification_read/" + id,
- 'success': function () {
- if (notification) {
notification.toggle('blind', 'fast', function () {
delete stack[id];
STUDIP.PersonalNotifications.update();
$(this).remove();
});
- }
- }
+ $.ajax({
+ 'url': STUDIP.ABSOLUTE_URI_STUDIP + "dispatch.php/jsupdater/mark_notification_read/" + id
});
},
update: function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment