From 98a1e40eb2f7a778bde1e8fe2ce561cceb75323e Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 14 Jan 2018 08:11:36 +0100 Subject: [PATCH] Fixed error --- assets/js/components/posts/ui.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index bb6afd32..d7482b71 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -183,6 +183,13 @@ ComunicWeb.components.posts.ui = { innerHTML: "" }); + + //Make buttons lives + editButtonLink.onclick = function(){ + + + + }; } //Add a button to delete the post if the user is allowed @@ -616,7 +623,7 @@ ComunicWeb.components.posts.ui = { * @param {Object} name The name of the visibility level * @return {HTMLElement} The created element container */ - _add_visibility_menu_item(target, name){ + _add_visibility_menu_item: function(target, name){ //Create container var itemContainer = createElem2({