1 class Pettanr.Panel extends Peta.Root
\r
17 new Pettanr.PanelPicture({id: @get('pp_id')})
\r
19 is_visible: (operators) ->
\r
20 switch super(operators)
\r
21 when null # super return
\r
26 return true if @isNew()
\r
29 is_usable: (operators) ->
\r
30 @is_visible(operators)
\r
35 initialize: (attr = {}, options = {}) ->
\r
38 @url = @url + @get('id')
\r
39 if options.with_elements
\r
40 @url = @url + '?with_elements=true'
\r
42 class Pettanr.Panels extends Backbone.Collection
\r
43 model: Pettanr.Panel
\r