Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/database.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DB_BASE_PATH = 'data/'
DB_BASE_PATH = 'data'
/**
* @constructor
*/
Expand Down
15 changes: 8 additions & 7 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ function Main(ui_materias, ui_turmas, ui_logger, ui_combinacoes, ui_horario,
url,
{
method: 'PUT',
body: JSON.stringify(data),
body: data,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
Expand All @@ -681,13 +681,14 @@ function Main(ui_materias, ui_turmas, ui_logger, ui_combinacoes, ui_horario,
'erro ao salvar horário para "' + identifier + '"',
'lightcoral'
);
} else {
ui_logger.set_text(
'horário para "' + identifier + '" foi salvo',
'lightgreen'
);
persistence.write_id(identifier);
mudancas = false;
}
ui_logger.set_text(
'horário para "' + identifier + '" foi salvo',
'lightgreen'
);
persistence.write_id(identifier);
mudancas = false;
});

ui_logger.waiting("salvando horário para '" + identifier + "'");
Expand Down