X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fjquery.checkall.js;h=5556d7ad77693aee0ec80d9feb79ff9f62c387fd;hb=2bc2e21bb970197e0b4151d19648e7bb5ce21b18;hp=cef64ef8bb9ec4097bba2e1ec4bcf65382e93d57;hpb=87e65e6c1cc64bfb2d73b6914ed2ef136861dd42;p=kivitendo-erp.git diff --git a/js/jquery.checkall.js b/js/jquery.checkall.js index cef64ef8b..5556d7ad7 100644 --- a/js/jquery.checkall.js +++ b/js/jquery.checkall.js @@ -1,17 +1,17 @@ /* * jQuery SelectAll plugin 1.1 * - * Copyright (c) 2009 Sven Schöling + * Copyright (c) 2009 Sven Schöling */ ;(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')); }); } });