diff options
| author | 2014-10-31 16:43:05 +0100 | |
|---|---|---|
| committer | 2014-10-31 16:43:05 +0100 | |
| commit | 724e13f0a6419b046b33da71e66058e279551edd (patch) | |
| tree | 166f7e759c6e4826d370206097f69bd1b3724735 /p/scripts | |
| parent | d9c56fb6f76a0a79ec193188e7416d624944c8f3 (diff) | |
Fix global view mark as read
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/global_view.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/p/scripts/global_view.js b/p/scripts/global_view.js index 14909f44e..7d7ba22b5 100644 --- a/p/scripts/global_view.js +++ b/p/scripts/global_view.js @@ -24,12 +24,13 @@ 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 () { + $('#panel').on('click', '#nav_menu_read_all button, #bigMarkAsRead', function () { + console.log($(this).attr("formaction")); $.ajax({ - url: $(this).attr("href"), + type: "POST", + url: $(this).attr("formaction"), async: false }); - //$("#panel .close").first().click(); window.location.reload(false); return false; }); @@ -39,9 +40,8 @@ function load_panel(link) { } function init_close_panel() { - $("#panel .close").click(function () { - $("#panel").html('<a class="close" href="#">' + icons['close'] + '</a>'); - init_close_panel(); + $("#overlay .close").click(function () { + $("#panel").html(''); $("#panel").slideToggle(); $("#overlay").fadeOut(); |
