mirror of
https://github.com/friendica/friendica
synced 2025-04-25 14:30:10 +00:00
replace some item_photo_menu links so we can call js functions
This commit is contained in:
parent
c3225a1631
commit
d9e2562f4b
4 changed files with 43 additions and 24 deletions
19
js/theme.js
19
js/theme.js
|
@ -269,6 +269,25 @@ function loadModalTitle() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function addToModal(url) {
|
||||
var url = url + '?mode=modal';
|
||||
var modal = $('#modal').modal();
|
||||
|
||||
modal
|
||||
.find('#modal-body')
|
||||
.load(url, function (responseText, textStatus) {
|
||||
if ( textStatus === 'success' ||
|
||||
textStatus === 'notmodified')
|
||||
{
|
||||
modal.show();
|
||||
|
||||
//Get first h3 element and use it as title
|
||||
loadModalTitle();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function editpost(url) {
|
||||
var modal = $('#jot-modal').modal();
|
||||
var url = url + " #profile-jot-form";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue