lib/assets/javascripts/tao/ui/table/expandable.coffee in tao_ui-0.3.1 vs lib/assets/javascripts/tao/ui/table/expandable.coffee in tao_ui-0.3.2
- old
+ new
@@ -49,13 +49,14 @@
.addClass 'collapsing'
$panel.removeClass 'expanded'
$panelWrapper.css 'height', 0
@
- _loadRemotePanel: ($panel) ->
- return unless $panel.is('[data-url]')
+ _loadRemotePanel: ($panelWrapper) ->
+ return unless $panelWrapper.is('[data-url]')
$.ajax
- url: $panel.data('url')
+ url: $panelWrapper.data('url')
method: 'get'
dataType: 'script'
.done ->
- $panel.removeAttr 'data-url'
+ $panelWrapper.removeAttr 'data-url'
+ $panelWrapper.css 'height', $panelWrapper[0].scrollHeight