Author: erwan
Date: Wed Jul 28 12:45:04 2010
New Revision: 980038
URL:
http://svn.apache.org/viewvc?rev=980038&view=revLog:
using ajaxSubmitFormUpdateAreas, if the return error message was not in a list format, an error was displayed
Modified:
ofbiz/trunk/framework/images/webapp/images/selectall.js
Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=980038&r1=980037&r2=980038&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Wed Jul 28 12:45:04 2010
@@ -326,7 +326,13 @@ function ajaxSubmitFormUpdateAreas(form,
}
}
$('content-messages').addClassName('errorMessage');
- $('content-messages' ).update(data._ERROR_MESSAGE_LIST_ + " " + data._ERROR_MESSAGE_);
+ if (data._ERROR_MESSAGE_LIST_ != undefined && data._ERROR_MESSAGE_ != undefined) {
+ $('content-messages' ).update(data._ERROR_MESSAGE_LIST_ + " " + data._ERROR_MESSAGE_);
+ } else if (data._ERROR_MESSAGE_LIST_ != undefined) {
+ $('content-messages' ).update(data._ERROR_MESSAGE_LIST_);
+ } else {
+ $('content-messages' ).update(data._ERROR_MESSAGE_);
+ }
new Effect.Appear('content-messages',{duration: 0.5});
}else {
if($('content-messages')) {