]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/changeset.js
Enable some more eslint rules from iD rules
[rails.git] / app / assets / javascripts / index / changeset.js
index fa9e1874d92e86fa26d005b1636fce64f1542c37..060c5c8be909ecf2763f4efdd6c9b04c83794119 100644 (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 = {};