Lines 208-222
$(document).ready(function() {
Link Here
|
208 |
|
208 |
|
209 |
<fieldset class="action"> [% IF ( opisadd ) %] |
209 |
<fieldset class="action"> [% IF ( opisadd ) %] |
210 |
<input type="submit" name="phony_submit" value="phony_submit" id="phony_submit" style="display:none;" onclick="return false;" /> |
210 |
<input type="submit" name="phony_submit" value="phony_submit" id="phony_submit" style="display:none;" onclick="return false;" /> |
211 |
<!-- 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 |
211 |
<!-- 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 |
212 |
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. |
212 |
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. |
213 |
It is a bit tricky, but necessary in the sake of UI correctness. |
213 |
It is a bit tricky, but necessary in the sake of UI correctness. |
214 |
--> |
214 |
--> |
215 |
|
215 |
|
216 |
<input type="submit" name="add_submit" value="Add item" onclick="return Check(this.form)" /> |
216 |
<input type="submit" name="add_submit" value="Add item" onclick="return Check(this.form)" /> |
217 |
<input type="submit" name="add_duplicate_submit" value="Add & duplicate" onclick="return Check(this.form)" /> |
217 |
<input type="submit" name="add_duplicate_submit" value="Add & duplicate" onclick="return Check(this.form)" /> |
218 |
<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"> |
218 |
<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"> |
219 |
<label for="number_of_copies">Number of copies to add : </label> |
219 |
<label for="number_of_copies">Number of items to add : </label> |
220 |
<input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" /> |
220 |
<input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" /> |
221 |
<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);" /> |
221 |
<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);" /> |
222 |
</span> |
222 |
</span> |
223 |
- |
|
|