From: G. Richardson Date: Fri, 5 Mar 2010 09:29:12 +0000 (+0100) Subject: Merge branch 'master' of ssh://git-grichardson@lx-office.linet-services.de/~/lx-offic... X-Git-Tag: release-2.6.1beta1~25^2 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/61680d91336abb94a24ec74f54ea6852731a949f?hp=e31afd798d6959e0b89510d6419ab66e4578fc8c Merge branch 'master' of ssh://git-grichardson@lx-office.linet-services.de/~/lx-office-erp --- diff --git a/js/jquery.checkall.js b/js/jquery.checkall.js new file mode 100644 index 000000000..4b5304965 --- /dev/null +++ b/js/jquery.checkall.js @@ -0,0 +1,20 @@ +/* + * jQuery SelectAll plugin 1.1 + * + * Copyright (c) 2009 Sven Schöling + */ + +;(function($) { + +$.fn.extend({ + checkall: function(target) { + var saved_this = this; + return $(this).click(function() { + $(target).each(function() { + $(this).attr('checked', $(saved_this).attr('checked')); + }); + }); + } +}); + +})(jQuery);