fix js code + texts in english
This commit is contained in:
parent
b9c36ee801
commit
ac9aadcdf3
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user