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:
parent
3f8bbd0f52
commit
1b8830986e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user