Update leaflet to 1.9.4
parent
f40ea8dc8f
commit
5ca6a0d601
|
@ -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
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue