Commit 23b80394 authored by Дмитрий Никулин's avatar Дмитрий Никулин Committed by Vitaly Lipatov

Fix sending form without asking about time

parent 3e3a8e74
......@@ -29,6 +29,13 @@ function initTimer(){
document.getElementById("timerblock").style.display = 'block';
timer = new Timer('bug:'+protocol+bugId, updateTimer);
timer.setAutoUpdate(UPDATE_INTERVAL);
// Вешаем обработчик на кнопку "сохранить"
document.querySelector('#commit').addEventListener('click', function (event) {
// Не сабмитим форму
event.preventDefault();
mysubmit();
});
}
// this при вызове - объект таймера
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment