diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-22 10:45:09 +0300 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-22 10:45:09 +0300 |
commit | c2cf7075c24c1539befd4ba09881eed761c9d769 (patch) | |
tree | 7e00deb3d973146a95976072523c9a206b6b079b /inc/poche/Poche.class.php | |
parent | bfe1ad6dbc9dc10997d5325da9186ba2a9f5ebfe (diff) | |
download | wallabag-c2cf7075c24c1539befd4ba09881eed761c9d769.tar.gz wallabag-c2cf7075c24c1539befd4ba09881eed761c9d769.tar.zst wallabag-c2cf7075c24c1539befd4ba09881eed761c9d769.zip |
print view fixed in baggy; print link added; read percent added in default theme; archive and favorite re-factored to be ajax action in article view
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 811895dc..dcfdc167 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -434,12 +434,24 @@ class Poche | |||
434 | case 'toggle_fav' : | 434 | case 'toggle_fav' : |
435 | $this->store->favoriteById($id, $this->user->getId()); | 435 | $this->store->favoriteById($id, $this->user->getId()); |
436 | Tools::logm('mark as favorite link #' . $id); | 436 | Tools::logm('mark as favorite link #' . $id); |
437 | Tools::redirect(); | 437 | if ( Tools::isAjaxRequest() ) { |
438 | echo 1; | ||
439 | exit; | ||
440 | } | ||
441 | else { | ||
442 | Tools::redirect(); | ||
443 | } | ||
438 | break; | 444 | break; |
439 | case 'toggle_archive' : | 445 | case 'toggle_archive' : |
440 | $this->store->archiveById($id, $this->user->getId()); | 446 | $this->store->archiveById($id, $this->user->getId()); |
441 | Tools::logm('archive link #' . $id); | 447 | Tools::logm('archive link #' . $id); |
442 | Tools::redirect(); | 448 | if ( Tools::isAjaxRequest() ) { |
449 | echo 1; | ||
450 | exit; | ||
451 | } | ||
452 | else { | ||
453 | Tools::redirect(); | ||
454 | } | ||
443 | break; | 455 | break; |
444 | case 'archive_all' : | 456 | case 'archive_all' : |
445 | $this->store->archiveAll($this->user->getId()); | 457 | $this->store->archiveAll($this->user->getId()); |