summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--portal/src/main/webapp/extsys/ems/js/commonUtil.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/portal/src/main/webapp/extsys/ems/js/commonUtil.js b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
index 3604c4e..51d446f 100644
--- a/portal/src/main/webapp/extsys/ems/js/commonUtil.js
+++ b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
@@ -19,7 +19,7 @@ commonUtil.arrayRemove = function (aryInstance, index) {
return;
}
for (var i = 0, n = 0; i < aryInstance.length; i++) {
- if (aryInstance[i] != aryInstance[dx]) {
+ if (aryInstance[i] !== aryInstance[dx]) {
aryInstance[n++] = aryInstance[i];
}
}
@@ -44,7 +44,7 @@ commonUtil.parseDate = function (dateObj, format) {
(dateObj.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(format))
- format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] :
+ format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] :
("00" + o[k]).substr(("" + o[k]).length));
return format;
};