Do not check board status during task move
This commit is contained in:
@@ -12,6 +12,7 @@ Improvements:
|
|||||||
* Add dropdown menu for subtasks, categories, swimlanes, columns, custom filters, task links and groups
|
* Add dropdown menu for subtasks, categories, swimlanes, columns, custom filters, task links and groups
|
||||||
* Add new template hooks
|
* Add new template hooks
|
||||||
* Application settings are not cached anymore in the session
|
* Application settings are not cached anymore in the session
|
||||||
|
* Do not check board status during task move
|
||||||
* Move validators to a separate namespace
|
* Move validators to a separate namespace
|
||||||
* Improve and write unit tests for reports
|
* Improve and write unit tests for reports
|
||||||
* Reduce the number of SQL queries for project daily column stats
|
* Reduce the number of SQL queries for project daily column stats
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,7 @@
|
|||||||
function Board(app) {
|
function Board(app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.checkInterval = null;
|
this.checkInterval = null;
|
||||||
|
this.savingInProgress = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Board.prototype.execute = function() {
|
Board.prototype.execute = function() {
|
||||||
@@ -42,8 +43,7 @@ Board.prototype.reloadFilters = function(search) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Board.prototype.check = function() {
|
Board.prototype.check = function() {
|
||||||
if (this.app.isVisible()) {
|
if (this.app.isVisible() && ! this.savingInProgress) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
this.app.showLoadingIcon();
|
this.app.showLoadingIcon();
|
||||||
|
|
||||||
@@ -59,7 +59,9 @@ Board.prototype.check = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Board.prototype.save = function(taskId, columnId, position, swimlaneId) {
|
Board.prototype.save = function(taskId, columnId, position, swimlaneId) {
|
||||||
|
var self = this;
|
||||||
this.app.showLoadingIcon();
|
this.app.showLoadingIcon();
|
||||||
|
this.savingInProgress = true;
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
cache: false,
|
cache: false,
|
||||||
@@ -73,8 +75,14 @@ Board.prototype.save = function(taskId, columnId, position, swimlaneId) {
|
|||||||
"swimlane_id": swimlaneId,
|
"swimlane_id": swimlaneId,
|
||||||
"position": position
|
"position": position
|
||||||
}),
|
}),
|
||||||
success: this.refresh.bind(this),
|
success: function(data) {
|
||||||
error: this.app.hideLoadingIcon.bind(this)
|
self.refresh(data);
|
||||||
|
this.savingInProgress = false;
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
self.app.hideLoadingIcon();
|
||||||
|
this.savingInProgress = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user