Sha256: a91235986b2da91fc66241dec8aadb8557e9880d2f7cd4bf3e9b89f7c6e5fac7
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 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 $(document).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.1 | app/assets/javascripts/edifice-widgets/hooks.js |