rem: var a = new Action(arguments['submit']); query = query + '&' + a.serialize(); 
add: for (var i = 0; i < arguments['submit'].length; i++) { var a = new Action(arguments['submit'][i]); query = query + '&' + a.serialize(); } 
context: function update_region() {    show_wait_message();    arguments = arguments[0];    var name = arguments['name'];    var args = {};    for (var n in fragments[name].args) {        args[n] = fragments[name].args[n];    }    for (var n in current_args) {        if (typeof(current_args[n]) == "string") {            args[n] = current_args[n];            var parsed = n.match(/J:NV-region-(.*?)\.(.*)/);                        if ((parsed != null) && (parsed.length == 3) && (parsed[1] == name)) {                args[parsed[2]] = current_args[n];            }        }    }    for (var n in arguments['args']) {        args[n] = arguments['args'][n];        if (n.indexOf('J:NV-') != 0) {            current_args['J:NV-region-'+name+'.'+n] = args[n];            args['J:NV-region-'+name+'.'+n] = args[n];        }    }    var path;    if (arguments['fragment'] != null) {        path = arguments['fragment'];    } else {        path = fragments[name].path;    }    args['J:NV-region-'+name] = path;    current_args['J:NV-region-'+name] = path;    for (var i = 0; i < document.forms.length; i++) {        var form = document.forms[i];        for (var n in args) {            if ((typeof(args[n]) == "string") && (/^J:NV-/.test(n))) {                if (form[n]) {                    form[n].value = args[n];                } else {                    var hidden = document.createElement('input');                    hidden.setAttribute('type',  'hidden');                    hidden.setAttribute('name',  n);                    hidden.setAttribute('id',    n);                    hidden.setAttribute('value', args[n]);                    form.appendChild(hidden);                }            }        }    }    args['J-NAME'] = name;    args['J-PATH'] = document.URL;    var query = serialize(args);    if (arguments['submit']) {        var a = new Action(arguments['submit']);        query = query + '&' + a.serialize();    }    new Ajax.Updater('region-' + name,                     path,                     { parameters: query,                       onComplete: function () { Behaviour.apply();                        hide_wait_message();                       },                       evalScripts: true }                    );}
meta: 5054	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5054/cca79f54fb20b5fefc5b317730ea5062c8769b88/jifty.js/buggy/lib/Jifty/DefaultApp/web/static/js/jifty.js