X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=js%2Fjquery.checkall.js;h=00798d8f3053d2a1ed54b9e3c9982c06d40f2401;hb=2daee349a1c5d14ba76f6b9c7716258ac2f42929;hp=cef64ef8bb9ec4097bba2e1ec4bcf65382e93d57;hpb=7ff0d2ab41abd45fa1d45e6401a3f33c1ebddecd;p=kivitendo-erp.git 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')); }); } });