* [bug#55083] Return when edit doc in tutorial.

This commit is contained in:
xieqiyu
2024-09-12 14:04:53 +08:00
committed by 胡方舟
parent 5be7f0e6cc
commit f580e62269
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ window.loadExecutions = function(e)
window.beforeRequestContent = function(options)
{
if(!options.isDiffPage || !$('#docForm').hasClass('has-changed')) return;
if(!options.isDiffPage || !$('#docForm').hasClass('has-changed') || isTutorialMode) return;
return zui.Modal.confirm($('#docForm').data('unsavedConfirm'));
};
+1 -1
View File
@@ -1,6 +1,6 @@
window.beforeRequestContent = function(options)
{
if(!options.isDiffPage || !$('#docForm').hasClass('has-changed')) return;
if(!options.isDiffPage || !$('#docForm').hasClass('has-changed') || isTutorialMode) return;
return zui.Modal.confirm($('#docForm').data('unsavedConfirm'));
};
+2
View File
@@ -10,6 +10,8 @@ declare(strict_types=1);
*/
namespace zin;
jsVar('isTutorialMode', common::isTutorialMode());
include 'lefttree.html.php';
$headingActions = array('class' => 'gap-3 pr-1', 'items' => array());
+2
View File
@@ -10,6 +10,8 @@ declare(strict_types=1);
*/
namespace zin;
jsVar('isTutorialMode', common::isTutorialMode());
include 'lefttree.html.php';
$headingActions = array('class' => 'gap-3 pr-1', 'items' => array());