fixed errors
authorLinda Nichols <lynnaloo@gmail.com>
Tue, 24 Jun 2014 03:34:24 +0000 (03:34 +0000)
committerLinda Nichols <lynnaloo@gmail.com>
Tue, 24 Jun 2014 03:34:24 +0000 (03:34 +0000)
enyo-client/application/source/widgets/relation.js
enyo-client/extensions/source/crm/client/widgets/chart.js
enyo-client/extensions/source/sales/client/widgets/chart.js
lib/enyo-x/source/views/grid_box.js
lib/enyo-x/source/views/list_relations_editor_box.js
lib/enyo-x/source/widgets/number.js
lib/enyo-x/source/widgets/relation.js
test/database/gotchas.js

index ddf3164..0ca32d7 100644 (file)
@@ -29,7 +29,7 @@ regexp:true, undef:true, trailing:true, white:true, strict:false */
     collection: "XM.ContactRelationCollection",
     list: "XV.ContactList",
     published: {
-      showAddress: false,
+      showAddress: false
     },
     descriptionComponents: [
       {name: "jobTitleRow", controlClasses: "enyo-inline", showing: false, components: [
index 016dae7..4b2a940 100644 (file)
@@ -51,11 +51,11 @@ trailing:true, white:true*/
         parameters: [{
           attribute: "targetClose",
           operator: ">=",
-          value: XT.date.applyTimezoneOffset(XV.Date.prototype.textToDate("0"), true)
+          value: XT.date.applyTimezoneOffset(XV.DateWidget.prototype.textToDate("0"), true)
         }, {
           attribute: "targetClose",
           operator: "<=",
-          value: XT.date.applyTimezoneOffset(XV.Date.prototype.textToDate("+30"), true)
+          value: XT.date.applyTimezoneOffset(XV.DateWidget.prototype.textToDate("+30"), true)
         }]
       },
       totalField: "amount"
index 6180e9e..ed2035d 100644 (file)
@@ -19,7 +19,7 @@ trailing:true, white:true*/
       parameters: [{
         attribute: "shipDate",
         operator: ">=",
-        value: XT.date.applyTimezoneOffset(XV.Date.prototype.textToDate("-30"), true)
+        value: XT.date.applyTimezoneOffset(XV.DateWidget.prototype.textToDate("-30"), true)
       }]
     },
     dateField: "shipDate",
@@ -40,11 +40,11 @@ trailing:true, white:true*/
       parameters: [{
         attribute: "orderDate",
         operator: ">=",
-        value: XT.date.applyTimezoneOffset(XV.Date.prototype.textToDate("0"), true)
+        value: XT.date.applyTimezoneOffset(XV.DateWidget.prototype.textToDate("0"), true)
       }, {
         attribute: "orderDate",
         operator: "<=",
-        value: XT.date.applyTimezoneOffset(XV.Date.prototype.textToDate("+30"), true)
+        value: XT.date.applyTimezoneOffset(XV.DateWidget.prototype.textToDate("+30"), true)
       }]
     },
     dateField: "orderDate",
index ecdd49e..818e64a 100644 (file)
@@ -353,7 +353,7 @@ trailing:true, white:true, strict: false*/
         components: [
           {kind: "onyx.Button", name: "newButton", ontap: "newItem", classes: "icon-plus"},
           {kind: "onyx.Button", name: "exportButton", ontap: "exportAttr",
-           icon: "share", content: "_export".loc(), classes: "icon-share"}
+            icon: "share", classes: "icon-share"}
         ]
       });
 
index ec885ff..ff25837 100644 (file)
@@ -98,7 +98,8 @@ trailing:true, white:true, strict: false*/
     @todo Document the controlValueChanged method.
     */
     controlValueChanged: function () {
-      this.$.list.refresh();
+      // this is getting called before the list is created
+      //this.$.list.refresh();
       return true;
     },
     /**
index 71dd003..a1a793f 100644 (file)
@@ -30,7 +30,7 @@ regexp:true, undef:true, trailing:true, white:true */
       // use isNaN here because this value could be a number String, 0 value, or null
       // only want to set value as null in cases of bad strings and null/undefined
       value = value !== null && !isNaN(value) ? XT.math.round(value, this.getScale()) : null;
-      XV.InputWidget.prototype.setValue.call(this, value, options);
+      this.inherited(arguments);
     },
     /**
       Determines whether the user input is numeric.
@@ -61,7 +61,7 @@ regexp:true, undef:true, trailing:true, white:true */
       } else {
         value = "";
       }
-      return XV.InputWidget.prototype.valueChanged.call(this, value);
+      this.inherited(arguments);
     }
   });
 
index dba67a4..3783b06 100644 (file)
@@ -160,9 +160,10 @@ regexp:true, undef:true, trailing:true, white:true, strict:false */
       this.$.newItem.setDisabled(_couldNotCreate.apply(this) || disabled);
       this.$.label.addRemoveClass("disabled", disabled);
 
-      _.each(this.$.descriptionContainer.$, function (component) {
-        component.addRemoveClass("disabled", disabled);
-      }, this);
+      // _.each(this.$.descriptionContainer.$, function (component) {
+      //   component.addRemoveClass("disabled", disabled);
+      // }, this);
+      this.$.descriptionContainer.addRemoveClass('disabled', disabled);
     },
     /**
       Query the database.
index b80e286..45cd47e 100644 (file)
@@ -62,5 +62,3 @@ var _ = require("underscore"),
 
   });
 }());
-
-