3781: Fix progress% (100, not NaN) and manifest format (>=1 data locator) for zero...
[arvados.git] / apps / workbench / app / assets / javascripts / angular_shim.js
1 // Compile any new HTML content that was loaded via jQuery.ajax().
2 // Currently this only works for tabs because they emit an
3 // arv:pane:loaded event after updating the DOM.
4
5 $(document).on('arv:pane:loaded', function(event, updatedElement) {
6     if (updatedElement) {
7         angular.element(updatedElement).injector().invoke(function($compile) {
8             var scope = angular.element(updatedElement).scope();
9             $compile(updatedElement)(scope);
10         });
11     }
12 });