.addclass to .hasclass

10.5.x-maintenance
timman2er 2018-10-09 12:52:15 +02:00
parent b6f3f11ce6
commit 36c5a93dd8
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ function startProcess() {
GUI.tab_switch_cleanup(function () { GUI.tab_switch_cleanup(function () {
// disable active firmware flasher if it was active // disable active firmware flasher if it was active
if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').addClass('active')) { if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').hasClass('active')) {
$('div#flashbutton a.flash_state').removeClass('active'); $('div#flashbutton a.flash_state').removeClass('active');
$('div#flashbutton a.flash').removeClass('active'); $('div#flashbutton a.flash').removeClass('active');
} }