Admin dashboard widget, namespace EOS, remove unused widgets
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user