Hello, guys! Would You comment that mysterious part of code?
// Something bad happened. error: function(
In fact all application's SAVE_NOTE errors goes in section success: function(
But what case will use error: function( ? I just guess that it's useless part of code...
BTW global error handling function doesnt catch pl-sql exceptions from ajax calls ((