Some experimentation making sure the spinner is working.

* Need to improve the css
* Need to link everything togther, the fun part!
This commit is contained in:
Jonathan Rosenbaum
2017-07-27 18:01:53 +00:00
parent 960296c856
commit e663006698
2 changed files with 42 additions and 6 deletions
+11 -2
View File
@@ -713,15 +713,24 @@ $(function() {
"Volunteer Hours Redeemed: " + "\r\n" +
"Volunteer Hours Remaining:";
$("#volunteer_hours").prop("title","").empty();
$("#volunteer_hours").prop("title","").empty();
$("#redeemable_hours").hide();
if (obj) {
var volunteer_hours = obj.volunteer_hours;
if (volunteer_hours && volunteer_hours.length) {
$("#volunteer_hours").prop("title",title).html("Volunteer Hours");
$( "#redeemable_hours" ).spinner({
step: 0.10,
numberFormat: "n"
}).show();
//$("#redeemable_hours").html(obj.redeemable_hours);
} else {
$("#volunteer_hours").prop("title","").empty();
$("#redeemable_hours").hide();
}
}