Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a9e9c158

Přidáno uživatelem Jan Čarnogurský před asi 4 roky(ů)

re #7993 update calculation of new parameter index

Zobrazit rozdíly:

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