projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rose-Models erzeugen: Auth-Objekt erst resetten, wenn Auth-Schema angelegt
[kivitendo-erp.git]
/
js
/
jquery.checkall.js
diff --git
a/js/jquery.checkall.js
b/js/jquery.checkall.js
index
cef64ef
..
5556d7a
100644
(file)
--- a/
js/jquery.checkall.js
+++ b/
js/jquery.checkall.js
@@
-1,17
+1,17
@@
/*
* jQuery SelectAll plugin 1.1
*
/*
* jQuery SelectAll plugin 1.1
*
- * Copyright (c) 2009 Sven Sch
ö
ling
+ * Copyright (c) 2009 Sven Sch
ö
ling
*/
;(function($) {
$.fn.extend({
*/
;(function($) {
$.fn.extend({
- checkall: function(target, property) {
+ checkall: function(target, property
, inverted
) {
if (property == null)
property = 'checked';
return $(this).click(function() {
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'));
});
}
});
});
}
});