X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Fphilter.js;h=30b573b4bf761e0f7a8bc4fa6d6be7f5468471ea;hb=5ae3e923e996cb1b613c57455d3df8d01cb74d54;hp=7ce229ed28d2ac2945903d1537b9c8e83cd27be4;hpb=d821a8ac1e53741f9342a8c3b60acf91d7b85404;p=old-projects.git diff --git a/philter/philter/philter.js b/philter/philter/philter.js index 7ce229e..30b573b 100644 --- a/philter/philter/philter.js +++ b/philter/philter/philter.js @@ -30,7 +30,7 @@ function getElement(obj) { } function del_onclick(val) { - if(window.confirm("Do you really want to delete this email address ?")) { + if(window.confirm(del_q_i18n)) { getElement('emailsDel').value = val; document.forms['emails'].submit(); } @@ -102,6 +102,9 @@ var current_rule; var actions_i = 0; var matches_i = 0; +var del_i18n = 'Del'; +var del_q_i18n = 'Del'; + /********** RULE.ACTION FORM FUNCTIONS **********/ function createActionSelect(div,data) { @@ -131,7 +134,7 @@ function createActionRow(Node,data) { var del = document.createElement("input"); del.setAttribute("type", "submit"); - del.setAttribute("value", "Del"); + del.setAttribute("value", del_i18n); del.onclick = function () { del.parentNode.parentNode.removeChild(del.parentNode); }; div.appendChild(del); @@ -175,7 +178,7 @@ function createMatchRow(Node,data) { var del = document.createElement("input"); del.setAttribute("type", "submit"); - del.setAttribute("value", "Del"); + del.setAttribute("value", del_i18n); del.onclick = function () { del.parentNode.parentNode.removeChild(del.parentNode); }; div.appendChild(del);