Improved use of .expanding(), removed log messages.
This commit is contained in:
parent
4109266fa5
commit
2a3aef0ca6
3 changed files with 20 additions and 8 deletions
|
@ -654,8 +654,12 @@ class App.ControllerForm extends App.Controller
|
|||
item = $( App.view('generic/textarea')( attribute: attribute ) + '<div class="file-uploader ' + attribute.class + '" id="' + fileUploaderId + '"></div>' )
|
||||
|
||||
a = =>
|
||||
visible = $( item[0] ).is(":visible")
|
||||
if visible && !$( item[0] ).expanding('active')
|
||||
$( item[0] ).expanding()
|
||||
$( item[0] ).on('focus', ->
|
||||
visible = $( item[0] ).is(":visible")
|
||||
if visible && !$( item[0] ).expanding('active')
|
||||
$( item[0] ).expanding()
|
||||
)
|
||||
App.Delay.set( a, 80 )
|
||||
|
|
|
@ -42,11 +42,15 @@ class App.WidgetOrganization extends App.Controller
|
|||
)
|
||||
|
||||
a = =>
|
||||
visible = @el.find('textarea').is(":visible")
|
||||
if visible && !@el.find('textarea').expanding('active')
|
||||
@el.find('textarea').expanding()
|
||||
@el.find('textarea').on('focus', =>
|
||||
@el.find('textarea').on('focus', (e) =>
|
||||
visible = @el.find('textarea').is(":visible")
|
||||
if visible && !@el.find('textarea').expanding('active')
|
||||
@el.find('textarea').expanding()
|
||||
)
|
||||
@delay( a, 80 )
|
||||
@delay( a, 40 )
|
||||
|
||||
# enable user popups
|
||||
@userPopups()
|
||||
|
|
|
@ -72,11 +72,15 @@ class App.WidgetUser extends App.ControllerDrox
|
|||
)
|
||||
|
||||
a = =>
|
||||
visible = @el.find('textarea').is(":visible")
|
||||
if visible && !@el.find('textarea').expanding('active')
|
||||
@el.find('textarea').expanding()
|
||||
@el.find('textarea').on('focus', =>
|
||||
@el.find('textarea').on('focus', (e) =>
|
||||
visible = @el.find('textarea').is(":visible")
|
||||
if visible && !@el.find('textarea').expanding('active')
|
||||
@el.find('textarea').expanding()
|
||||
)
|
||||
@delay( a, 80 )
|
||||
@delay( a, 40 )
|
||||
|
||||
@userTicketPopups(
|
||||
selector: '.user-tickets'
|
||||
|
|
Loading…
Reference in a new issue