Admin dashboard widget, namespace EOS, remove unused widgets

This commit is contained in:
Brian Miyaji
2014-02-22 12:25:27 +11:00
parent 9b35725bba
commit 9f46acc6b5
16 changed files with 271 additions and 316 deletions

View File

@@ -171,9 +171,9 @@ jQuery(document).ready(function($){
}
// Select all checkboxes
$(".sp-data-table thead .sp-select-all").change(function() {
$table = $(this).closest(".sp-data-table");
$table.find("tbody input[type=checkbox]").prop("checked", $(this).prop("checked"));
$(".sp-select-all").change(function() {
$range = $(this).closest(".sp-select-all-range");
$range.find("input[type=checkbox]").prop("checked", $(this).prop("checked"));
});
// Check if all checkboxes are checked already
@@ -266,4 +266,12 @@ jQuery(document).ready(function($){
return event.keyCode != 13;
});
// Dashboard countdown
$("#sportspress_dashboard_status .sp_status_list li.countdown").each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
$this.find('strong').html(event.strftime("%D "+localized_strings.days+" %H:%M:%S"));
});
});
});