X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=jappixmini%2Flib.js;h=31302732874ea9c6bf186c4e981442f34ec2cd57;hb=83425a7f269e57cf9d3959da59bfd4191e86ee91;hp=deeb8b466794b785690fe2d18bb8fa1a66018bff;hpb=b7b302105316a5915e02d28803aab61809633b3e;p=friendica-addons.git diff --git a/jappixmini/lib.js b/jappixmini/lib.js index deeb8b46..31302732 100644 --- a/jappixmini/lib.js +++ b/jappixmini/lib.js @@ -1,3 +1,9 @@ +// +// Copyright 2012 "Leberwurscht" +// +// This file is dual-licensed under the MIT license (see MIT.txt) and the AGPL license (see jappix/COPYING). +// + function jappixmini_addon_xor(str1, str2) { if (str1.length != str2.length) throw "not same length"; @@ -34,7 +40,7 @@ function jappixmini_addon_get_client_secret(callback) { var div = document.getElementById("#jappixmini-password-query-div"); if (!div) { - div = $('
Retype your Friendica password for chatting:
'); + div = $('
Retype your Friendica password for chatting:
'); var input = $('') div.append(input); @@ -230,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); @@ -255,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);