[advselector] Added an example for resizing 'Add Business Partner' popup
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 03 Jul 2014 20:53:11 +0200
changeset 9 864850730c57
parent 8 f4aa3a10c3dc
child 10 e5f9ca26c46d
[advselector] Added an example for resizing 'Add Business Partner' popup
web/org.openbravo.platform.features/js/OBPF_BPCreation.js
--- a/web/org.openbravo.platform.features/js/OBPF_BPCreation.js	Thu Jul 03 13:12:59 2014 +0200
+++ b/web/org.openbravo.platform.features/js/OBPF_BPCreation.js	Thu Jul 03 20:53:11 2014 +0200
@@ -24,6 +24,9 @@
   if (!processWindow || !processWindow.enteredValues || !processWindow.theForm || !processWindow.theForm.items) {
     return;
   }
+  if (processWindow.parentElement.parentElement.getPrototype().Class === 'OBPopup') {
+    processWindow.parentElement.parentElement.setSize(800, 180);
+  }
   theFormItems = processWindow.theForm.items;
   for (i = 0; i < theFormItems.length; i++) {
     for (j = 0; j < processWindow.enteredValues.length; j++) {