Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Jun 5, 2015
1 parent 80c664f commit d60492f
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
owncloud-news (5.3.6)
* **Bugfix**: Firefox: Mark article as read if middle click on the title is performed
* **Bugfix**: Firefox: Scroll to top before refresh to prevent accidentally marking articles as read

owncloud-news (5.3.5)
* **Bugfix**: Downgrade Angular from 1.4 to 1.3 due to several regressions
Expand Down
2 changes: 1 addition & 1 deletion appinfo/checksum.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<author>Bernhard Posselt, Alessandro Cosentino, Jan-Christoph Borchardt</author>
<category>multimedia</category>
<licence>AGPL</licence>
<version>5.3.5</version>
<version>5.3.6</version>
<namespace>News</namespace>

<!-- resources -->
Expand Down
16 changes: 16 additions & 0 deletions js/build/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,22 @@ app.service('SettingsResource', ["$http", "BASE_URL", function ($http, BASE_URL)
})(window, document, navigator, 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
Expand Down
4 changes: 2 additions & 2 deletions js/build/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/build/app.min.js.map

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions js/gui/Fixes.js
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);

0 comments on commit d60492f

Please sign in to comment.