diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-19 18:04:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-19 18:04:22 -0400 |
commit | 1ad57c74732e4463cfa5051e975c54f4e65d7e09 (patch) | |
tree | 80870017404b15da538353bd5dd52d76b8482ca2 /assets/js/src | |
parent | 42376aec4ad78ad880d3e42219ccec07bf09339a (diff) |
Add buttons in project overview sections
Diffstat (limited to 'assets/js/src')
-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) { |