| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- define("dijit/form/TimeTextBox", [
- "dojo/_base/declare",
- "dojo/keys",
- "dojo/_base/lang",
- "../_TimePicker",
- "./_DateTimeTextBox"
- ], function(declare, keys, lang, _TimePicker, _DateTimeTextBox){
-
-
-
-
-
- return declare("dijit.form.TimeTextBox", _DateTimeTextBox, {
-
-
- baseClass: "dijitTextBox dijitComboBox dijitTimeTextBox",
- popupClass: _TimePicker,
- _selector: "time",
-
-
-
-
-
-
-
-
-
-
-
- value: new Date(""),
-
- _onKey: function(evt){
- if(this.disabled || this.readOnly){ return; }
- this.inherited(arguments);
-
-
- switch(evt.keyCode){
- case keys.ENTER:
- case keys.TAB:
- case keys.ESCAPE:
- case keys.DOWN_ARROW:
- case keys.UP_ARROW:
-
- break;
- default:
-
-
- setTimeout(lang.hitch(this, function(){
-
-
- var val = this.get('displayedValue');
- this.filterString = (val && !this.parse(val, this.constraints)) ? val.toLowerCase() : "";
-
-
-
- if(this._opened){
- this.closeDropDown();
- }
- this.openDropDown();
- }), 0);
- }
- }
- });
- });
|