fix js code + texts in english

This commit is contained in:
Rodney Figaro 2016-08-22 10:30:03 +02:00
parent b9c36ee801
commit ac9aadcdf3

View File

@ -181,7 +181,7 @@ class AdminInvoices extends AdminTab
</td>*/
echo '<td align="center">
<input type="submit" name="submitPrintM2Plus" class="button" value="'.$this->l('Print M2+').'" />
<input type="submit" name="resetPrintM2Plus" class="button" value="'.$this->l('Tout désélectionner').'" />
<input type="submit" name="resetPrintM2Plus" class="button" value="'.$this->l('Unselect all').'" />
</td>
<td align="center">
<input type="submit" name="submitPrintMPlus" class="button" value="'.$this->l('Print Même Marque').'" />
@ -329,11 +329,11 @@ class AdminInvoices extends AdminTab
}
});
$("input[name=resetPrintM2Plus").click(function() {
$("input[name=resetPrintM2Plus]").click(function() {
var haveChecked = $("input[name=\'multi2[]\']:checked").length>0;
if (haveChecked && confirm(\'Êtes-vous sûr de vouloir tout désélectionner ?\')) {
if (haveChecked && confirm(\''.$this->l("Are you sure to unselect all ?").'\')) {
$("input[name=\'multi2[]\']").each(function() {
$(this).attr(\'checked\', false);
});