Skip to content

Commit 29ba2e1

Browse files
author
Rick Wong
committed
Show Mollie payment methods on the correct position.
1 parent 98c29df commit 29ba2e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

catalog/view/javascript/mollie_methods.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ if (!window.mollie_method_add)
8181
issuer_text = 'Select your bank:';
8282
}
8383

84-
var row = mollie.parents("tr"),
85-
tbody = row.parents("tbody");
86-
row.remove();
84+
var row = mollie.parents("tr");
85+
row.empty();
8786

8887
for (m = 0; m < methods.length; m++)
8988
{
@@ -106,7 +105,7 @@ if (!window.mollie_method_add)
106105
issuers_html += '</select></td></tr>';
107106
}
108107

109-
tbody.append(
108+
row.before(
110109
'<tr class="highlight">' +
111110
'<td>' +
112111
'<input id="mpm_' + m + '" type="radio" value="mollie_ideal" name="payment_method" onclick="window.mollie_method_select(\'' + method_report_url + '\', \'' + method.id + '\', \'' + method.description + '\', \'mpm_' + m + '_issuer_row\');" />' +

0 commit comments

Comments
 (0)