]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Merge branch 'master' of ssh://git-grichardson@lx-office.linet-services.de/~/lx-offic...
authorG. Richardson <information@lx-office-hosting.de>
Fri, 5 Mar 2010 09:29:12 +0000 (10:29 +0100)
committerG. Richardson <information@lx-office-hosting.de>
Fri, 5 Mar 2010 09:29:12 +0000 (10:29 +0100)
js/jquery.checkall.js [new file with mode: 0644]

diff --git a/js/jquery.checkall.js b/js/jquery.checkall.js
new file mode 100644 (file)
index 0000000..4b53049
--- /dev/null
@@ -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);