From a6db8211c5eeae93a1ea2b99732dff93173450d7 Mon Sep 17 00:00:00 2001 From: Paul Driver Date: Tue, 25 May 2010 09:28:25 -0700 Subject: [PATCH] IE8 cart js fixes (IE stringifies null as "null" instead of "") --- www/extras/shop/cart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/extras/shop/cart.js b/www/extras/shop/cart.js index 56b6cae40..e64b1c415 100644 --- a/www/extras/shop/cart.js +++ b/www/extras/shop/cart.js @@ -31,7 +31,7 @@ function fillIn(dom, a) { _.each(a, function (v, k) { if (dom[k]) { - dom[k].value = v; + dom[k].value = v || ''; } }); } @@ -148,7 +148,7 @@ } _.each(e, function (v, k) { - v = v.value; + v = v.value || ''; address[k] = v; if (cache[k] !== v) { dirty = true; @@ -307,7 +307,7 @@ if (!opt) { opt = document.createElement('option'); - opt.text = label; + opt.innerHTML = label; dropdown.appendChild(opt); }