mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:10:11 +00:00
frio:fix jot - posts with images were not available on wall
This commit is contained in:
parent
2a282a9555
commit
e374ec2bc8
3 changed files with 64 additions and 62 deletions
|
@ -234,15 +234,15 @@ function editpost(url) {
|
|||
}
|
||||
|
||||
var modal = $('#jot-modal').modal();
|
||||
url = url + " #profile-jot-form";
|
||||
url = url + " #jot-sections";
|
||||
|
||||
//var rand_num = random_digits(12);
|
||||
$(".jot-nav .jot-perms-lnk").parent("li").addClass("hidden");
|
||||
|
||||
// For editpost we load the modal html form the edit page. So we would have two jot forms in
|
||||
// For editpost we load the modal html of "jot-sections" of the edit page. So we would have two jot forms in
|
||||
// the page html. To avoid js conflicts we store the original jot in the variable jotcache.
|
||||
// After closing the modal original jot should be restored at its orginal position in the html structure.
|
||||
jotcache = $("#jot-content > #profile-jot-form");
|
||||
jotcache = $("#jot-content > #jot-sections");
|
||||
|
||||
// remove the original Jot as long as the edit Jot is open
|
||||
jotcache.remove();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue