summaryrefslogtreecommitdiffstats
path: root/slick.editors.js
diff options
context:
space:
mode:
authorjbthoma <josh_thoma@hotmail.com>2013-08-07 08:01:08 -0500
committerjbthoma <josh_thoma@hotmail.com>2013-08-07 08:01:08 -0500
commit9c4498d2fa274f95ffa8c3f7b32048aafc5bbe06 (patch)
tree43a6a86cd041a793a832c0a14bb76f7a72ef10bc /slick.editors.js
parentb96dea6840d2da1e68728bbf649279946f7ce467 (diff)
downloadSlickGrid-9c4498d2fa274f95ffa8c3f7b32048aafc5bbe06.zip
SlickGrid-9c4498d2fa274f95ffa8c3f7b32048aafc5bbe06.tar.gz
SlickGrid-9c4498d2fa274f95ffa8c3f7b32048aafc5bbe06.tar.bz2
Update slick.editors.js
Jquery 1.6+ requires use of prop instead of attr to manipulate checked state.
Diffstat (limited to 'slick.editors.js')
-rw-r--r--slick.editors.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/slick.editors.js b/slick.editors.js
index f3ef8e9..a01d74d 100644
--- a/slick.editors.js
+++ b/slick.editors.js
@@ -304,14 +304,14 @@
this.loadValue = function (item) {
defaultValue = !!item[args.column.field];
if (defaultValue) {
- $select.attr("checked", "checked");
+ $select.prop('checked', true);
} else {
- $select.removeAttr("checked");
+ $select.prop('checked', false);
}
};
this.serializeValue = function () {
- return !!$select.attr("checked");
+ return !!$select.prop('checked');
};
this.applyValue = function (item, state) {