Add buttons in project overview sections
This commit is contained in:
@@ -14,8 +14,6 @@ Popover.prototype.open = function(link) {
|
||||
|
||||
$.get(link, function(content) {
|
||||
$("body").prepend('<div id="popover-container"><div id="popover-content">' + content + '</div></div>');
|
||||
self.app.refresh();
|
||||
self.router.dispatch(this.app);
|
||||
self.afterOpen();
|
||||
});
|
||||
};
|
||||
@@ -58,6 +56,9 @@ Popover.prototype.afterOpen = function() {
|
||||
var self = this;
|
||||
var popoverForm = $("#popover-content .popover-form");
|
||||
|
||||
self.app.refresh();
|
||||
self.router.dispatch(this.app);
|
||||
|
||||
// Submit forms with Ajax request
|
||||
if (popoverForm) {
|
||||
popoverForm.on("submit", function(e) {
|
||||
|
||||
Reference in New Issue
Block a user