Lines 28-34
function enable_cost_input(cost_id) {
Link Here
|
28 |
$(cell).removeClass('disabled-transfer'); |
28 |
$(cell).removeClass('disabled-transfer'); |
29 |
|
29 |
|
30 |
$('#celldiv_'+cost_id).html( |
30 |
$('#celldiv_'+cost_id).html( |
31 |
'<input name="cost_'+cost_id+'" onblur="check_transport_cost(this);" size="4" value="'+$.trim(cost)+'" />'+ |
31 |
'<input type="text" name="cost_'+cost_id+'" onblur="check_transport_cost(this);" size="4" value="'+$.trim(cost)+'" />'+ |
32 |
'<br/>Disable <input name="disable_'+cost_id+'" value="1" onchange="disable_transport_cost_chg(this, \''+cost_id+'\');" type="checkbox" '+(disabled ? 'checked' : '')+' />' |
32 |
'<br/>Disable <input name="disable_'+cost_id+'" value="1" onchange="disable_transport_cost_chg(this, \''+cost_id+'\');" type="checkbox" '+(disabled ? 'checked' : '')+' />' |
33 |
); |
33 |
); |
34 |
disable_transport_cost(cost_id, disabled); |
34 |
disable_transport_cost(cost_id, disabled); |
Lines 106-112
$(document).ready(function() {
Link Here
|
106 |
[% ELSE %] |
106 |
[% ELSE %] |
107 |
<div id="celldiv_[% bt.id %]"> |
107 |
<div id="celldiv_[% bt.id %]"> |
108 |
[% END %] |
108 |
[% END %] |
109 |
<div onclick="enable_cost_input('[% bt.id %]');">[% !bt.disabled && bt.value > '' ? bt.value : ' ' %]</div> |
109 |
<div onclick="enable_cost_input('[% bt.id %]');">[% bt.disabled ? ' ' : bt.value %]</div> |
110 |
<input type="hidden" name="cost_[% bt.id %]" value="[% bt.value %]" /> |
110 |
<input type="hidden" name="cost_[% bt.id %]" value="[% bt.value %]" /> |
111 |
[% IF bt.disabled %] |
111 |
[% IF bt.disabled %] |
112 |
<input type="hidden" name="disable_[% bt.id %]" value="1" /> |
112 |
<input type="hidden" name="disable_[% bt.id %]" value="1" /> |
113 |
- |
|
|