summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileactionsSpec.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-04 16:11:31 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-28 14:55:01 +0200
commit2883f231d0b08e8eea75715e912caa42f20d9682 (patch)
tree766506e2e6f18154df8f50cd654ec982d56ce01a /apps/files/tests/js/fileactionsSpec.js
parentf6586f6bdfe8f5b2175d9ee5e833ecb4ccbc5f7d (diff)
downloadnextcloud-server-2883f231d0b08e8eea75715e912caa42f20d9682.tar.gz
nextcloud-server-2883f231d0b08e8eea75715e912caa42f20d9682.zip
Fixed insertion of files
Removed "insert" flag, inserting is by default for FileList.add(). Added "animate" flag to FileList.add(). Added logic to correctly detect when to insert/append elements whenever the insertion point is visible or not. Fixed "render next page" logic to work correctly when many pages of files have been added.
Diffstat (limited to 'apps/files/tests/js/fileactionsSpec.js')
-rw-r--r--apps/files/tests/js/fileactionsSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/tests/js/fileactionsSpec.js b/apps/files/tests/js/fileactionsSpec.js
index 3c22c84b866..f5eafba509f 100644
--- a/apps/files/tests/js/fileactionsSpec.js
+++ b/apps/files/tests/js/fileactionsSpec.js
@@ -30,6 +30,7 @@ describe('FileActions tests', function() {
$body.append('<input type="hidden" id="permissions" value="31"></input>');
// dummy files table
$filesTable = $body.append('<table id="filestable"></table>');
+ FileList.files = [];
});
afterEach(function() {
$('#dir, #permissions, #filestable').remove();