class Pettanr.Panel.Edit extends Pettanr.Panel.Play\r
\r
load: (options) ->\r
- @fetch().done =>\r
- @attributes = @decoded_attributes()\r
- @load_elements(options)\r
+ @fetch({\r
+ success: (model, response, opt) => \r
+ @attributes = @decoded_attributes()\r
+ @load_elements(options)\r
+ error: (item, response, opt) =>\r
+ options.fail.call(options.context, response, opt)\r
+ })\r
\r
save: (attrs) ->\r
@url = @default_url()\r