[imageBLOB] Improved styling of the Image selector popup
authorAntonio Moreno <antonio.moreno@openbravo.com>
Fri, 29 Jul 2011 12:26:54 +0200
changeset 13366 d2e5daf7691b
parent 13365 19135e59b532
child 13367 0951c9cfecef
[imageBLOB] Improved styling of the Image selector popup
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml	Mon Aug 01 16:57:41 2011 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml	Fri Jul 29 12:26:54 2011 +0200
@@ -1406,7 +1406,7 @@
 <!--FF80808131509CDA013150B7DBF30021-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--FF80808131509CDA013150B7DBF30021-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--FF80808131509CDA013150B7DBF30021-->  <VALUE><![CDATA[OBUIAPP_ImageFile]]></VALUE>
-<!--FF80808131509CDA013150B7DBF30021-->  <MSGTEXT><![CDATA[Image File]]></MSGTEXT>
+<!--FF80808131509CDA013150B7DBF30021-->  <MSGTEXT><![CDATA[File]]></MSGTEXT>
 <!--FF80808131509CDA013150B7DBF30021-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
 <!--FF80808131509CDA013150B7DBF30021-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
 <!--FF80808131509CDA013150B7DBF30021--></AD_MESSAGE>
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js	Mon Aug 01 16:57:41 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js	Fri Jul 29 12:26:54 2011 +0200
@@ -266,9 +266,6 @@
   addForm: null,
   showMinimizeButton : false,
   showMaximizeButton : false,
-  height: '40px',
-  width: '200px',
-  align: 'center',
   title: OB.I18N.getLabel('OBUIAPP_ImageSelectorTitle'),
   initWidget: function(args){
     var imageId = this.imageItem.getValue();
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Mon Aug 01 16:57:41 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Fri Jul 29 12:26:54 2011 +0200
@@ -23,6 +23,7 @@
  * 2) OBImageItem
  * 3) SectionItem Button Styles
  * 3) Attachments Styles
+ * 4) Image Popup Styles
  =======================================================================*/
 
 /* =====================================================================
@@ -502,4 +503,15 @@
   height: 30,
   width: 450,
   align: 'center'
-});
\ No newline at end of file
+});
+
+ /* =====================================================================
+  * Image Popup Styles
+  =======================================================================*/
+
+  isc.OBImageSelector.addProperties({
+   hlayoutTopMargin: 10,
+   height: 30,
+   width: 450,
+   align: 'center'
+ });
\ No newline at end of file