Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r24030 -r24584 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 24030) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 24584) @@ -2809,3 +2809,17 @@ } return record; } + +function dingxiang_applyIf(object, config) { + var property; + + if (object) { + for (property in config) { + if (object[property] === undefined) { + object[property] = config[property]; + } + } + } + + return object; +}