tests for datetimefield

This commit is contained in:
vitalets
2013-04-02 13:36:18 +04:00
parent b0684d0174
commit 2778630c7b
5 changed files with 17 additions and 7 deletions

@ -80,7 +80,11 @@ $(function(){
value2html: function(value, element) {
//formatDate works with UTCDate!
var text = value ? this.dpg.formatDate(this.toUTC(value), this.parsedViewFormat, this.options.datetimepicker.language, this.options.formatType) : '';
DateTime.superclass.value2html(text, element);
if(element) {
DateTime.superclass.value2html(text, element);
} else {
return text;
}
},
html2value: function(html) {