mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-09 23:38:33 +08:00
21 lines
456 B
JavaScript
Executable File
21 lines
456 B
JavaScript
Executable File
$(function()
|
|
{
|
|
/**
|
|
* 添加
|
|
*/
|
|
$('.submit-add').on('click', function()
|
|
{
|
|
// 更改窗口名称
|
|
$title = $('#data-save-win').find('.am-popup-title');
|
|
$title.text($title.data('add-title'));
|
|
|
|
// 清空表单
|
|
FormDataFill({"id":"", "name":"", "url":"", "describe":"", "sort":0, "is_enable":1});
|
|
|
|
// 校验成功状态增加失去焦点
|
|
$('form.form-validation').find('.am-field-valid').each(function()
|
|
{
|
|
$(this).blur();
|
|
});
|
|
});
|
|
}); |