7 Commits

Author SHA1 Message Date
90883eddb9 xhrErrorResponseMessage: nice message when unable to connect 2018-01-05 15:23:43 +01:00
46612a9f68 JavaScript function for getting reasonable error message from an XHR response 2017-12-22 16:25:39 +01:00
8fe6b472e4 Notifications: Fix and documentation
Fixed notification-toggle not working because we were accessing
the selectors before they were available in the DOM.

Now use the ID selector directly, re-use when possible.

Also added comments describing obscure variables.
2017-10-05 15:29:30 +02:00
68c7a88fed Use the nifty new DocumentTitleAPI to update notification count
and page titles when browsing assets.

This removes the need for updateTitle()
2017-10-05 15:29:30 +02:00
Pablo Vazquez
389413ab8a Notifications: Define selectors once and re-use
Plus some comments and simplifying the switch/adding of icons
by just adding a css class that controls it.

No functional changes
2017-10-04 00:39:00 +02:00
b0c7997128 Notifications: Don't update titles directly, fire an event instead 2017-10-02 19:49:20 +02:00
a9c506c290 Set Toastr defaults 2017-06-07 21:10:10 +02:00