6.3: new error and save popups
- remade error and save popups. both are now properly located and sized on mobile screens. this is the first step in modernizing cobalt ui! - fixed >> button getting stuck in error state.
This commit is contained in:
@@ -245,11 +245,6 @@ function changeSwitcher(li, b) {
|
||||
}
|
||||
}
|
||||
}
|
||||
function internetError() {
|
||||
eid("url-input-area").disabled = false
|
||||
changeDownloadButton(2, '!!');
|
||||
popup("error", 1, loc.noInternet);
|
||||
}
|
||||
function checkbox(action) {
|
||||
sSet(action, !!eid(action).checked);
|
||||
switch(action) {
|
||||
@@ -283,8 +278,9 @@ function changeButton(type, text) {
|
||||
case 0: //error
|
||||
eid("url-input-area").disabled = false
|
||||
eid("url-clear").style.display = "block";
|
||||
changeDownloadButton(2, '!!')
|
||||
changeDownloadButton(2, '!!');
|
||||
popup("error", 1, text);
|
||||
setTimeout(() => { changeButton(1); }, 2500);
|
||||
break;
|
||||
case 1: //enable back
|
||||
changeDownloadButton(1, '>>');
|
||||
@@ -299,6 +295,12 @@ function changeButton(type, text) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
function internetError() {
|
||||
eid("url-input-area").disabled = false
|
||||
changeDownloadButton(2, '!!');
|
||||
setTimeout(() => { changeButton(1); }, 2500);
|
||||
popup("error", 1, loc.noInternet);
|
||||
}
|
||||
function resetSettings() {
|
||||
localStorage.clear();
|
||||
window.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user