Fix eslint errors
This commit is contained in:
parent
f41b5558b7
commit
2da8855cc2
1 changed files with 4 additions and 4 deletions
|
@ -1,16 +1,16 @@
|
||||||
L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
|
L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
|
||||||
var control = L.control(options);
|
var control = L.control(options);
|
||||||
|
|
||||||
control.onAdd = function (map) {
|
control.onAdd = function (map) {
|
||||||
var $container = $("<div>")
|
var $container = $("<div>")
|
||||||
.attr("class", "control-" + uiClass);
|
.attr("class", "control-" + uiClass);
|
||||||
|
|
||||||
var button = $("<a>")
|
var button = $("<a>")
|
||||||
.attr("class", "control-button")
|
.attr("class", "control-button")
|
||||||
.attr("href", "#")
|
.attr("href", "#")
|
||||||
.html("<span class=\"icon " + uiClass + "\"></span>")
|
.html("<span class=\"icon " + uiClass + "\"></span>")
|
||||||
.on("click", toggle);
|
.on("click", toggle);
|
||||||
|
|
||||||
if (buttonTitle) {
|
if (buttonTitle) {
|
||||||
button.attr("title", I18n.t(buttonTitle));
|
button.attr("title", I18n.t(buttonTitle));
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $container[0];
|
return $container[0];
|
||||||
}
|
};
|
||||||
|
|
||||||
// control.onAddPane = function (map, button, $ui, toggle) {
|
// control.onAddPane = function (map, button, $ui, toggle) {
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue