|
Lines 157-162
Link Here
|
| 157 |
|
157 |
|
| 158 |
[% MACRO jsinclude BLOCK %] |
158 |
[% MACRO jsinclude BLOCK %] |
| 159 |
[% INCLUDE 'datatables.inc' %] |
159 |
[% INCLUDE 'datatables.inc' %] |
|
|
160 |
<script> |
| 161 |
// FIXME This is impossible to translate correctly |
| 162 |
const label_element = "[% label_element | html %]"; |
| 163 |
</script> |
| 164 |
|
| 160 |
<script> |
165 |
<script> |
| 161 |
function Xport() { |
166 |
function Xport() { |
| 162 |
batches= new Array; |
167 |
batches= new Array; |
|
Lines 193-199
Link Here
|
| 193 |
return(document.layouts.action[selected[0]].value); |
198 |
return(document.layouts.action[selected[0]].value); |
| 194 |
} |
199 |
} |
| 195 |
else { |
200 |
else { |
| 196 |
alert(_("Please select only one %s to %s.").format("[% label_element | html %]", op)); |
201 |
alert(_("Please select only one %s to %s.").format(label_element, op); |
| 197 |
return (-1); |
202 |
return (-1); |
| 198 |
} |
203 |
} |
| 199 |
} |
204 |
} |
|
Lines 202-208
Link Here
|
| 202 |
return(document.layouts.action.value); |
207 |
return(document.layouts.action.value); |
| 203 |
} |
208 |
} |
| 204 |
}; |
209 |
}; |
| 205 |
alert(_("Please select a %s.").format("[% label_element | html %]")); |
210 |
alert(_("Please select a %s.").format(label_element)); |
| 206 |
return (-1); |
211 |
return (-1); |
| 207 |
} |
212 |
} |
| 208 |
$(document).ready(function(){ |
213 |
$(document).ready(function(){ |
| 209 |
- |
|
|