Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function display_kendoui_grid_error(n) {
- if(n.errors)
- if(typeof n.errors=="string")
- alert(n.errors);
- else {
- var t="The following errors have occurred:";
- $.each(n.errors, function(n,i) {
- i.errors && (t+="n", t+=i.errors.join("n"))
- });
- alert(t)
- }
- else
- alert("Error happened")
- }
- alert("Error happened: " + JSON.stringify(n));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement