File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments