From 36f6698b9b9586114c8265d7021406ac6263effe Mon Sep 17 00:00:00 2001 From: raku-cat Date: Thu, 27 Dec 2018 03:22:36 -0600 Subject: [PATCH] Thanks @rr- --- client/html/post_edit_sidebar.tpl | 1 + client/js/controllers/post_main_controller.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/client/html/post_edit_sidebar.tpl b/client/html/post_edit_sidebar.tpl index e13070af..0ab7277f 100644 --- a/client/html/post_edit_sidebar.tpl +++ b/client/html/post_edit_sidebar.tpl @@ -98,6 +98,7 @@ <%= ctx.makeTextInput({ text: 'Source', name: 'source', + value: ctx.post.source }) %> <% } %> diff --git a/client/js/controllers/post_main_controller.js b/client/js/controllers/post_main_controller.js index a482b844..19148526 100644 --- a/client/js/controllers/post_main_controller.js +++ b/client/js/controllers/post_main_controller.js @@ -147,6 +147,9 @@ class PostMainController extends BasePostController { if (e.detail.thumbnail !== undefined) { post.newThumbnail = e.detail.thumbnail; } + if (e.detail.source !== undefined) { + post.source = e.detail.source; + } post.save() .then(() => { this._view.sidebarControl.showSuccess('Post saved.');