diff --git a/code/html/custom.js b/code/html/custom.js
index de0c5af7..2b37998c 100644
--- a/code/html/custom.js
+++ b/code/html/custom.js
@@ -359,7 +359,7 @@ function sendConfig(data) {
function setOriginalsFromValues(force) {
var force = (true === force);
$("input,select").each(function() {
- var initial = (null === $(this).attr("original"));
+ var initial = (undefined === $(this).attr("original"));
if (force || initial) {
$(this).attr("original", $(this).val());
}