1 class Pettanr.FoldersController extends Pettanr.AppController
\r
8 @item = new Pettanr.Folder.Root()
\r
10 @item.fetch({}).done () ->
\r
11 _this.children_html()
\r
13 show_html_format: (format) ->
\r
15 children_html: () ->
\r
16 collection = new Pettanr.Folder.Children({id: @item.get('id')})
\r
17 f = new Locmare.Filer({
\r
18 item_name: 'folder',
\r
19 collection: collection,
\r
21 operators: window.operators
\r
23 $("#pettanr").html(f.render().el)
\r
26 console.log(@params)
\r
28 @item = new Pettanr.FolderWatch({id: id})
\r
30 @item.fetch({}).done () ->
\r
31 if _this.item.is_remote()
\r
32 c = _this.item.get('controller_name')
\r
33 a = if Pettanr.is_blank(_this.item.get('action_name'))
\r
36 _this.item.get('action_name')
\r
37 window.router['c_i'](c, a, '') # call action event in router for redirect
\r
39 _this.children_html()
\r