more deconstructing

This commit is contained in:
sghsri
2019-10-27 10:29:54 -05:00
parent 05623b947c
commit 2f0fe4ae68
3 changed files with 8 additions and 9 deletions

View File

@@ -30,8 +30,8 @@ $(function () {
function importButtonAnimation(button) {
let is_waitlisted_button = $(button).attr('id') == "import_waitlist";
let return_text = is_waitlisted_button ? Template.Import.waitlist_button_text_default : Template.Import.button_text_default;
$(button).text(Template.Import.button_success).css("background-color", Colors.open);
let return_text = is_waitlisted_button ? Text.waitlist_button_text_default : Text.button_text_default;
$(button).text(Text.button_success).css("background-color", Colors.open);
setTimeout(function () {
$(button).html(return_text).css('background-color', Colors.waitlisted);
}, 1000);
@@ -135,4 +135,4 @@ function getDayTimeArray(row, course_info) {
}
}
return day_time_array;
}
}