Commit 74501280 by Your Name

update coffeescript

parent 07534a72
......@@ -15,7 +15,7 @@ if Backbone?
initialize: ->
@displayedCollection = new Discussion(@collection.models, pages: @collection.pages)
@collection.on "change", @reloadDisplayedCollection
@sortBy = "date"
@sortBy = "pinned"
@discussionIds=""
@collection.on "reset", (discussion) =>
board = $(".current-board").html()
......
......@@ -84,8 +84,6 @@ class Thread(models.Model):
url = _url_for_pin_thread(thread_id)
params = {'user_id': user.id}
request = perform_request('put', url, params)
print "\n\n\n\n\n\n*******************"
print request
self.update_attributes(request)
def un_pin(self, user, thread_id):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment