|
|
@ -1,10 +1,12 @@
|
|
|
|
class app.views.Resizer extends app.View
|
|
|
|
class app.views.Resizer extends app.View
|
|
|
|
@className: '_resizer'
|
|
|
|
@className: '_resizer'
|
|
|
|
|
|
|
|
@attributes:
|
|
|
|
|
|
|
|
title: 'Click to toggle sidebar on/off'
|
|
|
|
|
|
|
|
|
|
|
|
@events:
|
|
|
|
@events:
|
|
|
|
dragstart: 'onDragStart'
|
|
|
|
dragstart: 'onDragStart'
|
|
|
|
dragend: 'onDragEnd'
|
|
|
|
dragend: 'onDragEnd'
|
|
|
|
dblclick: 'onDblClick'
|
|
|
|
click: 'onClick'
|
|
|
|
|
|
|
|
|
|
|
|
@isSupported: ->
|
|
|
|
@isSupported: ->
|
|
|
|
'ondragstart' of document.createElement('div') and !app.isMobile()
|
|
|
|
'ondragstart' of document.createElement('div') and !app.isMobile()
|
|
|
@ -32,7 +34,7 @@ class app.views.Resizer extends app.View
|
|
|
|
app.appCache?.updateInBackground()
|
|
|
|
app.appCache?.updateInBackground()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
onDblClick: (event) ->
|
|
|
|
onClick: ->
|
|
|
|
app.document.toggleSidebar(save: true)
|
|
|
|
app.document.toggleSidebar(save: true)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|