lib/yard/server/templates/doc_server/processing/html/processing.erb in yard-0.6.1 vs lib/yard/server/templates/doc_server/processing/html/processing.erb in yard-0.6.2

- old
+ new

@@ -5,12 +5,12 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" charset="utf-8" /> <link rel="stylesheet" href="/css/custom.css" type="text/css" media="screen" charset="utf-8" /> <script type="text/javascript" charset="utf-8" src="/js/jquery.js"></script> <script type="text/javascript" charset="utf-8"> - function checkPage() { - $.ajax({cache: false, url: "<%= @path %>", success: function() { window.location = "<%= @path %>"; } }); + function checkPage(process) { + $.ajax({cache: false, url: "<%= @path %>" + (process ? "?process=true" : ""), success: function() { window.location = "<%= @path %>"; } }); setTimeout('checkPage()', 2000); } function setFade() { centerMessage(); $(window).resize(function() { centerMessage(); }); @@ -21,10 +21,10 @@ $('#fade').css('width', $(window).width() + 'px'); $('#fade').css('height', $(window).height() - parseInt($('#fade').css('top')) + 'px'); $('#processing').css('left', ($(window).width() / 2 - $('#processing').width() / 2) + 'px'); $('#processing').css('top', ($(window).height() / 2 - $('#processing').height() / 2) + 'px'); } - $(checkPage); + $(function() { checkPage(true); }); $(setFade); </script> <style type="text/css" media="screen"> body { overflow: hidden; } </style> \ No newline at end of file