Commit 3cfbdd4f authored by hujun's avatar hujun

选中

parent 822f5427
......@@ -55,9 +55,10 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
$ (document).delegate (".genj_ure", "click", function () {
user.user_id = $ (this).attr ("data-id");
// $("input[name = 'user_status']:checked").attr("checked",false);
$("#genj_text").val('');
$("input[name = 'user_status']:checked").removeAttr("checked");
$("input[name = 'user_status']:checked").attr("checked",true);
// $("input[name = 'user_status']:checked").attr("checked",true);
user.getGenjinLabel();
});
// ===========================新增客户====================
......@@ -467,7 +468,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
data: {"user_id":user.user_id},
dataType: 'json',
success: function (data) {
if (data.code == 200) {
if (data.code == 200 && data.data != null) {
$("input[type='radio'][name='user_status'][value="+data.data+"]").attr("checked", "checked");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment