|
Lines 64-70
ff.submit();
Link Here
|
| 64 |
|
64 |
|
| 65 |
} |
65 |
} |
| 66 |
|
66 |
|
| 67 |
|
67 |
$(document).ready(function() |
|
|
68 |
{ |
| 69 |
//We apply the fonction only for modify option |
| 70 |
<!--TMPL_IF NAME="quantityrec"--> |
| 71 |
$('#quantity').blur(function() |
| 72 |
{ |
| 73 |
// if user decreases the quantity |
| 74 |
if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) |
| 75 |
{ |
| 76 |
alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"); |
| 77 |
return true; |
| 78 |
} |
| 79 |
else |
| 80 |
{ |
| 81 |
// if user increases the quantity |
| 82 |
alert("You can't add a new item, please create a new order line"); |
| 83 |
// and we replace the original value |
| 84 |
$(this).val(<!-- TMPL_VAR name="quantityrec" -->) |
| 85 |
return false; |
| 86 |
} |
| 87 |
}); |
| 88 |
<!-- /TMPL_IF --> |
| 89 |
|
| 90 |
$('#showallbudgets').click(function() { |
| 91 |
if ( $('#budget_id .b_inactive').is(":visible") ) |
| 92 |
{ |
| 93 |
$('#budget_id .b_inactive').hide(); |
| 94 |
} |
| 95 |
else { |
| 96 |
$('#budget_id .b_inactive').show(); |
| 97 |
} |
| 98 |
}); |
| 99 |
}); |
| 68 |
//]]> |
100 |
//]]> |
| 69 |
</script> |
101 |
</script> |
| 70 |
</head> |
102 |
</head> |
|
Lines 273-282
ff.submit();
Link Here
|
| 273 |
<!-- TMPL_IF NAME="b_sel" --> |
305 |
<!-- TMPL_IF NAME="b_sel" --> |
| 274 |
<option value="<!-- TMPL_VAR NAME='b_id' -->" selected="selected"><!-- TMPL_VAR NAME="b_txt" --></option> |
306 |
<option value="<!-- TMPL_VAR NAME='b_id' -->" selected="selected"><!-- TMPL_VAR NAME="b_txt" --></option> |
| 275 |
<!-- TMPL_ELSE --> |
307 |
<!-- TMPL_ELSE --> |
| 276 |
<option value="<!-- TMPL_VAR NAME='b_id' -->"><!-- TMPL_VAR NAME="b_txt" --></option> |
308 |
<!-- TMPL_IF NAME="b_active" --><option value="<!-- TMPL_VAR NAME='b_id' -->"><!-- TMPL_VAR NAME="b_txt" --></option> |
|
|
309 |
<!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME='b_id' -->" class="b_inactive" style="display : none;"><!-- TMPL_VAR NAME="b_txt" --></option> |
| 310 |
<!-- /TMPL_IF --> |
| 277 |
<!-- /TMPL_IF --> |
311 |
<!-- /TMPL_IF --> |
| 278 |
<!-- /TMPL_LOOP --> |
312 |
<!-- /TMPL_LOOP --> |
| 279 |
</select> |
313 |
</select> |
|
|
314 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all:</label> |
| 315 |
<input type="checkbox" id="showallbudgets" /> |
| 280 |
<!--/TMPL_IF--> |
316 |
<!--/TMPL_IF--> |
| 281 |
</li> |
317 |
</li> |
| 282 |
<li> |
318 |
<li> |
| 283 |
- |
|
|