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