Created
November 4, 2014 12:05
-
-
Save luniki/bbd6fc8cb1fc26b69ba0 to your computer and use it in GitHub Desktop.
Schnelles Als-gelesen-markieren von Personal Notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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