mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update admin.js
This commit is contained in:
parent
88e8b5d4a3
commit
3d9836d5d5
@ -1087,6 +1087,11 @@ $(function () {
|
||||
$.previewPhonePage(this.dataset.phoneView || this.href);
|
||||
});
|
||||
|
||||
/*! 注册 data-event-submit 事件行为 */
|
||||
onEvent('click', '[data-event-submit]', function () {
|
||||
$(this.dataset.eventSubmit || this).submit();
|
||||
});
|
||||
|
||||
/*! 表单编辑返回操作 */
|
||||
onEvent('click', '[data-history-back]', function () {
|
||||
$.msg.confirm(this.dataset.historyBack || '确定要返回吗?', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user