Commit 7cbb25e0 authored by Mike Muzurakis's avatar Mike Muzurakis
Browse files

minor code cleanup on custom radio button

parent 5ed9ee36
......@@ -351,7 +351,6 @@ function update_wizard_flavors(){
$("#cpu:range").data().rangeinput.change(function(event,value){
$("#cpu-indicator")[0].value = cpus[Number(value)];
$("#custom").click();
$("#custom input").attr('checked', 'checked');
$("#cpu-indicator").removeClass('selectedrange');
});
$("#ram:range").data().rangeinput.onSlide(function(event,value){
......@@ -361,7 +360,6 @@ function update_wizard_flavors(){
$("#ram:range").data().rangeinput.change(function(event,value){
$("#ram-indicator")[0].value = ram[Number(value)];
$("#custom").click();
$("#custom input").attr('checked', 'checked');
$("#ram-indicator").removeClass('selectedrange');
});
$("#storage:range").data().rangeinput.onSlide(function(event,value){
......@@ -371,7 +369,6 @@ function update_wizard_flavors(){
$("#storage:range").data().rangeinput.change(function(event,value){
$("#storage-indicator")[0].value = disks[Number(value)];
$("#custom").click();
$("#custom input").attr('checked', 'checked');
$("#storage-indicator").removeClass('selectedrange');
});
}
......
......@@ -495,6 +495,7 @@ $("#custom").click(function(){
$("#ram").attr('disabled',false);
$("#storage").attr('disabled',false);
$("strong.sliders").style = 'color: #778899;';
$("#custom input").attr('checked', 'checked');
$("#custom").addClass("active");
$("#medium").removeClass("active");
$("#large").removeClass("active");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment