Ack! Messed up the jshint again. I gotta get better about this.
This commit is contained in:
parent
397c6ca761
commit
e28594b94e
|
@ -267,14 +267,14 @@ Discourse.Topic = Discourse.Model.extend({
|
|||
topic.set('errorLoading', true);
|
||||
|
||||
// If the result was 404 the post is not found
|
||||
if (result.status == 404) {
|
||||
if (result.status === 404) {
|
||||
topic.set('errorTitle', Em.String.i18n('topic.not_found.title'))
|
||||
topic.set('message', Em.String.i18n('topic.not_found.description'));
|
||||
return;
|
||||
}
|
||||
|
||||
// If the result is 403 it means invalid access
|
||||
if (result.status == 403) {
|
||||
if (result.status === 403) {
|
||||
topic.set('errorTitle', Em.String.i18n('topic.invalid_access.title'))
|
||||
topic.set('message', Em.String.i18n('topic.invalid_access.description'));
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue