aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 06:27:13 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 06:27:13 +0100
commit5189a56ef832e1c5c6976f87d77d218bf4a6c221 (patch)
tree4c1aa63a36eeaadab00c61eb05f3f9f5ae0da095 /js
parent751e4181e5e875b9f9850700a3687774e4c53ab3 (diff)
parentd81256d7b051d9a76b087feeb64ac79fb4aeff4d (diff)
downloadvolse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.tar.gz
volse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.tar.bz2
volse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.zip
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'js')
-rwxr-xr-xjs/fk.autocomplete.js20
-rwxr-xr-xjs/main.js4
2 files changed, 12 insertions, 12 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js
index 69fe77e8c..b1db92c41 100755
--- a/js/fk.autocomplete.js
+++ b/js/fk.autocomplete.js
@@ -14,22 +14,22 @@ function ACPopup(elm,backend_url){
this.kp_timer = false;
this.url = backend_url;
+ var w = 530;
+ var h = 130;
+
+
if(typeof elm.editorId == "undefined") {
style = $(elm).offset();
w = $(elm).width();
h = $(elm).height();
}
else {
- style = $(elm.container).offset();
- w = elm.container.offsetWidth;
- h = elm.container.offsetHeight;
- // Quick fix for chrome until I get a tool to inspect the dom
- // Chrome returns 0x0
- if(! w)
- w = 530;
- if(! h)
- h = 130;
-
+ var container = elm.getContainer();
+ if(typeof container != "undefined") {
+ style = $(container).offset();
+ w = $(container).width();
+ h = $(container).height();
+ }
}
style.top=style.top+h;
diff --git a/js/main.js b/js/main.js
index c20455ad1..babd2a1c3 100755
--- a/js/main.js
+++ b/js/main.js
@@ -486,9 +486,9 @@
return a.join('');
}
- function groupChangeMember(gid,cid) {
+ function groupChangeMember(gid, cid, sec_token) {
$('body .fakelink').css('cursor', 'wait');
- $.get('group/' + gid + '/' + cid, function(data) {
+ $.get('group/' + gid + '/' + cid + "?t=" + sec_token, function(data) {
$('#group-update-wrapper').html(data);
$('body .fakelink').css('cursor', 'auto');
});