]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/jot-header.tpl
template engine rework
[friendica.git] / view / theme / smoothly / jot-header.tpl
index 0d89c1c6b949949a265d4194eeacf371cea484ff..79d8799a5f6647f919bb493e9501c7872d13f022 100644 (file)
@@ -14,9 +14,9 @@ function initEditor(cb){
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        $(".jothidden").show();
                        editor = true;
-                       $("a#jot-perms-icon").fancybox({
-                               'transitionIn' : 'elastic',
-                               'transitionOut' : 'elastic'
+                       $("a#jot-perms-icon").colorbox({
+                                               'inline' : true,
+                                               'transition' : 'elastic'
                        });
                                    $("#profile-jot-submit-wrapper").show();
                                                                {{ if $newpost }}
@@ -53,9 +53,9 @@ function initEditor(cb){
                 entity_encoding : "raw",
                 add_unload_trigger : false,
                 remove_linebreaks : false,
-                force_p_newlines : false,
-                force_br_newlines : true,
-                forced_root_block : '',
+                //force_p_newlines : false,
+                //force_br_newlines : true,
+                forced_root_block : 'div',
                 convert_urls: false,
                 content_css: "$baseurl/view/custom_tinymce.css",
                 theme_advanced_path : false,
@@ -133,9 +133,9 @@ function initEditor(cb){
         });
         editor = true;
         // setup acl popup
-        $("a#jot-perms-icon").fancybox({
-            'transitionIn' : 'none',
-            'transitionOut' : 'none'
+        $("a#jot-perms-icon").colorbox({
+                       'inline' : true,
+                       'transition' : 'elastic'
         }); 
     } else {
         if (typeof cb!="undefined") cb();
@@ -324,7 +324,7 @@ function enableOnUser(){
                var bordercolor = $("input").css("border-color");
                
                $.get('filer/', function(data){
-                       $.fancybox(data);
+                       $.colorbox({html:data});
                        $("#id_term").keypress(function(){
                                $(this).css("border-color",bordercolor);
                        })
@@ -342,7 +342,7 @@ function enableOnUser(){
 //                                     if(timer) clearTimeout(timer);
 //                                     timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
-                                       $.fancybox.close();
+                                       $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
                                }