From 1ad57c74732e4463cfa5051e975c54f4e65d7e09 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 19 Mar 2016 18:04:22 -0400 Subject: Add buttons in project overview sections --- assets/js/src/Popover.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets/js/src/Popover.js') diff --git a/assets/js/src/Popover.js b/assets/js/src/Popover.js index 3a209e8a..03716d41 100644 --- a/assets/js/src/Popover.js +++ b/assets/js/src/Popover.js @@ -14,8 +14,6 @@ Popover.prototype.open = function(link) { $.get(link, function(content) { $("body").prepend('
' + content + '
'); - 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) { -- cgit v1.2.3