Skip to content

Commit f1e91bb

Browse files
authored
Merge pull request #7333 from escattone/fix-rfl-modal-2896
fix submit button of ready-for-localization modal
2 parents 1cd6347 + 0a98570 commit f1e91bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kitsune/sumo/static/sumo/js/wiki.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,17 +407,18 @@ import collapsibleAccordionInit from "sumo/js/protocol-details-init";
407407

408408
function initReadyForL10n() {
409409
var $watchDiv = $('#revision-list .l10n'),
410+
$modal = $('[data-modal-id="ready-for-l10n-modal"]'),
410411
post_url, checkbox_id;
411412

412413
$watchDiv.find('a.markasready').on("click", function () {
413414
var $check = $(this);
414415
post_url = $check.data('url');
415416
checkbox_id = $check.attr('id');
416-
$('#ready-for-l10n-modal span.revtime').html('(' + $check.data('revdate') + ')');
417+
$modal.find('span.revtime').html('(' + $check.data('revdate') + ')');
417418
});
418419

419-
$('#ready-for-l10n-modal input[type=submit], #ready-for-l10n-modal button[type=submit]').on("click", function () {
420-
var csrf = $('#ready-for-l10n-modal input[name=csrfmiddlewaretoken]').val();
420+
$modal.find('input[type=submit], button[type=submit]').on("click", function () {
421+
var csrf = $modal.find('input[name=csrfmiddlewaretoken]').val();
421422
if (post_url !== undefined && checkbox_id !== undefined) {
422423
$.ajax({
423424
type: 'POST',

0 commit comments

Comments
 (0)