From f665030cb1aebfa0dbd7e2df8c8545d5830ad801 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Wed, 11 Jan 2023 09:46:57 +0000 Subject: [PATCH] * Finish task #82697. --- module/zahost/js/browse.js | 8 ++++---- module/zanode/js/browse.js | 8 ++++---- module/zanode/view/createimage.html.php | 10 +++++++--- module/zanode/view/getvnc.html.php | 2 +- module/zanode/view/view.html.php | 2 +- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/module/zahost/js/browse.js b/module/zahost/js/browse.js index 31399f3d9f..5ce8f99b34 100644 --- a/module/zahost/js/browse.js +++ b/module/zahost/js/browse.js @@ -6,12 +6,12 @@ $('#hostList tr[data-status="wait"]').hover(function(){ if(showFeature) { - /* Show features dialog. */ - new $.zui.ModalTrigger({url: $.createLink('zahost', 'introduction'), type: 'iframe', width: 900, className: 'showFeatures', showHeader: false, backdrop: 'static'}).show(); + $.apps.close('help'); + $.apps.open('https://www.zentao.net/book/zentaopms/978.html?fullScreen=zentao', 'help'); } $('#helpTab').click(function() { - /* Show features dialog. */ - new $.zui.ModalTrigger({url: $.createLink('zahost', 'introduction'), type: 'iframe', width: 900, className: 'showFeatures', showHeader: false, backdrop: 'static'}).show(); + $.apps.close('help'); + $.apps.open('https://www.zentao.net/book/zentaopms/978.html?fullScreen=zentao', 'help'); }) diff --git a/module/zanode/js/browse.js b/module/zanode/js/browse.js index ea3d670380..882c7a4cc0 100644 --- a/module/zanode/js/browse.js +++ b/module/zanode/js/browse.js @@ -1,11 +1,11 @@ if(showFeature) { - /* Show features dialog. */ - new $.zui.ModalTrigger({url: $.createLink('zahost', 'introduction'), type: 'iframe', width: 900, className: 'showFeatures', showHeader: false, backdrop: 'static'}).show(); + $.apps.close('help'); + $.apps.open('https://www.zentao.net/book/zentaopms/978.html?fullScreen=zentao', 'help'); } $('#helpTab').click(function() { - /* Show features dialog. */ - new $.zui.ModalTrigger({url: $.createLink('zahost', 'introduction'), type: 'iframe', width: 900, className: 'showFeatures', showHeader: false, backdrop: 'static'}).show(); + $.apps.close('help'); + $.apps.open('https://www.zentao.net/book/zentaopms/978.html?fullScreen=zentao', 'help'); }) diff --git a/module/zanode/view/createimage.html.php b/module/zanode/view/createimage.html.php index d9d18dcf6b..934514162f 100644 --- a/module/zanode/view/createimage.html.php +++ b/module/zanode/view/createimage.html.php @@ -31,8 +31,12 @@
- -
zanode->createImageSuccess . html::a(inLink('create'), $lang->zanode->createImageButton, "_parent");?>
+ parent}"); + $link = str_replace('onlybody=yes', '', $link); + $link = trim($link, '?'); + ?> +
zanode->createImageSuccess . html::a($link, $lang->zanode->createImageButton, "_parent", "style='color:#2e7fff;'");?>
zanode->createImageFail;?>
@@ -99,5 +103,5 @@ function updateStatus(data) }, 'json'); } - + diff --git a/module/zanode/view/getvnc.html.php b/module/zanode/view/getvnc.html.php index b439daa0f4..4eb04c8fbd 100644 --- a/module/zanode/view/getvnc.html.php +++ b/module/zanode/view/getvnc.html.php @@ -12,7 +12,7 @@ ?> getModuleRoot() . 'common/view/header.lite.html.php';?>
- ";?> + ";?>