Skip to content

Commit

Permalink
Missed a few use cases on the magic updating set button. Referenced in
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Nov 18, 2011
1 parent f2a4fb9 commit f3625ea
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions js/jquery.mobile.datebox.js
Expand Up @@ -1740,22 +1740,22 @@
}

// FIX THE SET BUTTON
switch (o.mode) {
case "timebox":
case "timeflipbox":
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setTimeButtonLabel);
break;
case "durationbox":
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setDurationButtonLabel);
break;
case "calbox":
if ( self.setButton !== false ) {
if ( self.setButton !== false ) {
switch (o.mode) {
case "timebox":
case "timeflipbox":
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setTimeButtonLabel);
break;
case "durationbox":
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setDurationButtonLabel);
break;
case "calbox":
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].calTodayButtonLabel);
}
break;
default:
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setDateButtonLabel);
break;
break;
default:
self.setButton.find('.ui-btn-text').html(o.lang[o.useLang].setDateButtonLabel);
break;
}
}
},
_buildPage: function () {
Expand Down

0 comments on commit f3625ea

Please sign in to comment.