diff --git a/ipmd/static/ipmd/js/ipmdlib.js b/ipmd/static/ipmd/js/ipmdlib.js index 402b96244e4bf3e0097528f0f3ba5e6b75d96767..0963a9eb4fd98f14aae37a5756a10dbe1561c4fe 100644 --- a/ipmd/static/ipmd/js/ipmdlib.js +++ b/ipmd/static/ipmd/js/ipmdlib.js @@ -521,13 +521,13 @@ function getUnix(aDate) } /** - * Saves a bit of typing. Currently checks if the val is either undefined or null + * Saves a bit of typing. Currently checks if the val is either undefined or null, and if a string == "" * @param {Object} val * @returns {Boolean} true if the value is considered empty */ function isEmpty(val) { - return val === undefined || val === null; + return val === undefined || val === null || (typeof val === "string" && val.trim() == ""); } // Keeping track of maps