Commit 8a02001a by Your Name

minimize diff by restoring function locations

parent 38502617
...@@ -78,6 +78,16 @@ if Backbone? ...@@ -78,6 +78,16 @@ if Backbone?
if @getContent(id) if @getContent(id)
@getContent(id).updateInfo(info) @getContent(id).updateInfo(info)
$.extend @contentInfos, infos $.extend @contentInfos, infos
pinThread: ->
pinned = @get("pinned")
@set("pinned",pinned)
@trigger "change", @
unPinThread: ->
pinned = @get("pinned")
@set("pinned",pinned)
@trigger "change", @
flagAbuse: -> flagAbuse: ->
temp_array = @get("abuse_flaggers") temp_array = @get("abuse_flaggers")
...@@ -128,16 +138,6 @@ if Backbone? ...@@ -128,16 +138,6 @@ if Backbone?
@get("votes")["up_count"] = parseInt(@get("votes")["up_count"]) - 1 @get("votes")["up_count"] = parseInt(@get("votes")["up_count"]) - 1
@trigger "change", @ @trigger "change", @
pinThread: ->
pinned = @get("pinned")
@set("pinned",pinned)
@trigger "change", @
unPinThread: ->
pinned = @get("pinned")
@set("pinned",pinned)
@trigger "change", @
display_body: -> display_body: ->
if @has("highlighted_body") if @has("highlighted_body")
String(@get("highlighted_body")).replace(/<highlight>/g, '<mark>').replace(/<\/highlight>/g, '</mark>') String(@get("highlighted_body")).replace(/<highlight>/g, '<mark>').replace(/<\/highlight>/g, '</mark>')
......
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