36 lines
No EOL
1.3 KiB
JavaScript
36 lines
No EOL
1.3 KiB
JavaScript
/**
|
|
* Store all the error messages of the application.
|
|
*/
|
|
define({
|
|
"undefined_type": "The type of the Submit Assistant is undefined.\n"
|
|
+ "Must be passed as a parameter in the centralsettings.js.\n"
|
|
+ "Please contact MRC DM.",
|
|
|
|
"API_version": "P4V 2012.1 at least needed.\nPlease contact MRC DM for more informations.\n\n"
|
|
+ "You can disable the Submit Assistant in Edit > Preferences > Applets\n"
|
|
+ "Uncheck \"Allow Perforce applets to run in P4V\"",
|
|
|
|
"warning_jira": " It seems that your Perforce email doesn't match with your JIRA username. "
|
|
+ "Please contact DM to correct it. "
|
|
+ "Then relaunch the Submit Assistant to retry (Reopen or rigth click and refresh).",
|
|
|
|
/**
|
|
* Return the HTML error message for ajax.
|
|
*
|
|
* @param error - object containing the status and the statusText of the error.
|
|
*/
|
|
errorJira: function(error){
|
|
return " " + error.status + " " + error.statusText + ". "
|
|
+ "Relaunch the Submit Assistant to retry (Reopen or rigth click and refresh).";
|
|
},
|
|
|
|
/**
|
|
* Return the error message during validation.
|
|
*
|
|
* @param jqXHR - the XMLHTTPRequest object.
|
|
*/
|
|
validationError: function(jqXHR){
|
|
return jqXHR.status + " " + jqXHR.statusText
|
|
},
|
|
|
|
}); |