This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernhard Posselt
committed
Jun 5, 2015
1 parent
80c664f
commit d60492f
Showing
7 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* ownCloud - News | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Bernhard Posselt <[email protected]> | ||
* @copyright Bernhard Posselt 2014 | ||
*/ | ||
|
||
/** | ||
* 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); |