details:   /erp/stable/2.50/rev/73653c78459d
changeset: 9417:73653c78459d
user:      Egoitz Castillo <egoitz.castillo <at> openbravo.com>
date:      Tue May 10 13:23:38 2011 +0200
summary:   Fixed Issue 15919. Undo changes on UIDate

diffstat:

 src/org/openbravo/reference/ui/UIDate.java   |  8 ++++++--
 src/org/openbravo/reference/ui/UISearch.java |  6 +++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (59 lines):

diff -r d396d9b2f87f -r 73653c78459d src/org/openbravo/reference/ui/UIDate.java
--- a/src/org/openbravo/reference/ui/UIDate.java        Tue May 10 12:00:45 
2011 +0200
+++ b/src/org/openbravo/reference/ui/UIDate.java        Tue May 10 13:23:38 
2011 +0200
@@ -49,7 +49,7 @@
     strHtml.append("<tr>\n");
     strHtml.append("<td class=\"TextBox_ContentCell\">\n");
     strHtml
-        .append("<input type=\"text\" class=\"dojoValidateValid 
TextBox_btn_OneCell_width\" ");
+        .append("<input dojoType=\"openbravo:DateTextbox\" type=\"text\" 
class=\"TextBox_btn_OneCell_width\" ");
     
strHtml.append("displayFormat=\"").append(vars.getSessionValue("#AD_SqlDateFormat")).append(
         "\" ");
     
strHtml.append("saveFormat=\"").append(vars.getSessionValue("#AD_SqlDateFormat")).append("\"
 ");
@@ -61,6 +61,8 @@
     
strHtml.append("id=\"inpParam").append(FormatUtilities.replace(fields.columnname))
         .append("\" ");
     strHtml.append("onkeyup=\"autoCompleteDate(this.textbox);\"></input> ");
+    
strHtml.append("<script>djConfig.searchIds.push(\"").append("inpParam").append(
+        FormatUtilities.replace(fields.columnname)).append("\") </script>");
     strHtml.append("</td>\n");
     strHtml.append("<td class=\"FieldButton_ContentCell\">");
     strHtml.append(
@@ -100,7 +102,7 @@
     strHtml.append("<tr>\n");
     strHtml.append("<td class=\"TextBox_ContentCell\">\n");
     strHtml
-        .append("<input type=\"text\" class=\"dojoValidateValid 
TextBox_btn_OneCell_width\" ");
+        .append("<input dojoType=\"openbravo:DateTextbox\" type=\"text\" 
class=\"TextBox_btn_OneCell_width\" ");
     
strHtml.append("displayFormat=\"").append(vars.getSessionValue("#AD_SqlDateFormat")).append(
         "\" ");
     
strHtml.append("saveFormat=\"").append(vars.getSessionValue("#AD_SqlDateFormat")).append("\"
 ");
@@ -112,6 +114,8 @@
     
strHtml.append("id=\"inpParam").append(FormatUtilities.replace(fields.columnname)).append(
         "_f\" ");
     strHtml.append("onkeyup=\"autoCompleteDate(this.textbox);\"></input> ");
+    
strHtml.append("<script>djConfig.searchIds.push(\"").append("inpParam").append(
+        FormatUtilities.replace(fields.columnname)).append("_f\") </script>");
     strHtml.append("</td>\n");
     strHtml.append("<td class=\"FieldButton_ContentCell\">");
     strHtml.append(
diff -r d396d9b2f87f -r 73653c78459d 
src/org/openbravo/reference/ui/UISearch.java
--- a/src/org/openbravo/reference/ui/UISearch.java      Tue May 10 12:00:45 
2011 +0200
+++ b/src/org/openbravo/reference/ui/UISearch.java      Tue May 10 13:23:38 
2011 +0200
@@ -60,13 +60,13 @@
       strHtml.append("<td class=\"TextBox_ContentCell\">\n");
       if (Integer.valueOf(fields.fieldlength).intValue() < 
(UIReferenceUtility.MAX_TEXTBOX_LENGTH / 4)) {
         strHtml
-            .append("<input dojoType=\"openbravo:ValidationTextBox\" 
type=\"text\" class=\"TextBox_btn_OneCell_width\" ");
+            .append("<input type=\"text\" class=\"dojoValidateValid 
TextBox_btn_OneCell_width\" ");
       } else if (Integer.valueOf(fields.fieldlength).intValue() < 
(UIReferenceUtility.MAX_TEXTBOX_LENGTH / 2)) {
         strHtml
-            .append("<input dojoType=\"openbravo:ValidationTextBox\" 
type=\"text\" class=\"TextBox_btn_TwoCells_width\" ");
+            .append("<input type=\"text\" class=\"dojoValidateValid 
TextBox_btn_TwoCells_width\" ");
       } else {
         strHtml
-            .append("<input dojoType=\"openbravo:ValidationTextBox\" 
type=\"text\" class=\"TextBox_btn_ThreeCells_width\" ");
+            .append("<input type=\"text\" class=\"dojoValidateValid 
TextBox_btn_ThreeCells_width\" ");
       }
       
strHtml.append("name=\"inpParam").append(FormatUtilities.replace(fields.columnname)).append(
           "_DES\" ");

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to