From 223863191f8966b4d13f48e6f64e9b20a4b89537 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Thu, 9 Nov 2017 15:10:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BA=D1=80=D0=B8=D0=B2=D0=BE=D0=B9=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF=D1=80=D0=B8=20=D0=B8=D0=BD?= =?UTF-8?q?=D0=B8=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- src/search-advanced-controls.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index dbcf304..d8ecf90 100644 --- a/index.js +++ b/index.js @@ -324,7 +324,7 @@ io.on('connection', function(socket) if(navigation.files.min > 0) where += ' and files > ' + mysqlPool.escape(navigation.files.min) + ' '; } - console.log(where) + console.log(navigation, where) let searchList = []; //args.splice(orderBy && orderBy.length > 0 ? 1 : 0, 1); diff --git a/src/search-advanced-controls.js b/src/search-advanced-controls.js index 101185f..b557d8e 100644 --- a/src/search-advanced-controls.js +++ b/src/search-advanced-controls.js @@ -10,11 +10,11 @@ export default class AdvancedSearchControl extends Component { super(props) this.state = { type: undefined, - size: {min: 0, max: 500 * 1024}, - maxSize: 1024 * 1024, + size: {min: 0, max: 0}, + maxSize: 1024 * 1024 * 1024, sizeEnabled: false, filesEnabled: false, - files: {min: 0, max: 5}, + files: {min: 0, max: 0}, filesMax: 100, } if(this.props.state)