[missions] add "zoom to mission" button on mobile and make the "missions in view" button a bit larger
This commit is contained in:
parent
e4a335db19
commit
48481dbae4
@ -8,6 +8,9 @@
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
}
|
||||
.plugin-mission-pane > button {
|
||||
padding: 0.3em 2em;
|
||||
}
|
||||
|
||||
.plugin-mission-summary {
|
||||
padding: 5px;
|
||||
|
@ -146,6 +146,13 @@ window.plugin.missions = {
|
||||
this.tabHeaders[id].parentNode.querySelector('.ui-icon-close').click();
|
||||
}
|
||||
|
||||
var button = content.insertBefore(document.createElement('button'), content.lastChild);
|
||||
button.textContent = 'Zoom to mission';
|
||||
button.addEventListener('click', function() {
|
||||
me.zoomToMission(mission);
|
||||
show('map');
|
||||
}, false);
|
||||
|
||||
var li = this.tabBar.appendChild(document.createElement('li'));
|
||||
var a = li.appendChild(document.createElement('a'));
|
||||
a.textContent = mission.title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user