details: https://code.openbravo.com/erp/devel/pi/rev/a622bc5f7777
changeset: 15472:a622bc5f7777
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Feb 14 13:59:54 2012 +0100
summary: Issue 19728: Added missing js format changes
diffstat:
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
| 4 +-
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
| 12 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
| 34 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
| 1 -
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
| 12 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
| 66 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
| 18 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-ui-test.js
| 35
+-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-utilities-date-test.js
| 316 +++++----
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-menu-styles.js
| 10 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.js
| 23 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-dialog-styles.js
| 19 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
| 58 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.js
| 55 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-messagebar-styles.js
| 12 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.js
| 24 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-personalization-styles.js
| 42 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.js
| 7 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js
| 4 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js
| 4 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-statusbar-styles.js
| 9 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tab-styles.js
| 6 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-toolbar-styles.js
| 6 +-
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js
|
115 +-
modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-myopenbravo-styles.js
| 2 +-
modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-widget-styles.js
| 2 +-
modules/org.openbravo.service.integration.google/web/org.openbravo.service.integration.google/js/obsegi-account-association-view.js
| 13 +-
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient-labels.js
| 14 +-
29 files changed, 484 insertions(+), 441 deletions(-)
diffs (truncated from 1785 to 300 lines):
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Tue Feb 14 13:59:54 2012 +0100
@@ -238,7 +238,7 @@
/**
* Compares two Strings using the operator.
- * If both numbers are negative it compares using the absolute value.
+ * If both numbers are negative it compares using the absolute value.
*/
function compareWithSign(number1, operator, number2) {
@@ -597,7 +597,7 @@
}
/**
- *
+ *
* @param allowCreditGeneration true if it is allowed to not select any
pending payment if actualPayment amount is not
* zero.
* @return true if validations are fine.
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
---
a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
Tue Feb 14 13:59:54 2012 +0100
@@ -55,11 +55,11 @@
invoiceOutstanding = new
BigDecimal(String(item.grid.view.parentWindow.views[0].getParentRecord().outstandingAmount));
if (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !== 0 &&
(new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !==
invoiceOutstanding.compareTo(new BigDecimal("0")))) {
- if (!OB.APRM.validateMPPUserWarnedSign) {
- OB.APRM.validateMPPUserWarnedSign = true;
- isc.warn(OB.I18N.getLabel('APRM_DifferentSignError'));
- }
- return false;
+ if (!OB.APRM.validateMPPUserWarnedSign) {
+ OB.APRM.validateMPPUserWarnedSign = true;
+ isc.warn(OB.I18N.getLabel('APRM_DifferentSignError'));
+ }
+ return false;
}
for (indRow = 0; indRow < allRows.length; indRow++) {
@@ -132,4 +132,4 @@
return false;
}
return true;
-};
+};
\ No newline at end of file
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
Tue Feb 14 13:59:54 2012 +0100
@@ -42,23 +42,22 @@
// with addUnknownValues (to false) as this will
// cause the picklist not to show
// changeOnKeypress: false,
-
moveFocusOnPickValue: true,
- hidePickListOnBlur: function() {
-
+ hidePickListOnBlur: function () {
+
// when the form gets redrawn the the focus may not be in
// the item but it is still the item which gets the focus
// after redrawing
if (this.form && this.form._isRedrawing && this.form.getFocusItem() ===
this) {
return;
}
-
+
this.Super('hidePickListOnBlur', arguments);
},
-
+
// is overridden to keep track that a value has been explicitly picked
- pickValue: function(value) {
+ pickValue: function (value) {
this._pickedValue = true;
this.Super('pickValue', arguments);
delete this._pickedValue;
@@ -69,7 +68,7 @@
}
},
- changed: function(form, item, value) {
+ changed: function (form, item, value) {
this.Super('changed', arguments);
// if not picking a value then don't do a fic call
// otherwise every keypress would result in a fic call
@@ -90,16 +89,17 @@
// the solution is to keep a separate entries array with the
// records in the correct order, see also the setEntries/setEntry
// methods
- getClientPickListData: function() {
+ getClientPickListData: function () {
if (this.entries) {
return this.entries;
}
return this.Super('getClientPickListData', arguments);
},
- setEntries: function(entries) {
- var length = entries.length, i, id, identifier,
- valueField = this.getValueFieldName(), valueMap = {};
+ setEntries: function (entries) {
+ var length = entries.length,
+ i, id, identifier, valueField = this.getValueFieldName(),
+ valueMap = {};
this.entries = [];
for (i = 0; i < length; i++) {
id = entries[i][OB.Constants.ID] || '';
@@ -111,9 +111,11 @@
this.setValueMap(valueMap);
},
- setEntry: function(id, identifier) {
- var i, entries = this.entries || [], entry = {}, valueField = this
- .getValueFieldName(), length = entries.length;
+ setEntry: function (id, identifier) {
+ var i, entries = this.entries || [],
+ entry = {},
+ valueField = this.getValueFieldName(),
+ length = entries.length;
for (i = 0; i < length; i++) {
if (entries[i][valueField] === id) {
return;
@@ -128,7 +130,7 @@
},
// prevent ids from showing up
- mapValueToDisplay: function(value) {
+ mapValueToDisplay: function (value) {
var ret = this.Super('mapValueToDisplay', arguments);
if (this.valueMap && this.valueMap[value]) {
return this.valueMap[value];
@@ -148,4 +150,4 @@
return ret;
}
-});
+});
\ No newline at end of file
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
Tue Feb 14 13:59:54 2012 +0100
@@ -60,7 +60,6 @@
isc.OBSearchItem.openSearchItem = null;
};
}(this)); // window
-
isc.OBSearchItem.addProperties({
operator: 'iContains',
showPickerIcon: true,
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Tue Feb 14 13:59:54 2012 +0100
@@ -493,7 +493,7 @@
//If the new state does not have any selected records then all the
records of the view are deselected
if (!localState.selected) {
this.deselectAllRecords();
- }
+ }
// old versions stored selected records in grid view, this can cause
// problems if record is not selected yet
delete localState.selected;
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
Tue Feb 14 13:59:54 2012 +0100
@@ -4,15 +4,15 @@
* 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
+ * 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) 2011 Openbravo SLU
- * All Rights Reserved.
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
+ * All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
*/
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
Tue Feb 14 13:59:54 2012 +0100
@@ -11,45 +11,47 @@
* 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 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
-*/
+ */
module('org.openbravo.client.application.navigationbarcomponents');
-test('Basic requirements', function() {
+test('Basic requirements', function () {
expect(1);
- ok( OB.RecentUtilities, 'recent utilities defined' );
+ ok(OB.RecentUtilities, 'recent utilities defined');
});
-test('Test user info data read', function() {
- stop(1000);
+test('Test user info data read', function () {
+ stop(1000);
- expect(16);
-
- var callback = function(rpcResponse, data, rpcRequest) {
- ok(data.language, 'Language present');
- ok(data.language.value, 'Language value present');
- ok(data.language.valueMap, 'Language valueMap present');
- ok(data.language.value, 'Language value present');
-
- ok(data.initialValues.role, 'Initial role value set');
- ok(data.initialValues.client, 'Initial client value set');
- ok(data.initialValues.organization, 'Initial organization value
set');
- ok(data.initialValues.language, 'Initial language value set');
-
- ok(data.role, 'Role set');
- ok(data.role.value, 'Role value set');
- ok(data.role.valueMap, 'Role valueMap set');
- ok(data.role.roles, 'Role info set');
- ok(data.role.roles.length > 0, 'More than one role present');
- ok(data.role.roles[0].id, 'Role id set');
- ok(data.role.roles[0].organizationValueMap, 'Role org value map
set');
- ok(data.role.roles[0].warehouseValueMap, 'Role wh value map
set');
+ expect(16);
- start();
- };
- var action =
'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler';
- OB.RemoteCallManager.call(action, {}, {'command': 'data'}, callback);
-});
+ var callback = function (rpcResponse, data, rpcRequest) {
+ ok(data.language, 'Language present');
+ ok(data.language.value, 'Language value present');
+ ok(data.language.valueMap, 'Language valueMap present');
+ ok(data.language.value, 'Language value present');
+
+ ok(data.initialValues.role, 'Initial role value set');
+ ok(data.initialValues.client, 'Initial client value set');
+ ok(data.initialValues.organization, 'Initial organization value set');
+ ok(data.initialValues.language, 'Initial language value set');
+
+ ok(data.role, 'Role set');
+ ok(data.role.value, 'Role value set');
+ ok(data.role.valueMap, 'Role valueMap set');
+ ok(data.role.roles, 'Role info set');
+ ok(data.role.roles.length > 0, 'More than one role present');
+ ok(data.role.roles[0].id, 'Role id set');
+ ok(data.role.roles[0].organizationValueMap, 'Role org value map set');
+ ok(data.role.roles[0].warehouseValueMap, 'Role wh value map set');
+
+ start();
+ };
+ var action =
'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler';
+ OB.RemoteCallManager.call(action, {}, {
+ 'command': 'data'
+ }, callback);
+});
\ No newline at end of file
diff -r 4c398edd32ec -r a622bc5f7777
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
Tue Feb 14 12:46:18 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
Tue Feb 14 13:59:54 2012 +0100
@@ -11,20 +11,20 @@
* 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 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
*/
module('org.openbravo.client.application');
-test('Property Store Exists', function() {
+test('Property Store Exists', function () {
expect(2);
ok(OB.PropertyStore, 'PropertyStore is present');
ok(!OB.PropertyStore.get('abc'), 'Test property is not present (okay)');
});
-test('Set/Get Property', function() {
+test('Set/Get Property', function () {
expect(2);
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits