]> source.dussan.org Git - nextcloud-server.git/commit
Fixed file sorting to work with scrolling
authorVincent Petry <pvince81@owncloud.com>
Fri, 4 Apr 2014 12:34:07 +0000 (14:34 +0200)
committerVincent Petry <pvince81@owncloud.com>
Mon, 28 Apr 2014 12:55:00 +0000 (14:55 +0200)
commitf6586f6bdfe8f5b2175d9ee5e833ecb4ccbc5f7d
treeddbcd0d70527bc05052ce46a08d029a0985a0d49
parent9c2fbea6a4396a29ce8c966c9ea7646aa8fc9be5
Fixed file sorting to work with scrolling

The FileList.files model is now updated with file operations.
Adding files to the list will add to the model first, then to the DOM.
If the insertion point isn't visible yet, the file won't be added to the
DOM until the user scrolls down.

Updated unit tests to include checking for the correct insertion point.
apps/files/js/filelist.js
apps/files/tests/js/filelistSpec.js