Skip to content

Commit

Permalink
fixes #15149, stub to allow popup version of DateTextBox to close cor…
Browse files Browse the repository at this point in the history
…rectly
  • Loading branch information
dylans committed Dec 29, 2015
1 parent 907f05e commit b1ac047
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions widget/_CalendarBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ define([
//Populate the footer with today's date.
var today = new Date();

this.footer.innerHTML = "Today: "
+ dojoDateLocale.format(today, {
this.footer.innerHTML = "Today: " +
dojoDateLocale.format(today, {
formatLength:this.footerFormat,
selector:'date',
locale:this.lang});
Expand Down Expand Up @@ -206,7 +206,7 @@ define([
value = new Date(value);
this.displayMonth = new Date(value);
this._internalValue = value;
if(!this.isDisabledDate(value, this.lang) && this._currentChild == 0){
if(!this.isDisabledDate(value, this.lang) && this._currentChild === 0){
this.value = value;
this.onChange(value);
}
Expand All @@ -215,6 +215,7 @@ define([
}
return true;
}
this.onExecute();
return false;
},

Expand Down Expand Up @@ -380,6 +381,11 @@ define([
this._slideTable(child, amount, function(){
child.set("value", month);
});
},

onExecute:function(){
// summary:
// Stub for child classes to override.
}
});
});

0 comments on commit b1ac047

Please sign in to comment.