Lines 198-212
$(document).ready(function() {
Link Here
|
198 |
|
198 |
|
199 |
<fieldset class="action"> [% IF ( opisadd ) %] |
199 |
<fieldset class="action"> [% IF ( opisadd ) %] |
200 |
<input type="submit" name="phony_submit" value="phony_submit" id="phony_submit" style="display:none;" onclick="return false;" /> |
200 |
<input type="submit" name="phony_submit" value="phony_submit" id="phony_submit" style="display:none;" onclick="return false;" /> |
201 |
<!-- Note : We use here a false submit button because we have several submit buttons and we don't want the user to believe he validated the adding of multiple copies |
201 |
<!-- Note : We use here a false submit button because we have several submit buttons and we don't want the user to believe he validated the adding of multiple items |
202 |
when pressing the enter key, while in fact it is the first submit button that is validated, in our case the "add (single) item" button. |
202 |
when pressing the enter key, while in fact it is the first submit button that is validated, in our case the "add (single) item" button. |
203 |
It is a bit tricky, but necessary in the sake of UI correctness. |
203 |
It is a bit tricky, but necessary in the sake of UI correctness. |
204 |
--> |
204 |
--> |
205 |
|
205 |
|
206 |
<input type="submit" name="add_submit" value="Add item" onclick="return Check(this.form)" /> |
206 |
<input type="submit" name="add_submit" value="Add item" onclick="return Check(this.form)" /> |
207 |
<input type="submit" name="add_duplicate_submit" value="Add & duplicate" onclick="return Check(this.form)" /> |
207 |
<input type="submit" name="add_duplicate_submit" value="Add & duplicate" onclick="return Check(this.form)" /> |
208 |
<input type="submit" name="add_multiple_copies" value="Add multiple copies" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden"> |
208 |
<input type="submit" name="add_multiple_copies" value="Add multiple items" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden"> |
209 |
<label for="number_of_copies">Number of copies to add : </label> |
209 |
<label for="number_of_copies">Number of items to add : </label> |
210 |
<input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" /> |
210 |
<input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" /> |
211 |
<input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) && CheckMultipleAdd(this.form.number_of_copies.value);" /> |
211 |
<input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) && CheckMultipleAdd(this.form.number_of_copies.value);" /> |
212 |
</span> |
212 |
</span> |
213 |
- |
|
|