Sha256: 771a64198eecf4fa64b32a52d70624d7d34fe888e63cadf5f811b66cc75a3e7c

Contents?: true

Size: 1.18 KB

Versions: 32

Compression:

Stored size: 1.18 KB

Contents

<%- 
#   Include this partial to put the background updater device on your page.
#   This actually just sets up the Umlaut JQuery background updater, for
#   unobtrusive adding of background html content to menu page.  
-%>

<% 
   # only include if we have any background services. We could check to make
   # sure we only have background services we care about, but it's more work--
   # the updater will only run ONCE at most wrongly, then the
   # background_update action will stop it. 
   if (  any_services_in_progress? )
%>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function($) {
  var updater = new Umlaut.HtmlUpdater("<%= root_url %>"  ,  "umlaut.request_id=<%= @user_request.id %>"  );

  <% bg_update_sections.collect do |section| %>
    updater.add_section_target({ umlaut_section_id: "<%= section[:div_id]  %>"  });    
  <% end %>
  
  
  //Wait the designated number of seconds before kicking off the first bg 
  //update request. Future requests will be automatically made with delay.. 
  setTimeout(function() { updater.update(); },
             <%= umlaut_config.lookup!("poll_wait_seconds", 4)*1000 %>
             );
  
});




//]]>
</script>  
 
<% end %>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
umlaut-3.0.5 app/views/resolve/_background_updater.html.erb
umlaut-3.0.4 app/views/resolve/_background_updater.html.erb
umlaut-3.0.3 app/views/resolve/_background_updater.html.erb
umlaut-3.0.2 app/views/resolve/_background_updater.html.erb
umlaut-3.0.1 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0rc1 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta10 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta9 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta8 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta7 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta6 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta5 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta4 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta3 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta2 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0beta1 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0alpha15 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0alpha14 app/views/resolve/_background_updater.html.erb
umlaut-3.0.0alpha13 app/views/resolve/_background_updater.html.erb