add jsnotify on error
This commit is contained in:
parent
512cf4e174
commit
b95ad9d847
@ -2628,6 +2628,8 @@ if ($action == 'create') {
|
|||||||
jQuery("#value_unit_ht").val(response.data);
|
jQuery("#value_unit_ht").val(response.data);
|
||||||
jQuery("#value_unit_ht").trigger("change");
|
jQuery("#value_unit_ht").trigger("change");
|
||||||
jQuery("#value_unit").val("");
|
jQuery("#value_unit").val("");
|
||||||
|
} else if(response.response_status == "error" && response.errorMessage != undefined && response.errorMessage.length > 0 ){
|
||||||
|
$.jnotify(response.errorMessage, "error", {timeout: 0, type: "error"},{ remove: function (){} } );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user