Skip to content

Commit

Permalink
Bugfix: trigger load events if embedded controller is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
vhochstein committed Feb 27, 2013
1 parent 4dd120c commit d8d51f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/jquery/active_scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,9 @@ var ActiveScaffold = {
load_embedded_conrollers: function(){
$.each($('a.as_link_to_component'), function(index) {
var div_element = $(this).closest('div.active-scaffold-component');
div_element.load($(this).attr('href').append_params({embedded: true}));
div_element.load($(this).attr('href').append_params({embedded: true}), function() {
ActiveScaffold.trigger_load_events($(this).find('[data-as_load]'));
});
});
},

Expand Down

0 comments on commit d8d51f7

Please sign in to comment.