call modal when edit btn is clicked on event view
This commit is contained in:
parent
2655118cbd
commit
a6413ccd7f
|
@ -950,8 +950,23 @@ function renameEvent() {
|
||||||
actQuery('rename', {eventName: newName});
|
actQuery('rename', {eventName: newName});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Manage the EDIT button
|
||||||
function editEvent() {
|
function editEvent() {
|
||||||
createPopup('?view=eventdetail&eid='+eventData.Id, 'zmEventDetail', 'eventdetail');
|
$j.getJSON(thisUrl + '?request=modal&modal=eventdetail&eid='+eventData.Id)
|
||||||
|
.done(function(data) {
|
||||||
|
if ( $j('#eventDetailModal').length ) {
|
||||||
|
$j('#eventDetailModal').replaceWith(data.html);
|
||||||
|
} else {
|
||||||
|
$j("body").append(data.html);
|
||||||
|
}
|
||||||
|
$j('#eventDetailModal').modal('show');
|
||||||
|
// Manage the Save button
|
||||||
|
$j('#eventDetailSaveBtn').click(function(evt) {
|
||||||
|
evt.preventDefault();
|
||||||
|
$j('#eventDetailForm').submit();
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.fail(logAjaxFail);
|
||||||
}
|
}
|
||||||
|
|
||||||
function exportEvent() {
|
function exportEvent() {
|
||||||
|
|
Loading…
Reference in New Issue