File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments