From b671b160f38e249bf35a1cffd186fcf69a21de92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 10 Dec 2013 16:26:51 +0100 Subject: [PATCH] =?utf8?q?jquery.checkall=20f=C3=BCr=20Mahnungen=20inverti?= =?utf8?q?ert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/jquery.checkall.js | 4 ++-- templates/webpages/dunning/show_dunning_bottom.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/jquery.checkall.js b/js/jquery.checkall.js index cef64ef8b..00798d8f3 100644 --- a/js/jquery.checkall.js +++ b/js/jquery.checkall.js @@ -7,11 +7,11 @@ ;(function($) { $.fn.extend({ - checkall: function(target, property) { + checkall: function(target, property, inverted) { if (property == null) property = 'checked'; return $(this).click(function() { - $(target).prop(property, $(this).prop('checked')); + $(target).prop(property, inverted ? !$(this).prop('checked') : $(this).prop('checked')); }); } }); diff --git a/templates/webpages/dunning/show_dunning_bottom.html b/templates/webpages/dunning/show_dunning_bottom.html index e7cad6fcf..f0b225e64 100644 --- a/templates/webpages/dunning/show_dunning_bottom.html +++ b/templates/webpages/dunning/show_dunning_bottom.html @@ -17,7 +17,7 @@ -- 2.20.1