]> git.mxchange.org Git - friendica.git/commitdiff
various testbubble fixes
authorFriendika <info@friendika.com>
Wed, 9 Nov 2011 08:29:14 +0000 (00:29 -0800)
committerFriendika <info@friendika.com>
Wed, 9 Nov 2011 08:29:14 +0000 (00:29 -0800)
view/jot-header.tpl
view/theme/dispy/jot-header.tpl
view/theme/testbubble/jot-header.tpl
view/theme/testbubble/jot.tpl
view/theme/testbubble/mail_head.tpl

index 9ded3e9b43061f57dc7000724c71bd3aa65f503b..81d7d6d91863fe053a526b3264df8709a0ab3c78 100644 (file)
@@ -222,8 +222,9 @@ function initEditor(cb){
                event.target.textContent = reply;
                event.preventDefault();
                if(reply && reply.length) {
+                       reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        tinyMCE.execCommand('mceInsertRawHTML',false,data);
index 79b10fd40c25e6a0b219f437ada690638bce7e1a..7a1012230f27174e74a350d954ce6ee10fc882df 100644 (file)
@@ -229,8 +229,9 @@ function initEditor(cb) {
                event.target.textContent = reply;
                event.preventDefault();
                if(reply && reply.length) {
+                       reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        tinyMCE.execCommand('mceInsertRawHTML',false,data);
index 0093bf82a85b48bfa7323b6a5704864d47f6a09d..5ada1fdf88aac121e7806624effc4b2b993b56d7 100644 (file)
@@ -32,16 +32,37 @@ function initEditor(cb) {
                 content_css: "$baseurl/view/custom_tinymce.css",
                 theme_advanced_path : false,
                 setup : function(ed) {
-                     //Character count
-                        ed.onKeyUp.add(function(ed, e) {
-                                var txt = tinyMCE.activeEditor.getContent();
-                                textlen = txt.length;
-                                if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
-                                        $('#profile-jot-desc').html(ispublic);
-                                }
-                                else {
-                                        $('#profile-jot-desc').html('&nbsp;');
-                                }
+                                       cPopup = null;
+                                       ed.onKeyDown.add(function(ed,e) {
+                                               if(cPopup !== null)
+                                                       cPopup.onkey(e);
+                                       });
+
+
+
+                                       ed.onKeyUp.add(function(ed, e) {
+                                               var txt = tinyMCE.activeEditor.getContent();
+                                               match = txt.match(/@([^ \n]+)$/);
+                                               if(match!==null) {
+                                                       if(cPopup === null) {
+                                                               cPopup = new ACPopup(this,baseurl+"/acl");
+                                                       }
+                                                       if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
+                                                       if(! cPopup.ready) cPopup = null;
+                                               }
+                                               else {
+                                                       if(cPopup !== null) { cPopup.close(); cPopup = null; }
+                                               }
+
+                                               textlen = txt.length;
+                                               if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
+                                                       $('#profile-jot-desc').html(ispublic);
+                                               }
+                        else {
+                            $('#profile-jot-desc').html('&nbsp;');
+                        }
+
+                                                               //Character count
 
                                 if(textlen <= 140) {
                                         $('#character-counter').removeClass('red');
@@ -67,7 +88,6 @@ function initEditor(cb) {
                                 $("#profile-upload-wrapper").show();
                                 $("#profile-attach-wrapper").show();
                                 $("#profile-link-wrapper").show();
-                                $("#profile-youtube-wrapper").show();
                                 $("#profile-video-wrapper").show();
                                 $("#profile-audio-wrapper").show();
                                 $("#profile-location-wrapper").show();
@@ -163,20 +183,13 @@ function initEditor(cb) {
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                tinyMCE.execCommand('mceInsertRawHTML',false,data);
                                $('#profile-rotator').hide();
                        });
                }
        }
 
-       function jotGetVideo() {
-               reply = prompt("$utubeurl");
-               if(reply && reply.length) {
-                       tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]');
-               }
-       }
-
        function jotVideoURL() {
                reply = prompt("$vidurl");
                if(reply && reply.length) {
@@ -229,8 +242,9 @@ function initEditor(cb) {
                event.target.textContent = reply;
                event.preventDefault();
                if(reply && reply.length) {
+                       reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        tinyMCE.execCommand('mceInsertRawHTML',false,data);
index d60e8adc22046589aa9b8c31f65818ba7a4984f1..e0e8645727c6b4b915e2948695f6bcb1e83fd0f1 100644 (file)
@@ -30,9 +30,6 @@
        <div id="profile-link-wrapper" class="jot-tool" style="display: none;" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" >
                <a id="profile-link" class="icon border  link" title="$weblink" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"></a>
        </div> 
-       <div id="profile-youtube-wrapper" class="jot-tool" style="display: none;" >
-               <a id="profile-youtube" class="icon border  youtube" title="$youtube" onclick="jotGetVideo(); return false;"></a>
-       </div> 
        <div id="profile-video-wrapper" class="jot-tool" style="display: none;" >
                <a id="profile-video" class="icon border  video" title="$video" onclick="jotVideoURL(); return false;"></a>
        </div> 
index 2a4596cd668a4f8ae3f376996fa78526d19b831e..afb65f5373db29bff0e0b4165c5303d713eff623 100644 (file)
@@ -1,7 +1,3 @@
 <h3>$messages</h3>
 
-<ul class="tabs-wrapper">
-<li><a href="message" class="tabs button {{if $activetab==inbox}}active{{endif}}">$inbox</a></li>
-<li><a href="message/sent" class="tabs button {{if $activetab==sent}}active{{endif}}">$outbox</a></li>
-<li><a href="message/new" class="tabs button {{if $activetab==new}}active{{endif}}">$new</a></li>
-</ul>
+$tab_content