Skip to content

Commit eaf115c

Browse files
committed
Send 'skip' for current path only
1 parent 2d65881 commit eaf115c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/filemanager.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,11 +1041,14 @@ $.richFilemanagerPlugin = function(element, pluginOptions)
10411041
queryParams.type = $.urlParam('type');
10421042
}
10431043

1044+
var data = {};
1045+
if (model.currentPath() === path) data['skip'] = filesCount;
1046+
10441047
$.ajax({
10451048
type: 'GET',
10461049
url: buildConnectorUrl(queryParams),
10471050
dataType: "json",
1048-
data: {'skip': filesCount},
1051+
data: data,
10491052
cache: false,
10501053
success: function(response) {
10511054
//WARNING!!! Now tree inside response.data.tree
@@ -1374,11 +1377,14 @@ $.richFilemanagerPlugin = function(element, pluginOptions)
13741377
queryParams.type = $.urlParam('type');
13751378
}
13761379

1380+
var data = {};
1381+
if (model.currentPath() === path) data['skip'] = filesCount;
1382+
13771383
$.ajax({
13781384
type: 'GET',
13791385
url: buildConnectorUrl(queryParams),
13801386
dataType: "json",
1381-
data: {'skip': filesCount},
1387+
data: data,
13821388
cache: false,
13831389
success: function(response) {
13841390
if(response.data && response.data.tree) {

0 commit comments

Comments
 (0)