aboutsummaryrefslogtreecommitdiffstats
path: root/js/fk.autocomplete.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-03 20:40:56 -0700
committerFriendika <info@friendika.com>2011-11-03 20:40:56 -0700
commite19b5971804f0e07d7f3e4ad6d7b71e05ff49ed5 (patch)
treef121a8086601cc30521ff59970393f5908b57129 /js/fk.autocomplete.js
parent5f531aa53734818aebb602a8833ea76ec33db90d (diff)
downloadvolse-hubzilla-e19b5971804f0e07d7f3e4ad6d7b71e05ff49ed5.tar.gz
volse-hubzilla-e19b5971804f0e07d7f3e4ad6d7b71e05ff49ed5.tar.bz2
volse-hubzilla-e19b5971804f0e07d7f3e4ad6d7b71e05ff49ed5.zip
tinymce tag complete stuff
Diffstat (limited to 'js/fk.autocomplete.js')
-rw-r--r--js/fk.autocomplete.js28
1 files changed, 18 insertions, 10 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js
index c17d61fc5..45de0cb2d 100644
--- a/js/fk.autocomplete.js
+++ b/js/fk.autocomplete.js
@@ -13,20 +13,28 @@ function ACPopup(elm,backend_url){
this.ready=true;
this.kp_timer = false;
this.url = backend_url;
-
- style = $(elm).offset();
- w = $(elm).width();
- h = $(elm).height();
+
+ if(typeof elm.editorId == "undefined") {
+ style = $(elm).offset();
+ w = $(elm).width();
+ h = $(elm).height();
+ }
+ else {
+ style = $('.profile-jot-text').offset();
+ w = 300;
+ h = 150;
+
+ }
style.top=style.top+h;
style.width = w;
style.position = 'absolute';
-/* style['max-height'] = '150px';
- style.border = '1px solid red';
- style.background = '#cccccc';
+ /* style['max-height'] = '150px';
+ style.border = '1px solid red';
+ style.background = '#cccccc';
- style.overflow = 'auto';
- style['z-index'] = '100000';
-*/
+ style.overflow = 'auto';
+ style['z-index'] = '100000';
+ */
style.display = 'none';
this.cont = $("<div class='acpopup'></div>");