add option escape, fixes #377

This commit is contained in:
vitalets
2013-09-22 01:05:42 +04:00
parent fff300e2bd
commit 1329e0ccf9
11 changed files with 38 additions and 19 deletions

View File

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