From 4126de8e25f91785591aec26a1aa7a58e79ea90a Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 14 May 2015 23:13:55 +0200 Subject: [PATCH] Added blurring of active element on post edit Integrates better with vimperator. --- public_html/js/Presenters/PostEditPresenter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/js/Presenters/PostEditPresenter.js b/public_html/js/Presenters/PostEditPresenter.js index 94e4b02d..3f8740da 100644 --- a/public_html/js/Presenters/PostEditPresenter.js +++ b/public_html/js/Presenters/PostEditPresenter.js @@ -126,6 +126,8 @@ App.Presenters.PostEditPresenter = function( return; } + $(document.activeElement).blur(); + promise.wait(api.post('/posts/' + post.id, formData)) .then(function(response) { tagList.refreshTags();