]> git.mxchange.org Git - friendica-addons.git/blobdiff - jappixmini/lib.js
Preparation to make the automatic authentication work (hopefully) reliable
[friendica-addons.git] / jappixmini / lib.js
index a777a7fddfc069462f55468fedb4e64f5c0a50ca..31302732874ea9c6bf186c4e981442f34ec2cd57 100644 (file)
@@ -40,7 +40,7 @@ function jappixmini_addon_get_client_secret(callback) {
                var div = document.getElementById("#jappixmini-password-query-div");
 
                if (!div) {
-                       div = $('<div id="jappixmini-password-query-div" style="position:fixed;padding:1em;background-color:#F00;color:#fff;top:50px;left:50px;">Retype your Friendica password for chatting:<br></div>');
+                       div = $('<div id="jappixmini-password-query-div" style="position:fixed;padding:1em;background-color:#F00;color:#fff;top:50px;left:650px;">Retype your Friendica password for chatting:<br></div>');
 
                        var input = $('<input type="password" id="jappixmini-password-query-input">')
                        div.append(input);
@@ -236,7 +236,7 @@ function jappixmini_addon_subscribe() {
        sendSubscribe(xid, "subscribe");
 }
 
-function jappixmini_addon_start(server, username, proxy, bosh, encrypted, password, nickname, contacts, contacts_hash, autoapprove, autosubscribe) {
+function jappixmini_addon_start(server, username, proxy, bosh, encrypted, password, nickname, contacts, contacts_hash, autoapprove, autosubscribe, groupchats) {
     var handler = function(password){
         // check if settings have changed, reinitialize jappix mini if this is the case
         var settings_identifier = str_sha1(server);
@@ -261,6 +261,7 @@ function jappixmini_addon_start(server, username, proxy, bosh, encrypted, passwo
             HOST_BOSH = bosh;
 
         // start jappix mini
+       MINI_GROUPCHATS = groupchats;
         MINI_NICKNAME = nickname;
         LOCK_HOST = "off";
         launchMini(true, false, server, username, password);