Revision f2141829

b/ui/static/invitations.js
84 84
				var pos = new Number(i+1);
85 85
				var d = $(elem)
86 86
							.attr("id",settings.cloneContainerId + "-" + pos);
87
				
87

  
88 88
				d.children("label")
89 89
							.attr("for",settings.baseName + pos)
90 90
							.html((pos > 1) ? "" : settings.labelText);
91 91
				
92
				d.children("input")
93
							.attr({
94
								"id":settings.baseName + pos,
95
								"name":settings.baseName + pos
96
							});
92
                names = settings.baseNames;
93
				d.children("input").each(function(i){
94
                    $(this).attr({
95
                        "id": names[i] + pos,
96
                        "name": names[i] + pos
97
                    });
98
                });
97 99
			});
98 100
			
99 101
			addRemoveBtnCk();
b/ui/static/synnefo.js
2133 2133
    config.ajax = config.ajax || {};
2134 2134

  
2135 2135
    // requested to show remote data in msg_box
2136
    // 
2137 2136
    if (config.ajax) {
2138 2137
        $.ajax($.extend({ 
2139 2138
            url:config.ajax, 
......
2179 2178
        el.addClass("invitations");
2180 2179
        var cont = el;
2181 2180
        var form = $(el).find("form");
2181

  
2182
        // remove garbage rows that stay in DOM between requests
2183
        $(".removable-field-row:hidden").remove();
2182 2184
        $("#invform #removable-name-container-1").dynamicField();
2183 2185
        form.submit(function(evn){
2184 2186
            evn.preventDefault();
2185
            $.post(form.attr("action"), form.serialize(), function(data) {$(cont).html(data); handle_invitations(cont)});
2187
            $.post(form.attr("action"), form.serialize(), function(data) {
2188
                $(cont).html(data); 
2189
                handle_invitations(cont);
2190
            });
2186 2191
            return false;
2187 2192
        });
2188 2193
    }

Also available in: Unified diff