details: https://code.openbravo.com/erp/devel/pi/rev/2ad48c10e4ea changeset: 28085:2ad48c10e4ea user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Wed Dec 02 10:00:19 2015 +0100 summary: related to issue 27240: improvements in new method
make the method available for all parameters, this way it can be used in general. The handleItemChange() will only be executed if the parameter has an On Change Function diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js | 14 ++++----- 1 files changed, 6 insertions(+), 8 deletions(-) diffs (24 lines): diff -r 0a811f99d7f8 -r 2ad48c10e4ea modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js Wed Dec 02 09:27:26 2015 +0100 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js Wed Dec 02 10:00:19 2015 +0100 @@ -38,14 +38,12 @@ setItems: function (itemList) { itemList.forEach(function (item) { - if (item.onChangeFunction) { - item.setValueAndHandleItemChange = function () { - this.Super('setValue', arguments); - if (this.view && this.view.theForm) { - this.view.theForm.handleItemChange(item); - } - }; - } + item.setValueProgrammatically = function () { + this.Super('setValue', arguments); + if (this.onChangeFunction && this.view && this.view.theForm) { + this.view.theForm.handleItemChange(item); + } + }; }); this.Super('setItems', arguments); }, ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits