details: https://code.openbravo.com/erp/devel/pi/rev/f42fc65bb60d
changeset: 17671:f42fc65bb60d
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Aug 14 20:57:12 2012 +0200
summary: Fixed issue 21359: Added 'MessageBar' to [PNE]
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
| 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 7b368794cbab -r f42fc65bb60d
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
Tue Aug 14 16:54:19 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
Tue Aug 14 20:57:12 2012 +0200
@@ -54,9 +54,16 @@
function actionClick() {
if (view.validate()) {
view.doProcess(this._buttonValue);
+ } else {
+ view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null,
OB.I18N.getLabel('OBUIAPP_ErrorInFields'));
}
}
+ this.messageBar = isc.OBMessageBar.create({
+ visibility: 'hidden',
+ view: this
+ });
+
okButton = isc.OBFormButton.create({
title: OB.I18N.getLabel('OBUIAPP_Done'),
_buttonValue: 'DONE',
@@ -152,7 +159,7 @@
}
OB.TestRegistry.register('org.openbravo.client.application.process.pickandexecute.button.addnew',
this.addNewButton);
- this.items = [this.viewGrid, isc.HLayout.create({
+ this.items = [this.messageBar, this.viewGrid, isc.HLayout.create({
height: 1,
overflow: 'visible',
align: OB.Styles.Process.PickAndExecute.addNewButtonAlign,
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits