mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
11 lines
No EOL
307 B
CoffeeScript
11 lines
No EOL
307 B
CoffeeScript
CocoModel = require('./CocoModel')
|
|
|
|
module.exports = class PatchModel extends CocoModel
|
|
@className: "Patch"
|
|
urlRoot: "/db/patch"
|
|
|
|
setStatus: (status) ->
|
|
PatchModel.setStatus @id, status
|
|
|
|
@setStatus: (id, status) ->
|
|
$.ajax("/db/patch/#{id}/status", {type:"PUT", data: {status:status}}) |