Skip to content
Open
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
9 changes: 6 additions & 3 deletions glDatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@
onHide: function(calendar) { calendar.hide(); },

// First date of the month.
firstDate: null
firstDate: null,

//Custom width of date picker
width: null
};

// Our plugin object
Expand Down Expand Up @@ -307,7 +310,7 @@
var monthNames = options.monthNames || [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ];

// Create cell width based on el size
var containerWidth = el.outerWidth();
var containerWidth = options.width ? options.width : el.outerWidth();
var containerHeight = containerWidth;

// Create cell size based on container size
Expand Down Expand Up @@ -815,4 +818,4 @@
return $.inArray(value, this);
}
})();
})();
})();