Fix detection of options of clearing textures

This commit is contained in:
gplane 2017-04-27 00:02:48 +08:00
parent 9d16e20db5
commit e134296565

View File

@ -2,7 +2,7 @@
* @Author: printempw * @Author: printempw
* @Date: 2016-07-16 10:02:24 * @Date: 2016-07-16 10:02:24
* @Last Modified by: g-plane * @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'; 'use strict';
@ -422,7 +422,7 @@ function ajaxClearTexture(pid) {
data[type] = $(`#clear-${type}`).prop('checked') ? 1 : 0; 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')); toastr.warning(trans('user.noClearChoice'));
return; return;
} }