|
|
@@ -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();
|
|
|
|