修復自動填值時,會覆蓋name
This commit is contained in:
parent
d1266dcfa1
commit
df25703375
|
@ -530,7 +530,9 @@ class AsksController < ApplicationController
|
||||||
old_input = old_.find('input, select');
|
old_input = old_.find('input, select');
|
||||||
if(new_input.length != 0 && old_input.length != 0){
|
if(new_input.length != 0 && old_input.length != 0){
|
||||||
if(new_input.length == old_input.length){
|
if(new_input.length == old_input.length){
|
||||||
old_.clone().replaceAll(new_);
|
var old_clone = old_.clone();
|
||||||
|
old_clone.find('input, select').attr('name', new_input.attr('name'));
|
||||||
|
old_clone.replaceAll(new_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue