-<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js" ></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/linkPreview.js"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/theme/frio/js/jot.js"></script>
<script type="text/javascript">
var editor = false;
</script>
<script type="text/javascript">
- var ispublic = '{{$ispublic}}';
+ var ispublic = '{{$ispublic nofilter}}';
+ aStr.linkurl = '{{$linkurl}}';
$(document).ready(function() {
}
}
- function jotGetLink() {
- var currentText = $("#profile-jot-text").val();
- var noAttachment = '';
- reply = prompt("{{$linkurl}}");
- if(reply && reply.length) {
- reply = bin2hex(reply);
- $('#profile-rotator').show();
- if (currentText.includes("[attachment") && currentText.includes("[/attachment]")) {
- noAttachment = '&noAttachment=1';
- }
- $.get('parse_url?binurl=' + reply + noAttachment, function(data) {
- addeditortext(data);
- $('#profile-rotator').hide();
- });
- autosize.update($("#profile-jot-text"));
- }
- }
-
function jotVideoURL() {
reply = prompt("{{$vidurl}}");
if(reply && reply.length) {
}
}
-
function jotGetLocation() {
reply = prompt("{{$whereareu}}", $('#jot-location').val());
if(reply && reply.length) {
}
function itemFiler(id) {
-
var bordercolor = $("input").css("border-color");
$.get('filer/', function(data){
autosize.update($("#profile-jot-text"));
}
- {{$geotag}}
+ {{$geotag nofilter}}
function jotShow() {
var modal = $('#jot-modal').modal();
.find('#jot-modal-content')
.append(jotcache)
.modal.show;
+
+ // Jot attachment live preview.
+ linkPreview = $('#profile-jot-text').linkPreview();
}
// Activate the jot text section in the jot modal