]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/templates/jot-header.tpl
Merge pull request #11018 from annando/api-status
[friendica.git] / view / theme / smoothly / templates / jot-header.tpl
index eb8c13f2174c0a8ac310cfbf2805569ed8497c0d..08028be8204fbf9f3124fe783a841bc9b59e9382 100644 (file)
@@ -10,7 +10,7 @@ function initEditor(callback) {
                $("#profile-jot-text-loading").show();
                $("#profile-jot-text-loading").hide();
                $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
-               $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
+               $("#profile-jot-text").editor_autocomplete(baseurl + '/search/acl');
                $("#profile-jot-text").bbco_autocomplete('bbcode');
                $(".jothidden").show();
                $("a#jot-perms-icon").colorbox({
@@ -48,11 +48,11 @@ function enableOnUser(){
 
 </script>
 
-<script type="text/javascript" src="js/ajaxupload.js" >
+<script type="text/javascript" src="view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}">
 </script>
 
 <script>
-       var ispublic = '{{$ispublic}}';
+       var ispublic = '{{$ispublic nofilter}}';
 
        $(document).ready(function() {
 
@@ -86,7 +86,7 @@ function enableOnUser(){
                $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
                        var selstr;
                        $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
-                               selstr = $(this).text();
+                               selstr = $(this).html();
                                $('#jot-perms-icon').removeClass('unlock').addClass('lock');
                                $('#jot-public').hide();
                                $('.profile-jot-net input').attr('disabled', 'disabled');
@@ -129,7 +129,7 @@ function enableOnUser(){
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?binurl=' + reply, function(data) {
+                       $.get('parseurl?binurl=' + reply, function(data) {
                                addeditortext(data);
                                $('#profile-rotator').hide();
                        });
@@ -190,7 +190,7 @@ function enableOnUser(){
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?binurl=' + reply, function(data) {
+                       $.get('parseurl?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        addeditortext(data);
@@ -240,6 +240,7 @@ function enableOnUser(){
 //                                     if(timer) clearTimeout(timer);
 //                                     timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
+                                       force_update = true;
                                        $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
@@ -263,6 +264,6 @@ function enableOnUser(){
        }
 
 
-       {{$geotag}}
+       {{$geotag nofilter}}
 
 </script>