mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
This cleans up things a bit for spinner.
This commit is contained in:
+18
-4
@@ -721,16 +721,29 @@ $(function() {
|
||||
if (volunteer_hours && volunteer_hours.length) {
|
||||
$("#volunteer_hours").prop("title",title).html("Volunteer Hours");
|
||||
|
||||
$(".ui-spinner").show();
|
||||
|
||||
$( "#redeemable_hours" ).spinner({
|
||||
step: 0.10,
|
||||
numberFormat: "n"
|
||||
}).show();
|
||||
numberFormat: "n",
|
||||
spin: function( event, ui ) {
|
||||
if ( ui.value > obj.current_year_volunteer_hours ) {
|
||||
$( this ).spinner( "value", obj.current_year_volunteer_hours );
|
||||
return false;
|
||||
} else if (ui.value < 0) {
|
||||
$( this ).spinner( "value", 0 );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}).show();
|
||||
|
||||
|
||||
|
||||
//$("#redeemable_hours").html(obj.redeemable_hours);
|
||||
} else {
|
||||
$("#volunteer_hours").prop("title","").empty();
|
||||
$("#redeemable_hours").hide();
|
||||
$("#redeemable_hours").hide();
|
||||
$(".ui-spinner").hide();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -748,7 +761,8 @@ $(function() {
|
||||
$("#stand_time_total").text(obj.hours + " hours " + obj.minutes + " minutes");
|
||||
} else {
|
||||
amount.val(data);
|
||||
$("#stand_time_total").empty();
|
||||
$("#stand_time_total").empty();
|
||||
$(".ui-spinner").hide();
|
||||
}
|
||||
}); // stand time pos
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user