$("#jot-content").append(jotcache);
// Clear the jotcache.
jotcache = '';
+ // Destroy the attachment linkPreviw for Jot.
+ if (typeof linkPreview === 'object') {
+ linkPreview.destroy();
+ }
});
// Add Colorbox for viewing Network page images.
modal.show();
$("#jot-popup").show();
+ linkPreview = $('#profile-jot-text').linkPreview();
}
});
}