From f206220527a53d92393af4246ee5c801fd4b4869 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 29 Jun 2016 20:39:29 +0100 Subject: [PATCH] need to finish schedule; build is going to fail --- assets/public/js/application.js | 27 +++++++++++++++-- hugo.go | 52 +++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/assets/public/js/application.js b/assets/public/js/application.js index 59f121b3..2bb54df6 100644 --- a/assets/public/js/application.js +++ b/assets/public/js/application.js @@ -61,7 +61,7 @@ document.addEventListener('editor', event => { `); - if (document.getElementById('date') || document.getElementById('publishdate')) { + if ((document.getElementById('date') || document.getElementById('publishdate')) && document.getElementById('editor').dataset.kind == "complete") { document.querySelector('#editor .right').insertAdjacentHTML('afterbegin', `