From d3c7c04571e9f271fab00b74a389209c2949ad83 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 6 Mar 2013 11:40:15 +0200 Subject: [PATCH] Remove hardcoded values --- main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 53e7fc117..43a9c7319 100644 --- a/main.js +++ b/main.js @@ -8,15 +8,16 @@ require(["jquery", "converse"], function($) { buttons: { "Connect": function () { $(document).trigger('connect', { - jid: 'opkode@jappix.com', - password: 'jpwagw00rd!', - bosh_service_url: 'https://bind.jappix.com/' + jid: $('#jid').val(), + password: $('#password').val(), + bosh_service_url: $('#bosh_service_url').val() }); $('#password').val(''); $(this).dialog('close'); } } }); + $(document).bind('connect', function (ev, data) { var connection = new Strophe.Connection(data.bosh_service_url);