From: vincent@cubedesigners.com Date: Tue, 12 Oct 2021 10:13:03 +0000 (+0000) Subject: wip #4776 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=af4e9edf9f1ffbf66f6859b4ea131f5414d7d9cf;p=cubeextranet.git wip #4776 @0.5 --- diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index c9aafdeeb..d00c59575 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -564,7 +564,7 @@ class wsUrl $versions['win-html'] = array('title' => __('Version offline') . ' - ' . __('HTML') . ' (' . __('Non adaptée à l\'installation sur un serveur web') . ')', 'icon' => cubeMedia::silk('cd.png')); if ($droits->admin) { $versions['phonegap'] = array('title' => __('Version offline') . ' - ' . __('Application mobile'), 'icon' => cubeMedia::image(IMG . '/phonegap.png')); - $versions['precompiled'] = array('title' => __('Version precompilée') , 'icon' => cubeMedia::image(IMG . '/phonegap.png')); + $versions['precompiled'] = array('title' => __('Version precompilée'), 'icon' => cubeMedia::image(IMG . '/phonegap.png')); } if (!$select) { @@ -680,7 +680,7 @@ class wsUrl if (!isset($infos['pattern'])) { $infos['pattern'] = '$1_$2'; } - $res .= '
  • ' . $infos['icon'] . $infos['title'] . '
  • '; + $res .= '
  • ' . $infos['icon'] . $infos['title'] . '
  • '; } } $res .= ''; diff --git a/js/ws.js b/js/ws.js index dfd148810..69ae30132 100644 --- a/js/ws.js +++ b/js/ws.js @@ -84,6 +84,15 @@ function load_ws_once() { return false; }); } + + $(document).on('click', 'a.extfb', function () { + try { + nw.Shell.openExternal('https://workshop.fluidbook.com' + $(this).attr('href')); + return false; + } catch (e) { + } + return true; + }); } function initGroup(group) {