mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge pull request #623 from bloqaudio/fix/save-button-dirty
web: highlight Save to flash only when there are unsaved changes
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -836,6 +836,7 @@ function isConfCmd(line){
|
||||
function setDirty(d){
|
||||
S.dirty=d;
|
||||
$("dirty").classList.toggle("show",d);
|
||||
$("saveBtn").classList.toggle("pri",d);
|
||||
}
|
||||
function postCmd(cmd,quiet){
|
||||
return api("/cmd",{method:"POST",body:cmd}).then(function(r){
|
||||
|
||||
Reference in new issue
Block a user