JS/Mapper

* generally allow zone links on a map on the zone detail page
 * manually disable it for the main map
This commit is contained in:
Sarjuuk
2024-06-27 23:45:55 +02:00
parent ae54e5e213
commit 33d2192431
2 changed files with 6 additions and 4 deletions

View File

@@ -493,7 +493,7 @@ class ZonePage extends GenericPage
$som['instance'] = true; $som['instance'] = true;
$this->map = array( $this->map = array(
'data' => ['parent' => 'mapper-generic', 'zone' => $this->typeId], 'data' => ['parent' => 'mapper-generic', 'zone' => $this->typeId, 'zoneLink' => false],
'som' => $som 'som' => $som
); );
} }

View File

@@ -19327,9 +19327,11 @@ function Mapper(opt, noScroll) {
this.buttons = (this.buttons == null ? true : this.buttons); this.buttons = (this.buttons == null ? true : this.buttons);
this.zoneLink = (this.zoneLink == null ? true : this.zoneLink); this.zoneLink = (this.zoneLink == null ? true : this.zoneLink);
if(location.href.indexOf('zone=') != -1) { /* aowow - disabled
this.zoneLink = false; * if(location.href.indexOf('zone=') != -1) {
} * this.zoneLink = false;
* }
*/
this.zoom = (this.zoom == null ? 0 : this.zoom); this.zoom = (this.zoom == null ? 0 : this.zoom);
this.zone = (this.zone == null ? 0 : this.zone); this.zone = (this.zone == null ? 0 : this.zone);