From bbf58b83669d3f7eaa59038bd24b6481458fb55d Mon Sep 17 00:00:00 2001 From: fxiao Date: Wed, 20 Nov 2013 12:50:48 +0800 Subject: [PATCH] [fixes #84] Checkbox is not real-time editing --- xadmin/static/xadmin/js/xadmin.plugin.editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xadmin/static/xadmin/js/xadmin.plugin.editable.js b/xadmin/static/xadmin/js/xadmin.plugin.editable.js index 293ae768c..159df7f7a 100644 --- a/xadmin/static/xadmin/js/xadmin.plugin.editable.js +++ b/xadmin/static/xadmin/js/xadmin.plugin.editable.js @@ -156,7 +156,7 @@ var off_check_box = Object(); this.$form.find('input[type=checkbox]').each(function(){ - if(!$(this).attr('checked')){ + if(!$(this).is(':checked')){ off_check_box[$(this).attr('name')] = '' } })