Added expanding to note boxes.

This commit is contained in:
Martin Edenhofer 2014-04-05 09:34:52 +02:00
parent 96e338f86a
commit 200952f691
2 changed files with 14 additions and 1 deletions

View file

@ -49,6 +49,13 @@ class App.WidgetOrganization extends App.Controller
organizationData: organizationData organizationData: organizationData
) )
a = =>
@el.find('textarea').expanding()
@el.find('textarea').on('focus', =>
@el.find('textarea').expanding()
)
@delay( a, 80 )
### ###
@userTicketPopups( @userTicketPopups(
selector: '.user-tickets' selector: '.user-tickets'

View file

@ -51,13 +51,19 @@ class App.WidgetUser extends App.ControllerDrox
userData: userData userData: userData
) )
a = =>
@el.find('textarea').expanding()
@el.find('textarea').on('focus', =>
@el.find('textarea').expanding()
)
@delay( a, 80 )
@userTicketPopups( @userTicketPopups(
selector: '.user-tickets' selector: '.user-tickets'
user_id: user.id user_id: user.id
position: 'right' position: 'right'
) )
if user.organization_id if user.organization_id
@el.append('<div class="org-info"></div>') @el.append('<div class="org-info"></div>')
new App.WidgetOrganization( new App.WidgetOrganization(