Add events list template

This commit is contained in:
Brian Miyaji
2014-03-17 19:12:12 +11:00
parent a7eb732933
commit e39b938d6e
12 changed files with 286 additions and 26 deletions

View File

@@ -83,7 +83,12 @@
content: "\f163";
}
.fixed .column-sp_team strong {
#sp_videodiv .inside > fieldset > p:last-child {
margin-bottom: 1px !important;
}
.fixed .column-sp_team strong.result,
.sp-calendar-table strong.result {
background: #888;
color: #fff;
font-size: 11px;
@@ -280,10 +285,6 @@ table.widefat.sp-data-table th.column-outcome {
width: 10em;
}
table.widefat.sp-data-table th.column-event {
width: 40%;
}
table.widefat.sp-data-table td {
line-height: 2;
overflow: visible;
@@ -322,7 +323,7 @@ table.widefat.sp-data-table tr:hover a.sp-edit-name {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}
table.widefat.sp-league-table th input[type=checkbox] {
table.widefat.sp-data-table th:not(.check-column) input[type=checkbox] {
margin: -4px 1px 0;
vertical-align: middle;
}

View File

@@ -32,6 +32,15 @@
width: auto;
}
/* Events List */
.sp-events-list .column-article {
white-space: nowrap;
}
.sp-events-list .column-article a .dashicons {
padding-right: 3px;
text-decoration: none;
}
/* Google Maps */
.sp-google-map {
height: 320px;

View File

@@ -212,6 +212,18 @@ jQuery(document).ready(function($){
// Trigger check check
$(".sp-data-table").trigger("checkCheck");
// Video embed
$(".sp-add-video").click(function() {
$(this).closest("fieldset").hide().siblings(".sp-video-field").show();
return false;
});
// Removing video embed
$(".sp-remove-video").click(function() {
$(this).closest("fieldset").hide().siblings(".sp-video-adder").show().siblings(".sp-video-field").find("input").val(null);
return false;
});
// Equation selector
$(".sp-equation-selector select:last").change(function() {
$(this).siblings().change(function() {