Add tasks in bulk from the board

This commit is contained in:
Frederic Guillot
2016-05-13 21:44:31 -04:00
parent a1a48b8374
commit 10f662ce07
8 changed files with 167 additions and 9 deletions

View File

@@ -67,10 +67,13 @@ Kanboard.Popover.prototype.close = function(e) {
Kanboard.Popover.prototype.ajaxReload = function(data, request, self) {
var redirect = request.getResponseHeader("X-Ajax-Redirect");
if (redirect) {
window.location = redirect === 'self' ? window.location.href.split("#")[0] : redirect;
}
else {
if (redirect === 'self') {
window.location.reload();
} else if (redirect && redirect.indexOf('#') > -1) {
window.location = redirect.split('#')[0];
} else if (redirect) {
window.location = redirect;
} else {
$("#popover-content").html(data);
$("#popover-content input[autofocus]").focus();
self.executeOnOpenedListeners();