diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index e62434b7f..960b99871 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -531,6 +531,8 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; // Command to provide the jQuery css() function. case 'css': $(command.target).css(command.arguments); + // Attach all registered behaviors to the new content. + e107.attachBehaviors(); break; // Command to set the settings that will be used for other commands in this response. @@ -544,12 +546,16 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; // Command to attach data using jQuery's data API. case 'data': $(command.target).data(command.name, command.value); + // Attach all registered behaviors to the new content. + e107.attachBehaviors(); break; // Command to apply a jQuery method. case 'invoke': var $element = $(command.target); $element[command.method].apply($element, command.arguments); + // Attach all registered behaviors to the new content. + e107.attachBehaviors(); break; } });