details:   /erp/devel/pi/rev/7560b0c460e1
changeset: 12220:7560b0c460e1
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed May 18 12:22:47 2011 +0200
summary:   Solved line delimiter back to linux

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-clone-order.js
     |   102 +-
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
         |  2912 +++++-----
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
 |   709 +-
 3 files changed, 1865 insertions(+), 1858 deletions(-)

diffs (truncated from 3737 to 300 lines):

diff -r 2db81cdadbeb -r 7560b0c460e1 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-clone-order.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-clone-order.js
        Wed May 18 12:17:29 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-clone-order.js
        Wed May 18 12:22:47 2011 +0200
@@ -1,51 +1,51 @@
-/*
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License.
- * The Original Code is Openbravo ERP.
- * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):   Sreedhar Sirigiri (TDS), Mallikarjun M (TDS)
- ************************************************************************
- */
-
-// Registers a button to clone an order
-
-// put within a function to hide local vars etc.
-(function () {
-  var cloneButtonProps = isc.addProperties({}, 
isc.OBToolbar.CLONE_BUTTON_PROPERTIES);
-  cloneButtonProps.action = function (){
-    var view = this.view;
-    var callback = function(ok){
-      if (ok) {
-        requestParams = {
-            orderId:view.viewGrid.getSelectedRecord().id
-        };
-        
OB.RemoteCallManager.call('org.openbravo.client.application.businesslogic.ClonePropertyActionHandler',
 {}, 
-            requestParams, function(rpcResponse, data, rpcRequest) {
-
-              var recordIndex = 
view.viewGrid.getRecordIndex(view.viewGrid.getSelectedRecord()) + 1;
-              view.viewGrid.data.insertCacheData(data, recordIndex);
-              view.viewGrid.scrollToRow(recordIndex);
-              view.viewGrid.markForRedraw();
-              var visibleRows = view.viewGrid.body.getVisibleRows();
-              view.editRecord(view.viewGrid.getRecord(recordIndex), false);
-            }
-        );
-      }
-    };
-    isc.ask(OB.I18N.getLabel('OBUIAPP_WantToCloneOrder'), callback);
-  };
-  
-  // register the button for the sales order tab
-  OB.ToolbarRegistry.registerButton(cloneButtonProps.buttonType, 
isc.OBToolbarIconButton, cloneButtonProps, 100, '186');
-    
-}());
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):   Sreedhar Sirigiri (TDS), Mallikarjun M (TDS)
+ ************************************************************************
+ */
+
+// Registers a button to clone an order
+
+// put within a function to hide local vars etc.
+(function () {
+  var cloneButtonProps = isc.addProperties({}, 
isc.OBToolbar.CLONE_BUTTON_PROPERTIES);
+  cloneButtonProps.action = function (){
+    var view = this.view;
+    var callback = function(ok){
+      if (ok) {
+        requestParams = {
+            orderId:view.viewGrid.getSelectedRecord().id
+        };
+        
OB.RemoteCallManager.call('org.openbravo.client.application.businesslogic.ClonePropertyActionHandler',
 {}, 
+            requestParams, function(rpcResponse, data, rpcRequest) {
+
+              var recordIndex = 
view.viewGrid.getRecordIndex(view.viewGrid.getSelectedRecord()) + 1;
+              view.viewGrid.data.insertCacheData(data, recordIndex);
+              view.viewGrid.scrollToRow(recordIndex);
+              view.viewGrid.markForRedraw();
+              var visibleRows = view.viewGrid.body.getVisibleRows();
+              view.editRecord(view.viewGrid.getRecord(recordIndex), false);
+            }
+        );
+      }
+    };
+    isc.ask(OB.I18N.getLabel('OBUIAPP_WantToCloneOrder'), callback);
+  };
+  
+  // register the button for the sales order tab
+  OB.ToolbarRegistry.registerButton(cloneButtonProps.buttonType, 
isc.OBToolbarIconButton, cloneButtonProps, 100, '186');
+    
+}());
diff -r 2db81cdadbeb -r 7560b0c460e1 
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
    Wed May 18 12:17:29 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
    Wed May 18 12:22:47 2011 +0200
@@ -1,1456 +1,1456 @@
-/*
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License.
- * The Original Code is Openbravo ERP.
- * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):   Sreedhar Sirigiri (TDS), Mallikarjun M (TDS)
- ************************************************************************
- */
-isc.ClassFactory.defineClass('OBToolbar', isc.ToolStrip);
-
-isc.OBToolbar.addClassProperties({
-  TYPE_SAVE: 'save',
-  TYPE_NEW_ROW: 'newRow',
-  TYPE_NEW_DOC: 'newDoc',
-  TYPE_DELETE: 'eliminate',
-  TYPE_UNDO: 'undo',
-  TYPE_REFRESH: 'refresh',
-  TYPE_EXPORT: 'export',
-  TYPE_ATTACHMENTS: 'attach',
-  TYPE_CLONE: 'clone',
-  
-  SAVE_BUTTON_PROPERTIES: {
-    action: function(){
-      this.view.saveRow();
-    },
-    disabled: true,
-    buttonType: 'save',
-    prompt: OB.I18N.getLabel('OBUIAPP_SaveRow'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm, hasErrors = false, editRow;
-      if (view.isShowingForm) {
-        this.setDisabled(!form.isNew &&
-        (form.isSaving || form.readOnly ||
-        !view.hasValidState() ||
-        !form.hasChanged));
-      } else if (view.isEditingGrid) {
-        form = view.viewGrid.getEditForm();
-        editRow = view.viewGrid.getEditRow();
-        hasErrors = view.viewGrid.rowHasErrors(editRow);
-        this.setDisabled(!form.isNew && !hasErrors &&
-        (form.isSaving || form.readOnly ||
-        !view.hasValidState() ||
-        !form.hasChanged));
-      } else {
-        this.setDisabled(true);
-      }
-    },
-    keyboardShortcutId: 'ToolBar_Save'
-  },
-  SAVECLOSE_BUTTON_PROPERTIES: {
-    action: function(){
-      var actionObject = {
-        target: this,
-        method: this.saveAndClose,
-        parameters: []
-      };
-      this.view.standardWindow.doActionAfterAutoSave(actionObject, true, 
true);      
-    },
-    
-    saveAndClose: function(){
-      this.view.switchFormGridVisibility();
-      this.view.messageBar.hide();
-    },
-    
-    buttonType: 'savecloseX',
-    prompt: OB.I18N.getLabel('OBUIAPP_CLOSEBUTTON'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm;
-      if (view.isShowingForm) {
-        this.setDisabled(false);
-        var saveDisabled = (!form.isNew &&
-        (form.isSaving || form.readOnly ||
-        !view.hasValidState() ||
-        !form.hasChanged));
-        if (saveDisabled) {
-          this.buttonType = 'savecloseX';
-          this.prompt = OB.I18N.getLabel('OBUIAPP_CLOSEBUTTON');
-        } else {
-          this.buttonType = 'saveclose';
-          this.prompt = OB.I18N.getLabel('OBUIAPP_SaveClose');
-        }
-      } else {
-        this.setDisabled(true);
-      }
-      this.resetBaseStyle();
-    },
-    keyboardShortcutId: 'ToolBar_SaveClose'
-  },
-  NEW_ROW_BUTTON_PROPERTIES: {
-    action: function(){
-      var view = this.view, 
-          grid = view.viewGrid;
-      
-      // In case of no record selected getRecordIndex(undefined) returns -1,
-      // which is the top position, other case it adds bellow current selected 
row.
-      view.newRow(grid.getRecordIndex(grid.getSelectedRecord()));
-    },
-    buttonType: 'newRow',
-    prompt: OB.I18N.getLabel('OBUIAPP_NewRow'),
-    updateState: function(){
-      var view = this.view, 
-          selectedRecords = view.viewGrid.getSelectedRecords();
-      this.setDisabled(view.isShowingForm || view.readOnly || 
view.singleRecord || !view.hasValidState() || 
-                       (selectedRecords && selectedRecords.length > 1));
-    },
-    keyboardShortcutId: 'ToolBar_NewRow'
-  },
-  NEW_DOC_BUTTON_PROPERTIES: {
-    action: function(){
-      this.view.newDocument();
-    },
-    buttonType: 'newDoc',
-    prompt: OB.I18N.getLabel('OBUIAPP_NewDoc'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm;
-      if (view.isShowingForm) {
-        this.setDisabled(form.isSaving || view.readOnly || view.singleRecord 
|| !view.hasValidState());
-      } else {
-        this.setDisabled(view.readOnly || view.singleRecord || 
!view.hasValidState());
-      }
-    },
-    keyboardShortcutId: 'ToolBar_NewDoc'
-  },
-  DELETE_BUTTON_PROPERTIES: {
-    action: function(){
-      this.view.deleteSelectedRows();
-    },
-    disabled: true,
-    buttonType: 'eliminate',
-    prompt: OB.I18N.getLabel('OBUIAPP_DeleteRow'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm, grid = view.viewGrid, 
selectedRecords = grid.getSelectedRecords(), i;
-      for (i = 0; i < selectedRecords.length; i++) {
-        if (!grid.isWritable(selectedRecords[i])) {
-          this.setDisabled(true);
-          return;
-        }
-        if (selectedRecords[i]._new) {
-          this.setDisabled(true);
-          return;
-        }
-      }
-      if (view.isShowingForm) {
-        this.setDisabled(form.isSaving || form.readOnly || view.singleRecord ||
-        !view.hasValidState() ||
-        form.isNew);
-      } else {
-        this.setDisabled(view.readOnly || view.singleRecord || 
!view.hasValidState() ||
-        !grid.getSelectedRecords() ||
-        grid.getSelectedRecords().length === 0);
-      }
-    },
-    keyboardShortcutId: 'ToolBar_Eliminate'
-  },
-  REFRESH_BUTTON_PROPERTIES: {
-    action: function(){
-      this.view.refresh();
-    },
-    disabled: false,
-    buttonType: 'refresh',
-    prompt: OB.I18N.getLabel('OBUIAPP_RefreshData'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm;
-      if (view.isShowingForm) {
-        this.setDisabled(form.isSaving || form.isNew || !view.hasValidState());
-      } else {
-        this.setDisabled(!view.hasValidState());
-      }
-    },
-    keyboardShortcutId: 'ToolBar_Refresh'
-  },
-  UNDO_BUTTON_PROPERTIES: {
-    action: function(){
-      this.view.undo();
-    },
-    disabled: true,
-    buttonType: 'undo',
-    prompt: OB.I18N.getLabel('OBUIAPP_ConfirmCancelEdit'),
-    updateState: function(){
-      var view = this.view, form = view.viewForm, grid = view.viewGrid, 
hasErrors = false, editRow, i;

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to