Rename dialog
This commit is contained in:
parent
dac4a419a9
commit
51ed126a12
2 changed files with 10 additions and 10 deletions
|
|
@ -100,7 +100,7 @@
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
data-i18n="trackasroute.title"
|
data-i18n="trackasroute.title"
|
||||||
data-toggle="modal"
|
data-toggle="modal"
|
||||||
data-target="#loadedittrackdlg"
|
data-target="#loadedittrack"
|
||||||
href="#"
|
href="#"
|
||||||
id="navbarLoadEditTracks"
|
id="navbarLoadEditTracks"
|
||||||
>Track as Route</a
|
>Track as Route</a
|
||||||
|
|
@ -592,7 +592,7 @@
|
||||||
<!-- Track to Route modal window -->
|
<!-- Track to Route modal window -->
|
||||||
<div
|
<div
|
||||||
class="modal fade"
|
class="modal fade"
|
||||||
id="loadedittrackdlg"
|
id="loadedittrack"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-labelledby="Load Track as route"
|
aria-labelledby="Load Track as route"
|
||||||
|
|
|
||||||
|
|
@ -156,13 +156,13 @@ BR.routeLoader = function (map, layersControl, routing, pois) {
|
||||||
if (typeof isBusy === undefined) {
|
if (typeof isBusy === undefined) {
|
||||||
isBusy = false;
|
isBusy = false;
|
||||||
}
|
}
|
||||||
if (isBusy === true) $('#loadedittrackdlg #msg_busy').removeClass('invisible');
|
if (isBusy === true) $('#loadedittrack #msg_busy').removeClass('invisible');
|
||||||
else $('#loadedittrackdlg #msg_busy').addClass('invisible');
|
else $('#loadedittrack #msg_busy').addClass('invisible');
|
||||||
},
|
},
|
||||||
|
|
||||||
onManualCollapse: function (e) {
|
onManualCollapse: function (e) {
|
||||||
//workaround for starting with closed collapse
|
//workaround for starting with closed collapse
|
||||||
if ($('#loadedittrackdlg').is(':hidden')) return;
|
if ($('#loadedittrack').is(':hidden')) return;
|
||||||
this._options.isTestMode = $(e.target).hasClass('show');
|
this._options.isTestMode = $(e.target).hasClass('show');
|
||||||
|
|
||||||
if (this._options.isTestMode) {
|
if (this._options.isTestMode) {
|
||||||
|
|
@ -172,13 +172,13 @@ BR.routeLoader = function (map, layersControl, routing, pois) {
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function (map) {
|
onAdd: function (map) {
|
||||||
$('#loadedittrackdlg').on(
|
$('#loadedittrack').on(
|
||||||
'hidden.bs.modal',
|
'hidden.bs.modal',
|
||||||
function (e) {
|
function (e) {
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
$('#loadedittrackdlg').on(
|
$('#loadedittrack').on(
|
||||||
'show.bs.modal',
|
'show.bs.modal',
|
||||||
function (e) {
|
function (e) {
|
||||||
$('#manual_collapse').collapse('hide');
|
$('#manual_collapse').collapse('hide');
|
||||||
|
|
@ -195,7 +195,7 @@ BR.routeLoader = function (map, layersControl, routing, pois) {
|
||||||
function () {
|
function () {
|
||||||
this.addRoutingPoints();
|
this.addRoutingPoints();
|
||||||
this.onBusyChanged(false);
|
this.onBusyChanged(false);
|
||||||
$('#loadedittrackdlg').modal('hide');
|
$('#loadedittrack').modal('hide');
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
@ -203,7 +203,7 @@ BR.routeLoader = function (map, layersControl, routing, pois) {
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function () {
|
function () {
|
||||||
this.convertTrackLocal();
|
this.convertTrackLocal();
|
||||||
$('#loadedittrackdlg').modal('hide');
|
$('#loadedittrack').modal('hide');
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
@ -214,7 +214,7 @@ BR.routeLoader = function (map, layersControl, routing, pois) {
|
||||||
L.DomUtil.get('loadedittrackFile').onchange = L.bind(this.onFileChanged, this);
|
L.DomUtil.get('loadedittrackFile').onchange = L.bind(this.onFileChanged, this);
|
||||||
this.onFileChanged({ target: L.DomUtil.get('loadedittrackFile') });
|
this.onFileChanged({ target: L.DomUtil.get('loadedittrackFile') });
|
||||||
|
|
||||||
this.setDialogDraggable($('#loadedittrackdlg .modal-header'));
|
this.setDialogDraggable($('#loadedittrack .modal-header'));
|
||||||
|
|
||||||
$('#manual_collapse').collapse('hide');
|
$('#manual_collapse').collapse('hide');
|
||||||
$('#manual_collapse').on(
|
$('#manual_collapse').on(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue