Remove hardcoded values
This commit is contained in:
parent
7f4206e9b2
commit
d3c7c04571
7
main.js
7
main.js
|
@ -8,15 +8,16 @@ require(["jquery", "converse"], function($) {
|
||||||
buttons: {
|
buttons: {
|
||||||
"Connect": function () {
|
"Connect": function () {
|
||||||
$(document).trigger('connect', {
|
$(document).trigger('connect', {
|
||||||
jid: 'opkode@jappix.com',
|
jid: $('#jid').val(),
|
||||||
password: 'jpwagw00rd!',
|
password: $('#password').val(),
|
||||||
bosh_service_url: 'https://bind.jappix.com/'
|
bosh_service_url: $('#bosh_service_url').val()
|
||||||
});
|
});
|
||||||
$('#password').val('');
|
$('#password').val('');
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).bind('connect', function (ev, data) {
|
$(document).bind('connect', function (ev, data) {
|
||||||
var connection = new Strophe.Connection(data.bosh_service_url);
|
var connection = new Strophe.Connection(data.bosh_service_url);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user