]> _ Git - cubeextranet.git/commitdiff
wip #4776 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 12 Oct 2021 10:13:03 +0000 (10:13 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 12 Oct 2021 10:13:03 +0000 (10:13 +0000)
inc/ws/Controlleur/class.ws.url.php
js/ws.js

index c9aafdeeb65dddc5d4ffc984069ae15a78ea33de..d00c59575b9db55c8437ad8047a023e4eab8502e 100644 (file)
@@ -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 .= '<li data-type="' . $infos['type'] . '"><a target="_blank" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a><a data-ok-content="' . __('URL copiée') . '" data-tippy-content="' . __("Copier l'URL dans le presse-papier") . '" class="clipboardurl" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '"><img src="/images/ws/link.svg"></a></li>';
+                $res .= '<li data-type="' . $infos['type'] . '"><a class="extfb" target="_blank" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a><a data-ok-content="' . __('URL copiée') . '" data-tippy-content="' . __("Copier l'URL dans le presse-papier") . '" class="clipboardurl" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '"><img src="/images/ws/link.svg"></a></li>';
             }
         }
         $res .= '</ul></div>';
index dfd1488106da810cc5c8ad650b137bf8f00100ee..69ae301325439fdfb968774808338f459befe41b 100644 (file)
--- 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) {