From: Sven Schöling Date: Tue, 10 Dec 2013 15:26:51 +0000 (+0100) Subject: jquery.checkall für Mahnungen invertiert X-Git-Tag: release-3.1.0beta1~22^2~98^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b671b160f38e249bf35a1cffd186fcf69a21de92;p=kivitendo-erp.git jquery.checkall für Mahnungen invertiert --- 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 @@