From 05aa5ed347aa3c8debd314bd0d9bddceb95f9069 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 4 Aug 2017 18:07:47 +0200 Subject: [PATCH] hide new feature until it is finished --- www/common/common-messaging.js | 114 ++++++++++++++++++++++++--------- www/common/cryptpad-common.js | 1 - www/contacts/main.js | 11 ++-- www/contacts/main.less | 3 +- 4 files changed, 92 insertions(+), 37 deletions(-) diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index d82bc03aa..e03963ecb 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -8,23 +8,6 @@ define([ inputs: [], }; - var Messages; - Msg.setEditable = function (bool) { - bool = !bool; - Msg.inputs.forEach(function (input) { - if (bool) { - input.setAttribute('disabled', bool); - } else { - input.removeAttribute('disabled'); - } - - if (Messages) { - // set placeholder - var placeholder = bool? Messages.disconnected: Messages.contacts_typeHere; - input.setAttribute('placeholder', placeholder); - } - }); - }; var Types = { message: 'MSG', @@ -310,7 +293,7 @@ define([ } }; - var createChatBox = function (common, $container, curvePublic) { + var createChatBox = function (common, $container, curvePublic, messenger) { var data = getFriend(common, curvePublic); var proxy = common.getProxy(); @@ -357,24 +340,49 @@ define([ var $input = $('