diff options
| author | 2012-10-28 13:20:29 +0100 | |
|---|---|---|
| committer | 2012-10-28 13:20:29 +0100 | |
| commit | ee981bf5a6653530e840422bbfc31c1bdb18331a (patch) | |
| tree | e70a9f9bca400f07a72a60987149a95529ebce91 /app/views/javascript/main.phtml | |
| parent | b2e8befe266870adc06b0a66e5cb0196a8f47471 (diff) | |
correction bug js sous Chromium
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index c94526885..6e216f598 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -6,7 +6,7 @@ var hide_posts = false; <?php $s = $this->conf->shortcuts (); ?> -function redirect (url, new_tab = false) { +function redirect (url, new_tab) { if (url) { if (new_tab) { window.open (url); @@ -160,7 +160,7 @@ $(document).ready (function () { shortcut.add("shift+<?php echo $s['mark_read']; ?>", function () { // on marque tout comme lu url = $("#top a.read_all").attr ("href"); - redirect (url); + redirect (url, false); }); shortcut.add("<?php echo $s['mark_favorite']; ?>", function () { // on marque comme favori ou non favori @@ -209,19 +209,19 @@ $(document).ready (function () { }); shortcut.add("<?php echo $s['next_page']; ?>", function () { url = $(".pager-next a").attr ("href"); - redirect (url); + redirect (url, false); }); shortcut.add("shift+<?php echo $s['next_page']; ?>", function () { url = $(".pager-last a").attr ("href"); - redirect (url); + redirect (url, false); }); shortcut.add("<?php echo $s['prev_page']; ?>", function () { url = $(".pager-previous a").attr ("href"); - redirect (url); + redirect (url, false); }); shortcut.add("shift+<?php echo $s['prev_page']; ?>", function () { url = $(".pager-first a").attr ("href"); - redirect (url); + redirect (url, false); }); shortcut.add("<?php echo $s['go_website']; ?>", function () { url = $(".post.flux.active h1.title a").attr ("href"); |
