frio: intro notifications + some restructuring in core for notifications

This commit is contained in:
rabuzarus 2016-07-27 19:53:22 +02:00
commit 320751660d
7 changed files with 643 additions and 474 deletions

View file

@ -204,6 +204,19 @@ function addToModal(url) {
});
}
// Add a element (by it's id) to a bootstrap modal
function addElmToModal(id) {
var elm = $(id).html();
var modal = $('#modal').modal();
modal
.find('#modal-body')
.append(elm)
.modal.show;
loadModalTitle();
}
// function to load the html from the edit post page into
// the jot modal
function editpost(url) {