tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-07-28 09:30:05 +03:00
parent 5172666b45
commit 7927cdf2ee

View File

@ -43,7 +43,10 @@ var reload = () => {
var update_editor = function(){ var update_editor = function(){
// XXX make this update on enter... // XXX make this update on enter...
$('.title') $('.title')
.on('blur', () => { .focus(function(){
$(this).text(Wiki.title)
})
.blur(() => {
Wiki.title = $('.title').text() Wiki.title = $('.title').text()
reload() reload()
}) })