1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-04 17:46:42 +02:00

save item on title input blur...if its already saved.

This commit is contained in:
Kushagra Gour 2016-11-13 16:52:01 +05:30
parent 3f8bbd0f52
commit 1b8830986e

View File

@ -548,6 +548,12 @@
}
});
titleInput.addEventListener('blur', function () {
if (currentItem.id) {
saveItem();
}
})
// Attach listeners on mode change menu items
var modeItems = [].slice.call($all('.js-modes-menu a'));
modeItems.forEach(function (item) {