mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 05:31:58 +02:00
Fixed: Call e107.attachBehaviors() after a load of new content.
This commit is contained in:
parent
fa7cee16af
commit
c8feb4ae0c
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user