details:   /erp/devel/pi/rev/695c4b4aee08
changeset: 6960:695c4b4aee08
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Apr 08 18:08:45 2010 +0200
summary:   fixed bug 12364: JS messages not working together with modules

diffstat:

 web/js/messages.js |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r f806ff1950f4 -r 695c4b4aee08 web/js/messages.js
--- a/web/js/messages.js        Thu Apr 08 19:54:51 2010 +0530
+++ b/web/js/messages.js        Thu Apr 08 18:08:45 2010 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2009 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2010 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -181,9 +181,14 @@
 }
 
 function getDataBaseMessage(value, responseFunction) {
-  //var paramXMLReq = new Array('field', 'fieldName');
   var paramXMLReq = null;
-  
submitXmlHttpRequestUrl(((responseFunction==null)?messageResponse:responseFunction),
 (getUrl() + "/businessUtility/MessageJS.html?inpvalue=JS" + escape(value)), 
false, paramXMLReq)
+  var msgCode;
+  if (new RegExp("^[0-9]+$").test(value)) {
+    msgCode = "JS" + value;
+  } else {
+       msgCode = value;
+  }
+  
submitXmlHttpRequestUrl(((responseFunction==null)?messageResponse:responseFunction),
 (getUrl() + "/businessUtility/MessageJS.html?inpvalue=" + escape(msgCode)), 
false, paramXMLReq)
 }
 
 function getDataBaseStandardMessage(value, responseFunction) {

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to