Consistently use event prefix for calendar and list templates

Retain backwards compatibility
This commit is contained in:
Brian Miyaji
2014-03-22 17:21:56 +11:00
parent d433a58eb0
commit c30b7eb664
11 changed files with 45 additions and 110 deletions

View File

@@ -33,20 +33,20 @@
}
/* Events Calendar */
.sp-events-calendar tbody td, .sp-events-calendar thead th {
.sp-event-calendar tbody td, .sp-event-calendar thead th {
text-align: center;
}
.sp-events-calendar #next {
.sp-event-calendar #next {
text-align: right;
}
.sp-events-calendar #prev {
.sp-event-calendar #prev {
text-align: left;
}
/* Events List */
.sp-events-list .column-article {
.sp-event-list .column-article {
white-space: nowrap;
}
.sp-events-list .column-article a .dashicons {
.sp-event-list .column-article a .dashicons {
padding-right: 3px;
text-decoration: none;
}

View File

@@ -37,8 +37,8 @@ jQuery(document).ready(function($){
});
// Calendar affects view all link checkbox in widget options
$("body.widgets-php").on("change", ".sp-events-calendar-select", function() {
$el = $(this).closest(".widget-content").find(".sp-events-calendar-show-all-toggle");
$("body.widgets-php").on("change", ".sp-event-calendar-select", function() {
$el = $(this).closest(".widget-content").find(".sp-event-calendar-show-all-toggle");
if($(this).val() == 0)
$el.hide();
else