diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-06-05 11:46:51 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-06-05 11:46:51 +0200 |
commit | d60492f7261d6af7f7f89b50b9fe669ac626e131 (patch) | |
tree | 0c282493e903ee41b8cf77e8fd5923765ec01b4a /js/build/app.js | |
parent | 80c664f6a75adf27a68ac7db435aba3a178490c2 (diff) |
version bump5.3.7
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js index e7920121b..b5d4ba26b 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2070,6 +2070,22 @@ app.service('SettingsResource', ["$http", "BASE_URL", function ($http, BASE_URL) /** + * This prefills the add feed section if an external link has ?subsribe_to + * filled out + */ +(function (window, document) { + 'use strict'; + + // If F5 is used to reload the page in Firefox, the content will sometimes + // be scrolled back to the position where it was before the reload which + // will cause new articles being marked as read + window.addEventListener('beforeunload', function () { + var content = document.querySelector('#app-content'); + content.scrollTo(0, 0); + }); + +})(window, document); +/** * Code in here acts only as a click shortcut mechanism. That's why its not * being put into a directive since it has to be tested with protractor * anyways and theres no benefit from wiring it into the angular app |