]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/jot-header.tpl
Values are sanitized, messages are not relayed when there is no signature
[friendica.git] / view / templates / jot-header.tpl
index cb841c314d5194cb610fc9eff36edf7c7c48b268..b06f6032c30ea338f909fde7975da9309b01f30a 100644 (file)
@@ -8,16 +8,24 @@ var plaintext = '{{$editselect}}';
 
 function initEditor(cb){
        if (editor==false){
+               var  colorbox_options = {
+                       {{if $APP->is_mobile}}
+                       'width' : '100%',
+                       'height' : '100%',
+                       {{/if}}
+                       'inline' : true,
+                       'transition' : 'elastic'
+               }
+               
+               
+               
                $("#profile-jot-text-loading").show();
                if(plaintext == 'none') {
                        $("#profile-jot-text-loading").hide();
                        $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        editor = true;
-                       $("a#jot-perms-icon").colorbox({
-                               'inline' : true,
-                               'transition' : 'elastic'
-                       });
+                       $("a#jot-perms-icon").colorbox(colorbox_options);
                        $(".jothidden").show();
                        if (typeof cb!="undefined") cb();
                        return;
@@ -74,7 +82,7 @@ function initEditor(cb){
                                        }
                                        else {
                                                $('#profile-jot-desc').html(' ');
-                                       }        
+                                       }
 
                                 //Character count
 
@@ -107,10 +115,7 @@ function initEditor(cb){
                });
                editor = true;
                // setup acl popup
-               $("a#jot-perms-icon").colorbox({
-                       'inline' : true,
-                       'transition' : 'elastic'
-               }); 
+               $("a#jot-perms-icon").colorbox(colorbox_options);
        } else {
                if (typeof cb!="undefined") cb();
        }
@@ -127,20 +132,20 @@ function enableOnUser(){
 <script>
        var ispublic = '{{$ispublic}}';
 
-       
+
        $(document).ready(function() {
-               
+
                /* enable tinymce on focus and click */
                $("#profile-jot-text").focus(enableOnUser);
                $("#profile-jot-text").click(enableOnUser);
 
-               
-               
-               
+
+
+
                /* show images / file browser window
-                * 
+                *
                 **/
-       
+
                /* callback */
                $('body').on('fbrowser.image.main', function(e, filename, embedcode, id) {
                        $.colorbox.close();
@@ -150,16 +155,16 @@ function enableOnUser(){
                        $.colorbox.close();
                        addeditortext(embedcode);
                });
-       
+
                $('#wall-image-upload').on('click', function(){
-                       $.colorbox({href: baseurl + "/fbrowser/image/?mode=minimal#main", iframe:true,innerWidth:'500px',innerHeight:'400px'})
+                       Dialog.doImageBrowser("main");
                });
-               
+
                $('#wall-file-upload').on('click', function(){
-                       $.colorbox({href: baseurl + "/fbrowser/file/?mode=minimal#main", iframe:true,innerWidth:'500px',innerHeight:'400px'})
+                       Dialog.doFileBrowser("main");
                });
-               
-               /**     
+
+               /**
                        var uploader = new window.AjaxUpload(
                                'wall-image-upload',
                                { action: 'wall_upload/{{$nickname}}',
@@ -168,7 +173,7 @@ function enableOnUser(){
                                        onComplete: function(file,response) {
                                                addeditortext(response);
                                                $('#profile-rotator').hide();
-                                       }                                
+                                       }
                                }
                        );
                        var file_uploader = new window.AjaxUpload(
@@ -179,10 +184,10 @@ function enableOnUser(){
                                        onComplete: function(file,response) {
                                                addeditortext(response);
                                                $('#profile-rotator').hide();
-                                       }                                
+                                       }
                                }
                        );
-               
+
                }
                **/
        });
@@ -301,9 +306,9 @@ function enableOnUser(){
        }
 
        function itemFiler(id) {
-               
+
                var bordercolor = $("input").css("border-color");
-               
+
                $.get('filer/', function(data){
                        $.colorbox({html:data});
                        $("#id_term").keypress(function(){
@@ -312,7 +317,7 @@ function enableOnUser(){
                        $("#select_term").change(function(){
                                $("#id_term").css("border-color",bordercolor);
                        })
-                       
+
                        $("#filer_save").click(function(e){
                                e.preventDefault();
                                reply = $("#id_term").val();
@@ -345,7 +350,7 @@ function enableOnUser(){
                }
                else
                        tinyMCE.execCommand('mceInsertRawHTML',false,data);
-       }       
+       }
 
        {{$geotag}}