* [bug#55083] Return when edit doc in tutorial.
This commit is contained in:
@@ -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,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'));
|
||||
};
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user