|
|
|
@ -307,10 +307,10 @@
|
|
|
|
|
function submitHandler() {
|
|
|
|
|
if ($.validate.form()) {
|
|
|
|
|
var data = $("#form-user-edit").serializeArray();
|
|
|
|
|
var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
|
|
|
|
|
/*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;*/
|
|
|
|
|
var roleIds = $.form.selectCheckeds("role");
|
|
|
|
|
var postIds = $.form.selectSelects("post");
|
|
|
|
|
data.push({"name": "status", "value": status});
|
|
|
|
|
/*data.push({"name": "status", "value": status});*/
|
|
|
|
|
data.push({"name": "roleIds", "value": roleIds});
|
|
|
|
|
data.push({"name": "postIds", "value": postIds});
|
|
|
|
|
$.operate.saveTab(prefix + "/edit", data);
|
|
|
|
|