| 
           if (true || data.success || text == "success") {		  | 
        
    
   
 
it seems the code here is written for 2 different result type, similar in other ajax calls such as delete, there is code to expect/handle json result, the default save.php does not though either throwing a error code on failure which is caught or returning a text string if success.
Not sure which is best but maybe should settle on one and standardise ?