overleaf/services/web/public/coffee/file-tree/DeletedDocsFolderView.coffee
2014-06-11 10:46:45 +01:00

33 lines
556 B
CoffeeScript

define [
"file-tree/FolderView"
], (FolderView) ->
DeletedDocsFolderView = FolderView.extend
template: $("#deletedDocsFolderTemplate").html()
render: () ->
@$el.append(Mustache.to_html @template, @model.attributes)
@_bindToDomElements()
@hideRenameBox()
@hideToggle()
@renderEntries()
@showEntries()
return @
onClick: () ->
e.preventDefault()
onToggle: () ->
e.preventDefault()
getContextMenuEntries: () -> null
hideToggle: () ->
@$(".js-toggle").hide()
makeReadOnly: () ->
makeReadWrite: () ->