details:   /erp/devel/pi/rev/b54c2d74dfd8
changeset: 10786:b54c2d74dfd8
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Fri Feb 18 12:34:59 2011 +0100
summary:   Show the New button if the view is not readonly, not the form.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e64673bdeb0e -r b54c2d74dfd8 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
    Fri Feb 18 12:32:10 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
    Fri Feb 18 12:34:59 2011 +0100
@@ -72,7 +72,7 @@
     updateState: function() {
       var view = this.view, form = view.viewForm;
       if (view.isShowingForm) {
-        this.setDisabled(form.isSaving || form.readOnly || view.singleRecord 
|| !view.hasValidState());
+        this.setDisabled(form.isSaving || view.readOnly || view.singleRecord 
|| !view.hasValidState());
       } else {
         this.setDisabled(view.readOnly || view.singleRecord || 
!view.hasValidState());
       }

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to