-<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;
$("#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"));
});
}
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();
}