@osfarm/itineraire-technique 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/editor-main.js +7 -7
- package/package.json +1 -1
package/js/editor-main.js
CHANGED
|
@@ -312,18 +312,18 @@ class TikaEditor {
|
|
|
312
312
|
const self = this;
|
|
313
313
|
$(document).ready(function() {
|
|
314
314
|
// If we are in a wiki (the domain contains "tripleperformance.ag or tripleperformance.fr" then show the Wiki buttons
|
|
315
|
-
if (window.location.hostname.includes("
|
|
315
|
+
if ((window.location.hostname.includes("itinera") || window.location.hostname.includes("localhost"))
|
|
316
|
+
&& window.location.search.includes("itinera") ) {
|
|
316
317
|
|
|
317
|
-
//
|
|
318
|
-
self.editorLoader = new
|
|
318
|
+
// If we are in Itinera - the domain is *.itinera.ag or localhost with a itinera param
|
|
319
|
+
self.editorLoader = new ItineraLoader(self);
|
|
319
320
|
self.editorLoader.setupButtons();
|
|
320
321
|
self.editorLoader.loadPageFromURL();
|
|
321
322
|
|
|
322
|
-
} else if (window.location.hostname.includes("
|
|
323
|
-
(window.location.hostname.includes("localhost") && window.location.search.includes("itinera")) ) {
|
|
323
|
+
} else if (window.location.hostname.includes("tripleperformance.ag") || window.location.hostname.includes("tripleperformance.fr")) {
|
|
324
324
|
|
|
325
|
-
//
|
|
326
|
-
self.editorLoader = new
|
|
325
|
+
// Hide NonWikiButtons
|
|
326
|
+
self.editorLoader = new WikiLoader(self);
|
|
327
327
|
self.editorLoader.setupButtons();
|
|
328
328
|
self.editorLoader.loadPageFromURL();
|
|
329
329
|
|