inactive buttons use default cursor
This commit is contained in:
parent
ab99ffc241
commit
d4c5725613
@ -37,7 +37,7 @@ OSRM.Control.Locations = L.Control.extend({
|
|||||||
|
|
||||||
_createButton: function (id, container, fn, context, isActive) {
|
_createButton: function (id, container, fn, context, isActive) {
|
||||||
var inactive = (isActive == false) ? "-inactive" : "";
|
var inactive = (isActive == false) ? "-inactive" : "";
|
||||||
var classNames = "box-content gui-control " + id+inactive;
|
var classNames = "box-content" + " " + "gui-control"+inactive + " " + id+inactive;
|
||||||
var link = L.DomUtil.create('a', classNames, container);
|
var link = L.DomUtil.create('a', classNames, container);
|
||||||
link.title = id;
|
link.title = id;
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ OSRM.Control.Locations = L.Control.extend({
|
|||||||
this._routeButton.className = "box-content gui-control gui-locations-route";
|
this._routeButton.className = "box-content gui-control gui-locations-route";
|
||||||
},
|
},
|
||||||
deactivateRoute: function() {
|
deactivateRoute: function() {
|
||||||
this._routeButton.className = "box-content gui-control gui-locations-route-inactive";
|
this._routeButton.className = "box-content gui-control-inactive gui-locations-route-inactive";
|
||||||
},
|
},
|
||||||
setTooltips: function( userButton, routeButton) {
|
setTooltips: function( userButton, routeButton) {
|
||||||
this._userButton.title = userButton;
|
this._userButton.title = userButton;
|
||||||
|
@ -37,7 +37,7 @@ OSRM.Control.Zoom = L.Control.extend({
|
|||||||
|
|
||||||
_createButton: function (id, container, fn, context, isActive) {
|
_createButton: function (id, container, fn, context, isActive) {
|
||||||
var inactive = (isActive == false) ? "-inactive" : "";
|
var inactive = (isActive == false) ? "-inactive" : "";
|
||||||
var classNames = "box-content gui-control " + id+inactive;
|
var classNames = "box-content" + " " + "gui-control"+inactive + " " + id+inactive;
|
||||||
var link = L.DomUtil.create('a', classNames, container);
|
var link = L.DomUtil.create('a', classNames, container);
|
||||||
link.title = id;
|
link.title = id;
|
||||||
|
|
||||||
|
@ -540,6 +540,13 @@ html, body
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.gui-control-inactive {
|
||||||
|
cursor:default;
|
||||||
|
position:relative;
|
||||||
|
background-position: 50% 50%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* zoom buttons */
|
/* zoom buttons */
|
||||||
|
Loading…
Reference in New Issue
Block a user