Skip to content

Commit

Permalink
Show cert select instead of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Mar 25, 2016
1 parent e78ccae commit 9cfc197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/TopicList.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class TopicList extends Class
submitCreateTopic: ->
# if not Page.hasOpenPort() then return false
if not Page.site_info.cert_user_id # No selected cert
Page.cmd "wrapperNotification", ["info", "Please, choose your account before creating a topic."]
Page.cmd "certSelect", [["zeroid.bit"]]
return false

title = $(".topic-new #topic_title").val().trim()
Expand Down Expand Up @@ -349,7 +349,7 @@ class TopicList extends Class

submitTopicVote: (e) =>
if not Page.site_info.cert_user_id # No selected cert
Page.cmd "wrapperNotification", ["info", "Please, choose your account before upvoting."]
Page.cmd "certSelect", [["zeroid.bit"]]
return false

elem = $(e.currentTarget)
Expand Down

0 comments on commit 9cfc197

Please sign in to comment.