aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2017-04-12 22:47:27 +0200
committerFelix Nagel <info@felixnagel.com>2017-04-12 22:47:27 +0200
commit5ee64dd0e0743643f3e314d898b45669b4db0a49 (patch)
treea4aac07a71ba915e1c3bc72ccd5d71ab64026454 /demos
parentc1cb6e3398cf3f68e25d375f1e2dce1830fc95f4 (diff)
downloadjquery-ui-5ee64dd0e0743643f3e314d898b45669b4db0a49.tar.gz
jquery-ui-5ee64dd0e0743643f3e314d898b45669b4db0a49.zip
Calendar: Introduce build methods for year and month title
Diffstat (limited to 'demos')
-rw-r--r--demos/calendar/dropdown-month-year.html18
1 files changed, 2 insertions, 16 deletions
diff --git a/demos/calendar/dropdown-month-year.html b/demos/calendar/dropdown-month-year.html
index e9571343f..e1c03630d 100644
--- a/demos/calendar/dropdown-month-year.html
+++ b/demos/calendar/dropdown-month-year.html
@@ -9,21 +9,7 @@
<script src="../../external/requirejs/require.js"></script>
<script src="../bootstrap.js">
$.widget( "ui.calendar", $.ui.calendar, {
- _buildTitle: function() {
- var title = $( "<div>", { role: "alert", id: this.gridId + "-month-label" } ),
- month = this._renderMonthSelect(),
- year = this._renderYearSelect();
-
- this._addClass( title, "ui-calendar-title" )
- ._addClass( month, "ui-calendar-month" )
- ._addClass( year, "ui-calendar-year" );
-
- return title
- .append( month )
- .append( " " )
- .append( year );
- },
- _renderMonthSelect: function() {
+ _buildTitleMonth: function() {
var select = $( "<select>" ),
date = this.date.clone(),
i = 0,
@@ -48,7 +34,7 @@
return select;
},
- _renderYearSelect: function() {
+ _buildTitleYear: function() {
var current = new Date(),
select = $( "<select>" ),
i = current.getFullYear(),