From f96c52a09abe38803eaa9c0f49d91bc919005bf9 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 24 Aug 2013 02:20:00 +0200 Subject: [PATCH] Bugfix. Set the connection attr on converse. Updates #41 --- converse.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/converse.js b/converse.js index 6e42484c4..f4cfa6c31 100644 --- a/converse.js +++ b/converse.js @@ -2517,13 +2517,11 @@ ''), connect: function ($form, jid, password) { - var button = null, - connection = new Strophe.Connection(converse.bosh_service_url); if ($form) { - $button = $form.find('input[type=submit]'); - $button.hide().after(''); + $form.find('input[type=submit]').hide().after('