Add totals for number format values only

This commit is contained in:
Brian Miyaji
2016-02-24 13:35:24 +11:00
parent 89c40166a5
commit 3ab665bf22
2 changed files with 4 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ jQuery(document).ready(function($){
});
// Total stats calculator
$(".sp-data-table .sp-total input").on("updateTotal", function() {
$(".sp-data-table .sp-total input[data-sp-format=number]").on("updateTotal", function() {
index = $(this).parent().index();
var sum = 0;
$(this).closest(".sp-data-table").find(".sp-post").each(function() {