Moved display:none to php for reload.

This commit is contained in:
Jonathan Rosenbaum
2015-01-10 08:18:08 +00:00
parent b68b4926b4
commit dfa8d2b2ea
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -82,11 +82,15 @@ $(function() {
var str = this.id;
var id = str.match(/\d+/);
if (diff != 0) {
/*
if(!$("#" + id[0] + "_different_change").length) {
$("#" + this.id).after("<span id=" + id[0] + "_different_change style='padding-left: 5px; padding-right: 5px; color: red;'></span>")
$("#" + this.id).after("<span id=" + id[0] +
"_different_change style='padding-left: 5px; padding-right: 5px; color: red;'></span>")
} else {
$("#" + id[0] + "_different_change").show();
}
}
*/
$("#" + id[0] + "_different_change").show();
$("#" + id[0] + "_different_change").text("(" + diff.toFixed(2) + ")");
} else {
$("#" + id[0] + "_different_change").hide();