diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-03-27 15:55:09 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-03-28 18:20:03 +0100 |
commit | 868d7b956d8fffcfbaf9ad5442dfd6cf8dd0874f (patch) | |
tree | 2c282aee43dd5428dfbfdeb29dc217291402ce3f | |
parent | 831b7ca803184c5c81dc2798467903ea86277e20 (diff) | |
download | nextcloud-server-868d7b956d8fffcfbaf9ad5442dfd6cf8dd0874f.tar.gz nextcloud-server-868d7b956d8fffcfbaf9ad5442dfd6cf8dd0874f.zip |
use === to compare empty string ''
-rw-r--r-- | apps/files/js/files.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 59056ea8719..b4f85dc720a 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -253,7 +253,7 @@ $(document).ready(function() { //singleFileUploads is on by default, so the data.files array will always have length 1 add: function(e, data) { - if(data.files[0].type == '' && data.files[0].size == 4096) + if(data.files[0].type === '' && data.files[0].size == 4096) { data.textStatus = 'dirorzero'; data.errorThrown = t('files','Unable to upload your file as it is a directory or has 0 bytes'); |