Ack! Messed up the jshint again. I gotta get better about this.

This commit is contained in:
Robin Ward 2013-02-25 18:43:45 -05:00
parent 397c6ca761
commit e28594b94e
1 changed files with 2 additions and 2 deletions

View File

@ -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;