Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jquery.mobile.datepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ div.hasDatepicker{ display: block; padding: 0; overflow: visible; margin: 8px 0
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 49%;}
.ui-datepicker table {width: 100%; border-collapse: collapse; margin:0; }
.ui-datepicker td { border-width: 1px; padding:0; text-align: center; }
.ui-datepicker td { border-width: 1px; padding:0; text-align: center; min-width: 41px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em 0; font-weight: bold; margin: 0; border-width: 0; text-align: center; text-decoration: none; }

.ui-datepicker-calendar th { padding-top: .4em; padding-bottom: .4em; }
.ui-datepicker-calendar th span, .ui-datepicker-calendar span.ui-state-default { opacity: .7; }
.ui-datepicker-calendar td a { padding:.6em .5em; }
.ui-datepicker-calendar td a, .ui-datepicker-calendar td span { padding: .6em .5em; }
9 changes: 5 additions & 4 deletions jquery.mobile.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
beforeShowDay: null, // Function that takes a date and returns an array with
// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
// [2] = cell title (optional), e.g. $.datepicker.noWeekends
theme: 'a', // Default theme
onSelect: function(text,object){
var self = this;
setTimeout( function(){
Expand Down Expand Up @@ -135,11 +136,11 @@
.find(".ui-datepicker-calendar a,.ui-datepicker-prev,.ui-datepicker-next").addClass("ui-btn").end()
.find(".ui-datepicker-prev").addClass("ui-btn-icon-notext ui-btn-inline ui-corner-all ui-icon-arrow-l ui-shadow").end()
.find(".ui-datepicker-next").addClass("ui-btn-icon-notext ui-btn-inline ui-corner-all ui-icon-arrow-r ui-shadow").end()
.find(".ui-datepicker-header").addClass("ui-body-a ui-corner-top").removeClass("ui-corner-all").end()
.find(".ui-datepicker-calendar th" ).addClass("ui-bar-a").end()
.find(".ui-datepicker-calendar td" ).addClass("ui-body-a").end()
.find(".ui-datepicker-header").addClass("ui-body-" + this.options.theme + " ui-corner-top").removeClass("ui-corner-all").end()
.find(".ui-datepicker-calendar th" ).addClass("ui-bar-" + this.options.theme).end()
.find(".ui-datepicker-calendar td" ).addClass("ui-body-" + this.options.theme).end()
.find(".ui-datepicker-calendar a.ui-state-active").addClass("ui-btn-active").end()
.find(".ui-datepicker-calendar a.ui-state-highlight").addClass("ui-btn-up-a").end().find(".ui-state-disabled").css("opacity","1");
.find(".ui-datepicker-calendar a.ui-state-highlight").addClass("ui-btn-up-" + this.options.theme).end().find(".ui-state-disabled").css("opacity","1");
}
});

Expand Down