replace some item_photo_menu links so we can call js functions

This commit is contained in:
rabuzarus 2016-04-17 00:55:43 +02:00
parent c3225a1631
commit d9e2562f4b
4 changed files with 43 additions and 24 deletions

View file

@ -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";