Update leaflet to 1.9.4

master
Jonas Letzbor 2023-07-24 23:37:01 +02:00
parent f40ea8dc8f
commit 5ca6a0d601
Signed by: RPJosh
GPG Key ID: 46D72F589702E55A
3 changed files with 16 additions and 5 deletions

View File

@ -105,7 +105,7 @@ L.Control.ActiveLayers = L.Control.Layers.extend({
_recountLayers: function () {
var i, input, obj,
inputs = this._form.getElementsByTagName('input'),
inputs = document.getElementsByClassName('leaflet-control-layers-selector'),
inputsLen = inputs.length;
for (i = 0; i < inputsLen; i++) {

File diff suppressed because one or more lines are too long

View File

@ -23,6 +23,8 @@ use OCA\GpxEdit\Controller\UtilsController;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent;
use OCP\EventDispatcher\IEventDispatcher;
/**
* Class Application
@ -31,13 +33,21 @@ use OCP\AppFramework\Bootstrap\IRegistrationContext;
*/
class Application extends App implements IBootstrap {
public const APP_ID = 'gpxmotion';
/**
* Constructor
*
* @param array $urlParams
*/
public function __construct(array $urlParams = []) {
parent::__construct('gpxedit', $urlParams);
parent::__construct(self::APP_ID, $urlParams);
$eventDispatcher = $this->getContainer()->get(IEventDispatcher::class);
$eventDispatcher->addListener(LoadAdditionalScriptsEvent::class, function() {
\OCP\Util::addScript(self::APP_ID, 'filetypes');
\OCP\Util::addStyle(self::APP_ID, 'style');
});
}
public function register(IRegistrationContext $context): void {