diff --git a/files.py b/files.py index d2c0941..9d47b8b 100644 --- a/files.py +++ b/files.py @@ -461,7 +461,10 @@ def change_file_opts(): else: OPT.folders=False # so create a new entryList, and handle that on the client - query_data = GetQueryData( OPT ) + if 'search' in request.referrer: + query_data = GetSearchQueryData( OPT ) + else: + query_data = GetQueryData( OPT ) return make_response( jsonify( query_data=query_data ) )