BUILD: make jshint happy

This commit is contained in:
Régis Hanol 2014-06-18 20:07:14 +02:00
parent 00117c18c3
commit 86b989f2ba

View file

@ -143,13 +143,13 @@ Discourse.Topic = Discourse.Model.extend({
makeBanner: function() { makeBanner: function() {
var self = this; var self = this;
return Discourse.ajax('/t/' + this.get('id') + '/make-banner', { type: 'PUT' }) return Discourse.ajax('/t/' + this.get('id') + '/make-banner', { type: 'PUT' })
.then(function () { self.set('archetype', 'banner'); }) .then(function () { self.set('archetype', 'banner'); });
}, },
removeBanner: function() { removeBanner: function() {
var self = this; var self = this;
return Discourse.ajax('/t/' + this.get('id') + '/remove-banner', { type: 'PUT' }) return Discourse.ajax('/t/' + this.get('id') + '/remove-banner', { type: 'PUT' })
.then(function () { self.set('archetype', 'regular'); }) .then(function () { self.set('archetype', 'regular'); });
}, },
starTooltipKey: function() { starTooltipKey: function() {