details: https://code.openbravo.com/erp/devel/pi/rev/886516419df1 changeset: 13469:886516419df1 user: Martin Taal <martin.taal <at> openbravo.com> date: Mon Aug 08 22:59:07 2011 +0200 summary: Align the picker buttons directly to the field, set the hspace to 0
details: https://code.openbravo.com/erp/devel/pi/rev/b1790cae9e63 changeset: 13470:b1790cae9e63 user: Martin Taal <martin.taal <at> openbravo.com> date: Mon Aug 08 22:59:25 2011 +0200 summary: Prevent undefined error when unloading a view/closing a tab diffstat: modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js | 2 ++ modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diffs (30 lines): diff -r 28b4d78a0c2a -r b1790cae9e63 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/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js Mon Aug 08 22:44:42 2011 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js Mon Aug 08 22:59:25 2011 +0200 @@ -140,6 +140,8 @@ pickerIconHeight: 21, pickerIconWidth: 21, height: 21, + // align the button directly to the field + pickerIconHspace: 0, pickerIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/search_picker.png', clearIcon: { showHover: true, diff -r 28b4d78a0c2a -r b1790cae9e63 modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js --- a/modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js Mon Aug 08 22:44:42 2011 +0200 +++ b/modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js Mon Aug 08 22:59:25 2011 +0200 @@ -117,8 +117,12 @@ if (this.viewMode === 'widget') { this.setWidgetHeight(); } - this.grid.invalidateCache(); - this.grid.filterData(); + // sometimes when removing the form, this gets called + // at that point this.grid is not set anymore + if (this.grid) { + this.grid.invalidateCache(); + this.grid.filterData(); + } }, exportGrid: function () { ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
