diff options
Diffstat (limited to 'assets/js/src/Popover.js')
-rw-r--r-- | assets/js/src/Popover.js | 5 |
1 files changed, 3 insertions, 2 deletions
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('<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) { |