From c291309fadb2f4c6d13899db621ca39a06994166 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 26 Jan 2016 10:47:59 +0900 Subject: [PATCH] Fix jshint error for comparison with zero --- common/js/xml_handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index c720c9e90..e25f747f8 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -251,7 +251,7 @@ function xml2json(xml, tab, ignoreAttrib) { } }); - if(data.error != 0) { + if(data.error != '0') { if ($.isFunction($.exec_xml.onerror)) { return $.exec_xml.onerror(module, act, data, callback_func, response_tags, callback_func_arg, fo_obj); } @@ -375,7 +375,7 @@ function xml2json(xml, tab, ignoreAttrib) { data: data, success: function(data) { $(".wfsr").hide().trigger('cancel_confirm'); - if(data.error != 0 && data.error > -1000) { + if(data.error != '0' && data.error > -1000) { if(data.error == -1 && data.message == 'msg_is_not_administrator') { alert('You are not logged in as an administrator'); if($.isFunction(callback_error)) callback_error(data);