|
|
|
@ -184,6 +184,14 @@ $(function(){
|
|
|
|
|
$("#BluePopupBox").on('click', 'a.icon_add', function(){
|
|
|
|
|
var html = bt('t:test-answer-list', null);
|
|
|
|
|
$(this).parent('.mt10').after(html);
|
|
|
|
|
var inputs = document.getElementsByName("program[input][]");
|
|
|
|
|
var outputs = document.getElementsByName("program[output][]");
|
|
|
|
|
if (inputs.length == outputs.length) {
|
|
|
|
|
for (var i=0; i<inputs.length; i++) {
|
|
|
|
|
autoTextarea2(inputs[i], outputs[i]);
|
|
|
|
|
autoTextarea2(outputs[i], inputs[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("#BluePopupBox").on('click', 'a.icon_remove', function(){
|
|
|
|
|