Changeset 11779
- Timestamp:
- 12/10/07 14:46:26 (9 months ago)
- Location:
- dijit/trunk/form
- Files:
-
- 2 modified
-
TextBox.js (modified) (1 diff)
-
TimeTextBox.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/form/TextBox.js
r11765 r11779 47 47 setValue: function(value, /*Boolean, optional*/ priorityChange, /*String, optional*/ formattedValue){ 48 48 var filteredValue = this.filter(value); 49 if(( typeof filteredValue == typeof value) && (formattedValue == null || formattedValue == undefined)){49 if(((typeof filteredValue == typeof value) || (value === null/*#5329*/)) && (formattedValue == null || formattedValue == undefined)){ 50 50 formattedValue = this.format(filteredValue, this.constraints); 51 51 } -
dijit/trunk/form/TimeTextBox.js
r11130 r11779 18 18 compare: dojo.date.compare, 19 19 format: function(/*Date*/ value, /*Object*/ constraints){ 20 if(!value || value.toString() == this._invalid){ return null; }20 if(!value || value.toString() == this._invalid){ return ''; } 21 21 return dojo.date.locale.format(value, constraints); 22 22 }, 23 parse: dojo.date.locale.parse, 23 parse: function(/*String*/ value, /*Object*/ constraints){ 24 return dojo.date.locale.parse(value, constraints) || undefined; /* can't return null to getValue since that's special */ 25 }, 26 24 27 serialize: dojo.date.stamp.toISOString, 25 28