Fixed issue 24600: Removed not needed code
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 28 Aug 2013 01:17:39 +0200
changeset 21041 74e284988f42
parent 21040 2ca13963417f
child 21042 5d8fcc539dbf
Fixed issue 24600: Removed not needed code
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Wed Aug 28 00:43:26 2013 +0200
+++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Wed Aug 28 01:17:39 2013 +0200
@@ -535,17 +535,6 @@
     }
   },
 
-  // replaced because icon url was not considering 
-  // showDisabled false
-  // http://forums.smartclient.com/showthread.php?p=70308#post70308
-  getIconURL: function (icon, over, disabled, focused) {
-    var src = icon.src || this.defaultIconSrc,
-        state = (this.showDisabled && (disabled || this.iconIsDisabled(icon))) ? isc.StatefulCanvas.STATE_DISABLED : over ? isc.StatefulCanvas.STATE_OVER : null;
-
-    src = isc.Img.urlForState(src, false, focused, state);
-    return src;
-  },
-
   changed: function (form, item, value) {
     this._hasChanged = true;
     this.clearErrors();
@@ -740,42 +729,6 @@
 
 });
 
-isc.addProperties(isc.Date, {
-  //http://forums.smartclient.com/showthread.php?p=77883#post77883
-  createLogicalDate: function (year, month, date, suppressConversion) {
-    var d = new Date();
-    d.setHours(12);
-    d.setMinutes(0);
-    d.setSeconds(0);
-    d.setMilliseconds(0);
-    if (date !== null) {
-      d.setDate(1);
-    }
-    if (year !== null) {
-      d.setFullYear(year);
-    }
-    if (month !== null) {
-      d.setMonth(month);
-    }
-    if (date !== null) {
-      d.setDate(date);
-    }
-
-    if (suppressConversion) {
-      // If the 'suppressConversion' flag was passed, we will want to return null to indicate
-      // we were passed an invalid date if the values passed in had to be converted
-      // (For example a month of 13 effecting the year, etc)
-      var isValid = (d.getFullYear() === year && d.getMonth() === month && d.getDate() === date);
-      if (!isValid) {
-        return null;
-      }
-    }
-
-    d.logicalDate = true;
-    return d;
-  }
-});
-
 isc.DateItem.changeDefaults('textFieldDefaults', {
   isDisabled: function () {
     var disabled = this.Super('isDisabled', arguments);