]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/jot-header.tpl
Fixed indentation
[friendica.git] / view / theme / frio / templates / jot-header.tpl
index 25a02b9b6095909134bf256fc03f13432ec34e72..498ed7fb24daf2750fa96a7bab8f223c9d65d7d5 100644 (file)
@@ -1,7 +1,7 @@
 
-<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
-<script type="text/javascript" src="{{$baseurl}}/view/js/linkPreview.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
-<script type="text/javascript" src="{{$baseurl}}/view/theme/frio/js/jot.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{constant('\Friendica\App::VERSION')}}"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/linkPreview.js?v={{constant('\Friendica\App::VERSION')}}"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/theme/frio/js/jot.js?v={{constant('\Friendica\App::VERSION')}}"></script>
 
 <script type="text/javascript">
        var editor = false;
@@ -50,9 +50,9 @@
                $("#profile-jot-text").focus(enableOnUser);
                $("#profile-jot-text").click(enableOnUser);
 
-               // When clicking on a forum in acl we should remove the profile jot textarea
-               // default value before inserting the forum mention
-               $("body").on('click', '#jot-modal .acl-list-item.forum', function(){
+               // When clicking on a group in acl we should remove the profile jot textarea
+               // default value before inserting the group mention
+               $("body").on('click', '#jot-modal .acl-list-item.group', function(){
                        jotTextOpenUI(document.getElementById("profile-jot-text"));
                });
 
                 **/
 
                /* callback */
-               $('body').on('fbrowser.image.main', function(e, filename, embedcode, id) {
+               $('body').on('fbrowser.photo.main', function(e, filename, embedcode, id) {
                        ///@todo this part isn't ideal and need to be done in a better way
                        jotTextOpenUI(document.getElementById("profile-jot-text"));
                        jotActive();
                        addeditortext(embedcode);
                })
-               .on('fbrowser.file.main', function(e, filename, embedcode, id) {
+               .on('fbrowser.attachment.main', function(e, filename, embedcode, id) {
                        jotTextOpenUI(document.getElementById("profile-jot-text"));
                        jotActive();
                        addeditortext(embedcode);
                                }
                        });
 
-                       // Fade the the the container from the items we want to delete
+                       // Fade the container from the items we want to delete
                        for(var key in  ItemsToDelete) {
                                $(ItemsToDelete[key]).fadeTo('fast', 0.33);
                        };
        }
 
        function linkDropper(event) {
-               var linkFound = event.dataTransfer.types.contains("text/uri-list");
+               var linkFound = event.dataTransfer.types.includes("text/uri-list");
                if(linkFound)
                        event.preventDefault();
        }