summaryrefslogtreecommitdiff
path: root/p/scripts/global_view.js
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-19 22:25:49 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-19 22:25:49 +0100
commit4e4b0f717fe0a8378e2b751393a8c19d1ada6eb2 (patch)
tree6b268cfe46eb3eee8ebaddcd1e17067eaca0214f /p/scripts/global_view.js
parent12e0b6b094041fc22937520b3218e4f61915fd50 (diff)
parent79d4893fc792119c390d2f744246df210b74f637 (diff)
Merge remote-tracking branch 'origin/dev' into beta
Diffstat (limited to 'p/scripts/global_view.js')
-rw-r--r--p/scripts/global_view.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/p/scripts/global_view.js b/p/scripts/global_view.js
index 0cdcdd3fa..7105520a6 100644
--- a/p/scripts/global_view.js
+++ b/p/scripts/global_view.js
@@ -24,6 +24,16 @@ function load_panel(link) {
// en en ouvrant une autre ensuite, on se retrouve au même point de scroll
$("#panel").scrollTop(0);
+ $('#panel').on('click', '#nav_menu_read_all > a, #nav_menu_read_all .item > a, #bigMarkAsRead', function () {
+ $.ajax({
+ url: $(this).attr("href"),
+ async: false
+ });
+ //$("#panel .close").first().click();
+ window.location.reload(false);
+ return false;
+ });
+
panel_loading = false;
});
}
@@ -50,11 +60,14 @@ function init_global_view() {
$(".nav_menu #nav_menu_read_all, .nav_menu .toggle_aside").remove();
- init_stream_delegates($("#panel"));
+ init_stream($("#panel"));
}
function init_all_global_view() {
- if (!(window.$ && window.init_stream_delegates)) {
+ if (!(window.$ && window.init_stream)) {
+ if (window.console) {
+ console.log('FreshRSS Global view waiting for JS…');
+ }
window.setTimeout(init_all_global_view, 50); //Wait for all js to be loaded
return;
}