Enable event player reordering

This commit is contained in:
Brian Miyaji
2014-06-18 16:27:45 +10:00
parent 34c8698c9e
commit 419da22d50
5 changed files with 41 additions and 14 deletions

View File

@@ -226,6 +226,18 @@ table.widefat select.sp-outcome {
width: 100%;
}
table.widefat.sp-sortable-table tbody tr {
cursor: move;
}
table.widefat.sp-sortable-table tr {
background-color: #fff;
}
table.widefat.sp-sortable-table tr:nth-child(2n-1) {
background-color: #f9f9f9;
}
.sp-admin-config-table th,
.sp-admin-config-table td {
padding: 8px 10px;

View File

@@ -24,6 +24,7 @@ jQuery(document).ready(function($){
// Activate auto key placeholder
$("#poststuff #title").keyup();
// Table switcher
$(".sp-table-panel").siblings(".sp-table-bar").find("a").click(function() {
$(this).closest("li").find("a").addClass("current").closest("li").siblings().find("a").removeClass("current").closest(".sp-table-bar").siblings($(this).attr("href")).show().siblings(".sp-table-panel").hide();
@@ -233,6 +234,11 @@ jQuery(document).ready(function($){
// Trigger check check
$(".sp-data-table").trigger("checkCheck");
// Sortable tables
$(".sp-sortable-table tbody").sortable({
axis: "y"
});
// Video embed
$(".sp-add-video").click(function() {
$(this).closest("fieldset").hide().siblings(".sp-video-field").show();