summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);