You are here

function theme_block_refresh_js_wrapper in Block Refresh 5

put the whole thing in a jquery ready call

1 theme call to theme_block_refresh_js_wrapper()
block_refresh_footer in ./block_refresh.module
implements hook_footer calls the jquery to refresh blocks automatically, but only if the blocks exist on the current page and are enabled

File

./block_refresh.module, line 236

Code

function theme_block_refresh_js_wrapper($js) {
  return "\$(document).ready(function() {\n{$js}\n})";
}