Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Feb 20, 2024
1 parent ba8a27c commit e67e61e
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -271,9 +271,9 @@ var dnaClipbaord = new Clipboard('#copy-as-dna', {
return $q(function (resolve, reject) {
var timeout = function () {
if ($('#feature-viewer').length) resolve();
else $timeout(timeout, 500);
else $timeout(timeout, 1000);
};
$timeout(timeout, 500);
$timeout(timeout, 1000);
});
};

Expand All @@ -283,7 +283,8 @@ var dnaClipbaord = new Clipboard('#copy-as-dna', {
* Can be invoked upon changing Xrefs page, if server-side pagination's on.
*/
$scope.createModificationsFeature = function(modifications, accession) {
if (!$scope.featureViewer.hasFeature(accession, "id")) { // if feature track's already there, don't duplicate it
console.log($scope.featureViewer);
if ($scope.featureViewer && !$scope.featureViewer.hasFeature(accession, "id")) { // if feature track's already there, don't duplicate it
// sort modifications by position
modifications.sort(function(a, b) {return a.position - b.position});

Expand Down

0 comments on commit e67e61e

Please sign in to comment.