inactive buttons use default cursor

This commit is contained in:
DennisSchiefer 2012-08-28 09:09:43 +01:00
parent ab99ffc241
commit d4c5725613
3 changed files with 10 additions and 3 deletions

View File

@ -37,7 +37,7 @@ OSRM.Control.Locations = L.Control.extend({
_createButton: function (id, container, fn, context, isActive) {
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);
link.title = id;
@ -54,7 +54,7 @@ OSRM.Control.Locations = L.Control.extend({
this._routeButton.className = "box-content gui-control gui-locations-route";
},
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) {
this._userButton.title = userButton;

View File

@ -37,7 +37,7 @@ OSRM.Control.Zoom = L.Control.extend({
_createButton: function (id, container, fn, context, isActive) {
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);
link.title = id;

View File

@ -540,6 +540,13 @@ html, body
background-repeat: no-repeat;
display: block;
}
.gui-control-inactive {
cursor:default;
position:relative;
background-position: 50% 50%;
background-repeat: no-repeat;
display: block;
}
/* zoom buttons */