Lines 87-92
$(document).ready(function() { calcNewsuggTotal(); });
Link Here
|
87 |
</script> |
87 |
</script> |
88 |
<!--/TMPL_IF--> |
88 |
<!--/TMPL_IF--> |
89 |
<script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script> |
89 |
<script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script> |
|
|
90 |
<script type="text/javascript"> |
91 |
// <![CDATA[ |
92 |
$(document).ready(function() { |
93 |
$('#sub_budgetid').hide(); |
94 |
$('#su_sub_budgetid').hide(); |
95 |
$("#budgetid").val("").attr('selected', 'selected'); |
96 |
|
97 |
$('#budgetid').change(function() { |
98 |
var budget= $('#budgetid').val(); |
99 |
|
100 |
if (budget ==""){ |
101 |
$('#sub_budgetid').hide(); |
102 |
$('#su_sub_budgetid').hide(); |
103 |
$('#sub_budgetid option:visible').hide(); |
104 |
$('#su_sub_budgetid option:visible').hide(); |
105 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
106 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
107 |
} |
108 |
else { |
109 |
$('#sub_budgetid').show(); |
110 |
$('#sub_budgetid option:visible').hide(); |
111 |
$('.'+budget).show(); |
112 |
$('#a').show(); |
113 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
114 |
$('#su_sub_budgetid option:visible').hide(); |
115 |
$('#su_sub_budgetid').hide(); |
116 |
} |
117 |
}); |
118 |
|
119 |
$('#sub_budgetid').change(function() { |
120 |
var subbudget= $('#sub_budgetid').val(); |
121 |
|
122 |
if (subbudget ==""){ |
123 |
$('#su_sub_budgetid').hide(); |
124 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
125 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
126 |
|
127 |
} |
128 |
else { |
129 |
$('#su_sub_budgetid').show(); |
130 |
$('#su_sub_budgetid option:visible').hide(); |
131 |
$('.'+subbudget).show(); |
132 |
$('#b').show(); |
133 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
134 |
} |
135 |
}); |
136 |
}); |
137 |
// ]]> |
138 |
</script> |
139 |
|
90 |
</head> |
140 |
</head> |
91 |
<body> |
141 |
<body> |
92 |
<!-- TMPL_INCLUDE name="header.inc" --> |
142 |
<!-- TMPL_INCLUDE name="header.inc" --> |
Lines 169-174
$(document).ready(function() { calcNewsuggTotal(); });
Link Here
|
169 |
<option value="">Any</option><!-- TMPL_LOOP name="budgetsloop" --> |
219 |
<option value="">Any</option><!-- TMPL_LOOP name="budgetsloop" --> |
170 |
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="budget_id" -->" selected="selected"><!-- TMPL_VAR name="budget_name" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="budget_id" -->"><!-- TMPL_VAR name="budget_name" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --> |
220 |
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="budget_id" -->" selected="selected"><!-- TMPL_VAR name="budget_name" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="budget_id" -->"><!-- TMPL_VAR name="budget_name" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --> |
171 |
</select> |
221 |
</select> |
|
|
222 |
<select name="sub_budgetid" id="sub_budgetid" > |
223 |
<option value="" id="a">Any</option><!-- TMPL_LOOP name="sub_budgetsloop" --> |
224 |
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="budget_id" -->" selected="selected" class="<!-- TMPL_VAR name="budget_parent_id" -->" style ="display : none;"><!-- TMPL_VAR name="budget_name" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="budget_id" -->" class="<!-- TMPL_VAR name="budget_parent_id" -->" style ="display : none;" ><!-- TMPL_VAR name="budget_name" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --> |
225 |
</select> |
226 |
<select name="su_sub_budgetid" id="su_sub_budgetid"> |
227 |
<option value="" id="b">Any</option><!-- TMPL_LOOP name="su_sub_budgetsloop" --> |
228 |
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="budget_id" -->" selected="selected" class="<!-- TMPL_VAR name="budget_parent_id" -->" style ="display : none;"><!-- TMPL_VAR name="budget_name" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="budget_id" -->" class="<!-- TMPL_VAR name="budget_parent_id" -->" style ="display : none;"><!-- TMPL_VAR name="budget_name" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --> |
229 |
</select> |
172 |
</li><li><label for="quantity">Copies:</label> |
230 |
</li><li><label for="quantity">Copies:</label> |
173 |
<input type="text" size="10" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantity" -->" onchange="calcNewsuggTotal();" /> |
231 |
<input type="text" size="10" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantity" -->" onchange="calcNewsuggTotal();" /> |
174 |
</li><li><label for="currency">Currency:</label> |
232 |
</li><li><label for="currency">Currency:</label> |