Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function display_kendoui_grid_error(n) {
  2. if(n.errors)
  3. if(typeof n.errors=="string")
  4. alert(n.errors);
  5. else {
  6. var t="The following errors have occurred:";
  7. $.each(n.errors, function(n,i) {
  8. i.errors && (t+="n", t+=i.errors.join("n"))
  9. });
  10. alert(t)
  11. }
  12. else
  13. alert("Error happened")
  14. }
  15.  
  16. alert("Error happened: " + JSON.stringify(n));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement