зеркало из https://github.com/nextcloud/news.git
delete queue after successful delete request to prevent addtional delete when the next item is deleted
This commit is contained in:
Родитель
9d78516855
Коммит
95ead2f0da
|
@ -57,6 +57,7 @@ angular.module('News').factory 'UndoQueue',
|
|||
@_queue = []
|
||||
promise: @_$timeout =>
|
||||
command.execute()
|
||||
@_queue = []
|
||||
@_$rootScope.$broadcast('notUndone')
|
||||
, @_timeout
|
||||
|
||||
|
|
|
@ -3178,6 +3178,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
},
|
||||
promise: this._$timeout(function() {
|
||||
command.execute();
|
||||
_this._queue = [];
|
||||
return _this._$rootScope.$broadcast('notUndone');
|
||||
}, this._timeout)
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
axis: 'y',
|
||||
delay: 200,
|
||||
helper: 'clone',
|
||||
containment: 'window',
|
||||
containment: 'document',
|
||||
scroll: true,
|
||||
scrollSensitivity: 100
|
||||
}">
|
||||
|
|
Загрузка…
Ссылка в новой задаче