XMPP authentication improvements. Makes it possible to authenticate during the conference.

This commit is contained in:
paweldomas
2015-03-13 15:08:05 +01:00
parent 7c201573fb
commit 588c2d9e4b
7 changed files with 320 additions and 45 deletions
+3 -9
View File
@@ -94,7 +94,7 @@ var messageHandler = (function(my) {
if (persistent) {
args.closeText = '';
}
return $.prompt(msgString, args);
return new Impromptu(msgString, args);
};
/**
@@ -108,16 +108,10 @@ var messageHandler = (function(my) {
* Shows a dialog with different states to the user.
*
* @param statesObject object containing all the states of the dialog
* @param loadedFunction function to be called after the prompt is fully loaded
* @param stateChangedFunction function to be called when the state of the dialog is changed
*/
my.openDialogWithStates = function(statesObject, loadedFunction, stateChangedFunction) {
my.openDialogWithStates = function (statesObject, options) {
var myPrompt = $.prompt(statesObject);
myPrompt.on('impromptu:loaded', loadedFunction);
myPrompt.on('impromptu:statechanged', stateChangedFunction);
return new Impromptu(statesObject, options);
};
/**