Merge pull request #662 from metamaps/fix/no-add-topic-message-if-logged-out

hide double click to add topic message if can't edit map
This commit is contained in:
Devin Howard 2016-09-25 18:50:57 +08:00 committed by GitHub
commit 997a4b7329

View file

@ -150,7 +150,9 @@ const JIT = {
if (self.vizData.length == 0) {
$('#instructions div').hide()
$('#instructions div.addTopic').show()
if (Metamaps.Active.Map.authorizeToEdit()) {
$('#instructions div.addTopic').show()
}
GlobalUI.showDiv('#instructions')
Visualize.loadLater = true
}