From f81c405dbafc9134aa7ffd43d3575a90f1f396e7 Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 6 Oct 2016 17:56:01 +0800 Subject: [PATCH] fix comparing with undefined --- resources/assets/src/js/skinlib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/src/js/skinlib.js b/resources/assets/src/js/skinlib.js index e1e33661..a50db1e9 100644 --- a/resources/assets/src/js/skinlib.js +++ b/resources/assets/src/js/skinlib.js @@ -2,7 +2,7 @@ * @Author: printempw * @Date: 2016-07-19 10:46:38 * @Last Modified by: printempw - * @Last Modified time: 2016-09-27 21:36:48 + * @Last Modified time: 2016-10-04 13:40:10 */ 'use strict'; @@ -202,7 +202,7 @@ function upload() { } // quick fix for browsers which don't support FormData.get() - if ($('#file').prop('files')[0] == 'undefined') { + if ($('#file').prop('files')[0] === undefined) { toastr.info(trans('skinlib.emptyUploadFile')); $('#file').focus(); } else if ($('#name').val() == "") {