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 = $('