4272e1c7a2d10741a096eb7868c680bdb11e9895 braney Thu Mar 22 11:37:42 2018 -0700 changes in response to code review #21090 diff --git src/hg/js/hgCollection.js src/hg/js/hgCollection.js index c2d05c2..4f3f48a 100644 --- src/hg/js/hgCollection.js +++ src/hg/js/hgCollection.js @@ -530,31 +530,32 @@ } else { var counter = 1; for(; ; counter++) { var label = root + ' (' + counter + ')'; if (!collectionLabels[label]) { collectionLabels[label] = 1; return label; } } } } function getUniqueName() { // make sure name is unique in track hub - var seconds = Math.floor( Date.now() / 1000 ) - 1520631071; + var releaseDateInSeconds = 1520631071; + var seconds = Math.floor( Date.now() / 1000 ) - releaseDateInSeconds; var root = "coll" + seconds; if (!collectionNames[root]) { collectionNames[root] = 1; return root; } else { var counter = 1; for(; ; counter++) { var name = root + counter; if (!collectionNames[name]) { collectionNames[name] = 1; return name; } } }