Skip to content

Commit

Permalink
Fix i button in layer selector (#3443)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Aug 17, 2023
1 parent 198dfb2 commit 88252e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion bims/static/js/views/olmap_layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,9 +1046,19 @@ define(['shared', 'backbone', 'underscore', 'jquery', 'jqueryUi', 'jqueryTouch',
let order = Shared.StorageUtil.getItemDict(layerName, 'order');
if (order != null) {
self.changeLayerOder(layerName, order);
} else {
if (layerName === 'Sites') {
self.changeLayerOder(layerName, 0)
}
}
});
self.layerSelector.trigger('sortupdate');
if (self && self.layerSelector) {
self.layerSelector.trigger('sortupdate');
} else {
setTimeout(function () {
self.layerSelector.trigger('sortupdate');
}, 600)
}
}
})
});
2 changes: 1 addition & 1 deletion deployment/docker/REQUIREMENTS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ django-modelsdoc==0.1.11

# contacts page
django-contact-us==0.4.3
django-ordered-model==3.4.1
django-ordered-model==3.7.4

# Statistics Dashboard

Expand Down
2 changes: 1 addition & 1 deletion deployment/production/REQUIREMENTS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ django-modelsdoc==0.1.11

# contacts page
django-contact-us==0.4.3
django-ordered-model==3.4.1
django-ordered-model==3.7.4

# Statistics Dashboard

Expand Down

0 comments on commit 88252e6

Please sign in to comment.