kopia lustrzana https://github.com/botheredbybees/kilnController
Fix bug in editor to drop unsaved changes and restore original profile
rodzic
55a3d61db9
commit
87a6690c33
|
@ -162,6 +162,8 @@ function enterEditMode()
|
|||
|
||||
function leaveEditMode()
|
||||
{
|
||||
selected_profile_name = $('#form_profile_name').val();
|
||||
ws_storage.send('GET');
|
||||
state="IDLE";
|
||||
$('#edit').hide();
|
||||
$('#profile_selector').show();
|
||||
|
@ -246,8 +248,6 @@ function saveProfile()
|
|||
|
||||
ws_storage.send(put_cmd);
|
||||
|
||||
selected_profile_name = name;
|
||||
|
||||
leaveEditMode();
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue