From 060ded5c5e88bb37290653f57bf8aaa962361614 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 16 Aug 2024 13:44:11 +0800 Subject: [PATCH] * [bug #54076, done, 0.2h] fix publish doc error not show. --- module/doc/ui/create.text.html.php | 2 +- module/doc/ui/edit.text.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/ui/create.text.html.php b/module/doc/ui/create.text.html.php index 12d67268ef..0500b91726 100644 --- a/module/doc/ui/create.text.html.php +++ b/module/doc/ui/create.text.html.php @@ -166,7 +166,7 @@ formBase ( setID('docForm'), set::actions(false), - set::ajax(array('beforeSubmit' => jsRaw($handleSubmitForm), 'onFail' => jsRaw('$("#docForm").addClass("has-changed")'))), + set::ajax(array('beforeSubmit' => jsRaw($handleSubmitForm), 'onFail' => jsRaw('() => $("#docForm").addClass("has-changed")'))), set::morph(), setData('unsavedConfirm', $lang->doc->confirmLeaveOnEdit), on::change('#showTitle,zen-editor')->once()->do('$element.addClass("has-changed")'), diff --git a/module/doc/ui/edit.text.html.php b/module/doc/ui/edit.text.html.php index df93a372ec..99d7cc5d36 100644 --- a/module/doc/ui/edit.text.html.php +++ b/module/doc/ui/edit.text.html.php @@ -148,7 +148,7 @@ formBase setID('docForm'), set::actions(false), set::morph(), - set::ajax(array('beforeSubmit' => jsRaw($handleSubmitForm), 'onFail' => jsRaw('$("#docForm").addClass("has-changed")'))), + set::ajax(array('beforeSubmit' => jsRaw($handleSubmitForm), 'onFail' => jsRaw('() => $("#docForm").addClass("has-changed")'))), setData('unsavedConfirm', $lang->doc->confirmLeaveOnEdit), on::change('#showTitle,zen-editor')->once()->do('$element.addClass("has-changed")'), panel