mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user