add jsnotify on error

This commit is contained in:
jpb 2022-05-30 16:38:09 +02:00
parent 512cf4e174
commit b95ad9d847

View File

@ -2628,6 +2628,8 @@ if ($action == 'create') {
jQuery("#value_unit_ht").val(response.data);
jQuery("#value_unit_ht").trigger("change");
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 (){} } );
}
},