From e13429656585c7036ba0fdbfba871374a0cfd287 Mon Sep 17 00:00:00 2001 From: gplane Date: Thu, 27 Apr 2017 00:02:48 +0800 Subject: [PATCH] Fix detection of options of clearing textures --- resources/assets/src/scripts/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/src/scripts/user.js b/resources/assets/src/scripts/user.js index d7ffff99..083cd8c3 100644 --- a/resources/assets/src/scripts/user.js +++ b/resources/assets/src/scripts/user.js @@ -2,7 +2,7 @@ * @Author: printempw * @Date: 2016-07-16 10:02:24 * @Last Modified by: g-plane - * @Last Modified time: 2017-04-26 23:37:56 + * @Last Modified time: 2017-04-27 00:01:38 */ 'use strict'; @@ -422,7 +422,7 @@ function ajaxClearTexture(pid) { data[type] = $(`#clear-${type}`).prop('checked') ? 1 : 0; }); - if (data['steve'] == data['alex'] == data['cape'] == 0) { + if (data['steve'] == 0 && data['alex'] == 0 && data['cape'] == 0) { toastr.warning(trans('user.noClearChoice')); return; }