Revize a9e9c158
Přidáno uživatelem Jan Čarnogurský před téměř 5 roky(ů)
src/main/webapp/js/assemblyManageScripts.js | ||
---|---|---|
213 | 213 |
*/ |
214 | 214 |
function addCollapse() { |
215 | 215 |
|
216 |
var index = $(".parameter").length; |
|
216 |
var index = 0; |
|
217 |
|
|
218 |
// find largest parameter index |
|
219 |
$(".parameter").each(function () |
|
220 |
{ |
|
221 |
var tmpIndex = Number($(this).find('.enum-index').val()); |
|
222 |
|
|
223 |
if (tmpIndex >= index) |
|
224 |
{ |
|
225 |
index = tmpIndex + 1; |
|
226 |
} |
|
227 |
}); |
|
217 | 228 |
|
218 | 229 |
var typeSelectValues = $("#allParametersHiddenSelect").html(); |
219 | 230 |
var functionSelectValues = $("#allFunctionsHiddenSelect").html(); |
Také k dispozici: Unified diff
re #7993 update calculation of new parameter index