Browse Source

attr() is undefined when elem doesnt have it

ota
Max Prokhorov 6 years ago
parent
commit
54ec4fa28a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/html/custom.js

+ 1
- 1
code/html/custom.js View File

@ -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());
}


Loading…
Cancel
Save