Improve javascript for popover

This commit is contained in:
Frederic Guillot 2016-02-01 20:13:09 -05:00
parent eaf2b0949b
commit 01e1e77625
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -55,7 +55,7 @@ Popover.prototype.listen = function() {
Popover.prototype.afterOpen = function() {
var self = this;
var popoverForm = $(".popover-form");
var popoverForm = $("#popover-content .popover-form");
// Submit forms with Ajax request
if (popoverForm) {
@ -95,7 +95,7 @@ Popover.prototype.afterSubmit = function(data, request, self) {
}
else {
$("#popover-content").html(data);
$("input[autofocus]").focus();
$("#popover-content input[autofocus]").focus();
self.afterOpen();
}
};