]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/jot-header.tpl
smooth the comix comment box
[friendica.git] / view / theme / dispy / jot-header.tpl
index e72000b4ce811b335e702cc7545a2492b2b8f024..4c8f59d7969bd2348ebbacf1d3daa26da4f6f4e2 100644 (file)
@@ -1,12 +1,7 @@
-<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
-<script type="text/javascript" src="$baseurl/js/ajaxupload.js"></script>
 <script type="text/javascript">
-
 var editor = false;
 var textlen = 0;
 var plaintext = '$editselect';
-// this is here because of the silly tinymce error. didn't help.
-var skin = 'default';
 
 function initEditor(cb) {
        if (editor==false) {
@@ -120,13 +115,18 @@ function enableOnUser(){
        initEditor();
 }
 
+</script>
+<script type="text/javascript" src="$baseurl/js/ajaxupload.js"></script>
+<script type="text/javascript">
        var ispublic = '$ispublic';
        var addtitle = '$addtitle';
 
        $(document).ready(function() {
+               
                /* enable tinymce on focus and click */
                $("#profile-jot-text").focus(enableOnUser);
                $("#profile-jot-text").click(enableOnUser);
+               /* enable character counter */
                $("#profile-jot-text").focus(charCounter);
                $("#profile-jot-text").click(charCounter);
 
@@ -263,6 +263,18 @@ function enableOnUser(){
                }
        }
 
+       function itemFiler(id) {
+               reply = prompt("$fileas");
+               if(reply && reply.length) {
+                       commentBusy = true;
+                       $('body').css('cursor', 'wait');
+                       $.get('filer/' + id + '?term=' + reply);
+                       if(timer) clearTimeout(timer);
+                       timer = setTimeout(NavUpdate,3000);
+                       liking = 1;
+               }
+       }
+
        function jotClearLocation() {
                $('#jot-coord').val('');
                $('#profile-nolocation-wrapper').hide();