|
@@ -168,7 +168,7 @@ class Input
|
|
|
|
|
|
$param['button'] = '';
|
|
$param['button'] = '';
|
|
if (isset($param['update_type']) && $param['update_type'] == 2) {
|
|
if (isset($param['update_type']) && $param['update_type'] == 2) {
|
|
- $param['button'] = '<a href="javascript:;" onclick="var e = $(this).parent().parent().parent().find(\'.table_copy\');var html = e.html();var parent = e.parent();var total = parent.find(\'tr\').length-1;html = html.replaceAll(\'_-1_\', \'_\' + total + \'_\');html = html.replaceAll(\'up_\', \'update_\');parent.append(\'<tr>\' + html + \'</tr>\');form.render();" style="margin-left:5px;" class="layui-btn layui-btn-xs layui-btn-normal">新增</a>';
|
|
|
|
|
|
+ $param['button'] = '<a href="javascript:;" onclick="append($(this), \''.$param['ext'].'\')" style="margin-left:5px;" class="layui-btn layui-btn-xs layui-btn-normal">新增</a>';
|
|
}
|
|
}
|
|
|
|
|
|
$class = '';
|
|
$class = '';
|