mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 12:37:51 -05:00
11 lines
265 B
CoffeeScript
11 lines
265 B
CoffeeScript
|
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
|