mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-20 12:20:17 +08:00
adjustments to jqui theme classes on cells
This commit is contained in:
@@ -54,16 +54,12 @@ $.extend(DayGrid.prototype, {
|
||||
// Generates the HTML for a single row. `row` is the row number.
|
||||
dayRowHtml: function(row, isRigid) {
|
||||
var view = this.view;
|
||||
var classes = [ 'fc-row', 'fc-week' ];
|
||||
var classes = [ 'fc-row', 'fc-week', view.widgetContentClass ];
|
||||
|
||||
if (isRigid) {
|
||||
classes.push('fc-rigid');
|
||||
}
|
||||
|
||||
if (view.dayRowThemeClass) { // provides the view a hook to inject a theme className
|
||||
classes.push(view.dayRowThemeClass);
|
||||
}
|
||||
|
||||
return '' +
|
||||
'<div class="' + classes.join(' ') + '">' +
|
||||
'<div class="fc-bg">' +
|
||||
|
||||
@@ -82,7 +82,7 @@ $.extend(TimeGrid.prototype, {
|
||||
minutes = slotDate.minutes();
|
||||
|
||||
axisHtml =
|
||||
'<td class="fc-axis fc-time ' + view.widgetHeaderClass + '" ' + view.axisStyleAttr() + '>' +
|
||||
'<td class="fc-axis fc-time ' + view.widgetContentClass + '" ' + view.axisStyleAttr() + '>' +
|
||||
((!slotNormal || !minutes) ? // if irregular slot duration, or on the hour, then display the time
|
||||
'<span>' + // for matchCellWidths
|
||||
htmlEscape(calendar.formatDate(slotDate, view.opt('axisFormat'))) +
|
||||
|
||||
@@ -30,8 +30,6 @@ View.prototype = {
|
||||
widgetContentClass: null,
|
||||
highlightStateClass: null,
|
||||
|
||||
dayRowThemeClass: null, // sets the theme className applied to DayGrid rows (none by default)
|
||||
|
||||
// document handlers, bound to `this` object
|
||||
documentMousedownProxy: null,
|
||||
documentDragStartProxy: null,
|
||||
|
||||
@@ -508,3 +508,39 @@ tr:first-child > td > .fc-day-grid-event {
|
||||
left: -3px;
|
||||
cursor: w-resize;
|
||||
}
|
||||
|
||||
|
||||
/* Event Limiting
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* "more" link that represents hidden events */
|
||||
|
||||
a.fc-more {
|
||||
margin: 1px 2px;
|
||||
font-size: .85em;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.fc-more:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.fc-limited { /* rows and cells that are hidden because of a "more" link */
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* popover that appears when "more" link is clicked */
|
||||
|
||||
.fc-day-grid .fc-row {
|
||||
z-index: 1; /* make the "more" popover one higher than this */
|
||||
}
|
||||
|
||||
.fc-more-popover {
|
||||
z-index: 2;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.fc-more-popover .fc-event-container {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user