summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikaël Ates <mates@entrouvert.com>2014-12-17 11:45:42 (GMT)
committerMikaël Ates <mates@entrouvert.com>2014-12-17 11:45:42 (GMT)
commit37cdace1c1e417fdd9d2bfd6acb890b4e28a6e13 (patch)
treef44603b5d29ced79de1fc3c21cf94abc2f759d81
parent8bec338cb1386b4e29bf2052e4d5f22fe0e0daed (diff)
downloadcalebasse-37cdace1c1e417fdd9d2bfd6acb890b4e28a6e13.zip
calebasse-37cdace1c1e417fdd9d2bfd6acb890b4e28a6e13.tar.gz
calebasse-37cdace1c1e417fdd9d2bfd6acb890b4e28a6e13.tar.bz2
dossiers : allow printing when no query.
-rw-r--r--calebasse/static/js/calebasse.dossiers.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/calebasse/static/js/calebasse.dossiers.js b/calebasse/static/js/calebasse.dossiers.js
index ea54235..4b277a1 100644
--- a/calebasse/static/js/calebasse.dossiers.js
+++ b/calebasse/static/js/calebasse.dossiers.js
@@ -408,7 +408,11 @@ function load_tab8_medical() {
button.attr({disabled: 'disabled'});
button.toggleClass('icon-wip');
$('.pagination').next().remove();
- $.get(window.location + '&all', function(data) {
+ var target = '?all';
+ if (window.location.search) {
+ target = '&all';
+ }
+ $.get(window.location + target, function(data) {
button.toggleClass('icon-wip');
button.removeAttr('disabled');
button.html(title);