details: https://code.openbravo.com/erp/devel/pi/rev/cb1482747770 changeset: 13771:cb1482747770 user: Martin Taal <martin.taal <at> openbravo.com> date: Tue Sep 13 14:21:37 2011 +0200 summary: Robustness, prevent jscript error when unloading app
details: https://code.openbravo.com/erp/devel/pi/rev/bb6c8650777a changeset: 13772:bb6c8650777a user: Martin Taal <martin.taal <at> openbravo.com> date: Tue Sep 13 14:21:51 2011 +0200 summary: Solve failing jenkins tests diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js | 1 + modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diffs (25 lines): diff -r a5546358a8a2 -r bb6c8650777a modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js Tue Sep 13 13:38:19 2011 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js Tue Sep 13 14:21:51 2011 +0200 @@ -23,6 +23,7 @@ isc.OBYesNoItem.addProperties({ operator: 'equals', + mapValueToDisplay: function(value, a, b, c){ return OB.Utilities.getYesNoDisplayValue(value); }, diff -r a5546358a8a2 -r bb6c8650777a modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js --- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js Tue Sep 13 13:38:19 2011 +0200 +++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js Tue Sep 13 14:21:51 2011 +0200 @@ -74,7 +74,9 @@ toDestroy = [toDestroy]; } for (i = 0; i < toDestroy.length; i++) { - toDestroy[i].destroy(); + if (toDestroy[i] && toDestroy[i].destroy) { + toDestroy[i].destroy(); + } } this.removeMembers(toDestroy); } ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
