Skip to content

Commit 8ee9487

Browse files
author
Jeff Harrell
committed
IE tweaks
1 parent c9fe800 commit 8ee9487

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/paypal-button.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,12 @@ PAYPAL.apps = PAYPAL.apps || {};
136136
for (key in items) {
137137
item = items[key];
138138

139-
input = child = hidden.cloneNode(true);
140-
input.name = item.key;
141-
input.value = item.value;
142-
143139
if (item.isEditable) {
140+
input = document.createElement('input');
144141
input.type = 'text';
145142
input.className = 'paypal-input';
143+
input.name = item.key;
144+
input.value = item.value;
146145

147146
label = document.createElement('label');
148147
label.className = 'paypal-label';
@@ -152,6 +151,10 @@ PAYPAL.apps = PAYPAL.apps || {};
152151
child = document.createElement('p');
153152
child.className = 'paypal-group';
154153
child.appendChild(label);
154+
} else {
155+
input = child = hidden.cloneNode(true);
156+
input.name = item.key;
157+
input.value = item.value;
155158
}
156159

157160
form.appendChild(child);

0 commit comments

Comments
 (0)