mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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}}) |