IE8 cart js fixes (IE stringifies null as "null" instead of "")
This commit is contained in:
parent
a78a9c882a
commit
a6db8211c5
1 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
function fillIn(dom, a) {
|
function fillIn(dom, a) {
|
||||||
_.each(a, function (v, k) {
|
_.each(a, function (v, k) {
|
||||||
if (dom[k]) {
|
if (dom[k]) {
|
||||||
dom[k].value = v;
|
dom[k].value = v || '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
_.each(e, function (v, k) {
|
_.each(e, function (v, k) {
|
||||||
v = v.value;
|
v = v.value || '';
|
||||||
address[k] = v;
|
address[k] = v;
|
||||||
if (cache[k] !== v) {
|
if (cache[k] !== v) {
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
|
@ -307,7 +307,7 @@
|
||||||
|
|
||||||
if (!opt) {
|
if (!opt) {
|
||||||
opt = document.createElement('option');
|
opt = document.createElement('option');
|
||||||
opt.text = label;
|
opt.innerHTML = label;
|
||||||
dropdown.appendChild(opt);
|
dropdown.appendChild(opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue