]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/iD/iD.js
Update to iD v2.4.1
[rails.git] / vendor / assets / iD / iD.js
index f83e68fada0622a7657541d661fdd8163a8d01f6..dd95c26b5bc29c1577c3b9c354663eb02d57ea43 100644 (file)
@@ -73756,10 +73756,11 @@ function uiCommit(context) {
 
         // always update userdetails, just in case user reauthenticates as someone else
         if (userDetails && userDetails.changesets_count !== undefined) {
-            tags.changesets_count = String(userDetails.changesets_count);
+            var changesetsCount = parseInt(userDetails.changesets_count, 10) + 1;  // #4283
+            tags.changesets_count = String(changesetsCount);
 
             // first 100 edits - new user
-            if (parseInt(tags.changesets_count, 10) < 100) {
+            if (changesetsCount <= 100) {
                 var s;
                 s = context.storage('walkthrough_completed');
                 if (s) {
@@ -75842,7 +75843,7 @@ function setAreaKeys(value) {
 
 function coreContext() {
     var context = {};
-    context.version = '2.4.0';
+    context.version = '2.4.1';
 
     // create a special translation that contains the keys in place of the strings
     var tkeys = lodash.cloneDeep(en);