Move openPanel after this.permissions has been set

This commit is contained in:
Yohan Boniface 2018-06-27 09:29:54 +02:00
parent fded9d6201
commit b804b5bc41

View file

@ -149,10 +149,6 @@ L.U.Map.include({
} }
delete this.options.displayDataBrowserOnLoad; delete this.options.displayDataBrowserOnLoad;
} }
this.onceDatalayersLoaded(function () {
if (this.options.onLoadPanel === 'databrowser') this.openBrowser();
else if (this.options.onLoadPanel === 'caption') this.displayCaption();
});
this.ui.on('panel:closed', function () { this.ui.on('panel:closed', function () {
this.invalidateSize({pan: false}); this.invalidateSize({pan: false});
@ -208,6 +204,10 @@ L.U.Map.include({
this.initEditBar(); this.initEditBar();
} }
this.initShortcuts(); this.initShortcuts();
this.onceDatalayersLoaded(function () {
if (this.options.onLoadPanel === 'databrowser') this.openBrowser();
else if (this.options.onLoadPanel === 'caption') this.displayCaption();
});
window.onbeforeunload = function (e) { window.onbeforeunload = function (e) {