attachment preview: frio- initialize linkPreview on jot modal open (so we can use the linkPreview for new posts and edit post modal)
This commit is contained in:
parent
b065356c28
commit
3a15c22028
4 changed files with 43 additions and 27 deletions
|
@ -22,6 +22,10 @@ $(document).ready(function(){
|
|||
$("#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.
|
||||
|
@ -292,6 +296,7 @@ function editpost(url) {
|
|||
|
||||
modal.show();
|
||||
$("#jot-popup").show();
|
||||
linkPreview = $('#profile-jot-text').linkPreview();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue