parent
d45572b76d
commit
0001d487a4
1 changed files with 11 additions and 4 deletions
13
js/index.js
13
js/index.js
|
|
@ -94,18 +94,25 @@
|
|||
function() {
|
||||
bootbox.prompt({
|
||||
size: 'small',
|
||||
title: i18next.t('map.delete-route'),
|
||||
title: i18next.t('map.delete-route-nogos'),
|
||||
inputType: 'checkbox',
|
||||
inputOptions: [
|
||||
{
|
||||
text: i18next.t('map.delete-route'),
|
||||
value: 'route'
|
||||
},
|
||||
{
|
||||
text: i18next.t('map.delete-nogo-areas'),
|
||||
value: 'nogo'
|
||||
}
|
||||
],
|
||||
value: ['route'],
|
||||
callback: function(result) {
|
||||
if (result !== null) {
|
||||
if (result.indexOf('route') !== -1) {
|
||||
routing.clear();
|
||||
if (result.length > 0 && result[0] === 'nogo') {
|
||||
}
|
||||
if (result.indexOf('nogo') !== -1) {
|
||||
nogos.clear();
|
||||
}
|
||||
onUpdate();
|
||||
|
|
@ -114,7 +121,7 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
i18next.t('map.clear-route')
|
||||
i18next.t('map.delete-route-nogos')
|
||||
);
|
||||
|
||||
function updateRoute(evt) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue