jappix/jappix — pull request #78 by regilero (2012-04-26 10:47:47+00:00)
Title: Allow connection callbacks functions on doLogin call

I made theses smalls changes to allow an array of callbacks to be given on the doLogin function. I use it on an overwrite of the connection.js functions and it's quite usefull to add some new behaviors after successfull login.
For example I can use it this way:

doLogin(username,domain,pass,resource,priority,false, {
'onconnect' : function() {
jQuery('.tools-all:first').remove();
jQuery('.tools-all').css('float','left');
jQuery("#buddy-list").hide();
jQuery("#left-content").hide();
jQuery("#right-content").css('left' , '0px');
jQuery("div.update",jQuery("#channel")).hide();
}
});