Sha256: d91705c1024d059a75efb2a59ce529604a69b604e478317b131557c40be88f27
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
(function($) { // code that automatically hooks up the traits + widgets defined in the edifice namespace // when the document is ready, we can attach widgets $(document).ready(function() { $('body').attach_widgets().attach_traits(); $(document).trigger('widgetsReady'); // whenever an ajax request completes, we want to attach any widgets that have been attached to do the dom $('body').ajaxComplete(function(event, request) { $('body').attach_widgets().attach_traits(); $(document).trigger('widgetsReady'); }); }); }(jQuery));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
edifice-widgets-0.1.0 | app/assets/javascripts/edifice-widgets/hooks.js |