Skip to content

Commit

Permalink
Secure the t("Continue") strings in javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jan 28, 2010
1 parent c51fe96 commit 44b3720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/views/admin_modules.html.php
Expand Up @@ -22,7 +22,7 @@
buttons: {
<?= t("Continue")->for_js() ?>: function() {
$("form", this).submit();
$(".ui-dialog-buttonpane button:contains(<?= t("Continue") ?>)")
$(".ui-dialog-buttonpane button:contains(" + <?= t("Continue")->for_js() ?> + ")")
.attr("disabled", "disabled")
.addClass("ui-state-disabled");
},
Expand All @@ -32,7 +32,7 @@
}
});
if (!data.allow_continue) {
$(".ui-dialog-buttonpane button:contains(<?= t("Continue") ?>)")
$(".ui-dialog-buttonpane button:contains(" + <?= t("Continue")->for_js() ?> + ")")
.attr("disabled", "disabled")
.addClass("ui-state-disabled");
}
Expand Down

0 comments on commit 44b3720

Please sign in to comment.