Enable some more eslint rules from iD rules

This commit is contained in:
Tom Hughes 2019-04-06 15:48:51 +01:00
parent 07aa5ade67
commit 87127d41e9
8 changed files with 48 additions and 18 deletions

View file

@ -10,14 +10,14 @@ OSM.Changeset = function (map) {
};
page.load = function(path, id) {
if(id)
if (id)
currentChangesetId = id;
initialize();
addChangeset(currentChangesetId, true);
};
function addChangeset(id, center) {
map.addObject({type: 'changeset', id: parseInt(id)}, function(bounds) {
map.addObject({type: 'changeset', id: parseInt(id, 10)}, function(bounds) {
if (!window.location.hash && bounds.isValid() &&
(center || !map.getBounds().contains(bounds))) {
OSM.router.withoutMoveListener(function () {
@ -32,7 +32,7 @@ OSM.Changeset = function (map) {
$(form).find("input[type=submit]").prop("disabled", true);
if(include_data) {
if (include_data) {
data = {text: $(form.text).val()};
} else {
data = {};