Update admin.js

This commit is contained in:
邹景立 2022-12-06 15:32:00 +08:00
parent ba998bdb4b
commit 075c00fbf7

View File

@ -1088,8 +1088,8 @@ $(function () {
$.previewPhonePage(this.dataset.phoneView || this.href);
});
/*! 注册 data-event-submit 事件行为 */
onEvent('click', '[data-event-submit]', function () {
/*! 注册 data-target-submit 事件行为 */
onEvent('click', '[data-target-submit]', function () {
$(this.dataset.eventSubmit || this).submit();
});