overleaf/services/web/public/coffee/history/Version.coffee

11 lines
265 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
define [
"libs/backbone"
], ()->
Version = Backbone.Model.extend
url: -> "/project/" + window.userSettings.project_id + "/version/" + @id
parse: (json) ->
if json.version
json = json.version
json.message = json.message.split("\n")[0]
return json