projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo in GuV Gruppenüberschrift
[kivitendo-erp.git]
/
js
/
jquery.checkall.js
diff --git
a/js/jquery.checkall.js
b/js/jquery.checkall.js
index
4b53049
..
00798d8
100644
(file)
--- a/
js/jquery.checkall.js
+++ b/
js/jquery.checkall.js
@@
-7,12
+7,11
@@
;(function($) {
$.fn.extend({
;(function($) {
$.fn.extend({
- checkall: function(target) {
- var saved_this = this;
+ checkall: function(target, property, inverted) {
+ if (property == null)
+ property = 'checked';
return $(this).click(function() {
return $(this).click(function() {
- $(target).each(function() {
- $(this).attr('checked', $(saved_this).attr('checked'));
- });
+ $(target).prop(property, inverted ? !$(this).prop('checked') : $(this).prop('checked'));
});
}
});
});
}
});