Update org bulk accept script.
The script now:
1) leaves correctly control to the browser to update the GUI of the progress bar during ajax communication.
2) Displays an error if something went wrong (I've tried in my box stopping the server while doing the requests), and show a retry button to fetch again the list of the applications that are still not accepted and iterate over them again (seems to recover correctly restarting the server after the error in my box)
3) doesn't display any text at the beginning, and the button has the correct CSS class assigned
4) Check if there are applications to accept, if not displays a message stating that there are no orgs to accept.
Patch by: Mario Ferraro
Reviewed by: Lennard de Rijk
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel="stylesheet" href="/svn/trunk/mockups/content/css/mockups.css" type="text/css"/>
<title>Google Summer of Code 2009</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="/svn/trunk/mockups/content/js/blog.js"></script>
<script type="text/javascript">
google.load("feeds", "1");
function initialize() {
var blog = new BlogPreview(document.getElementById("blog"));
blog.show("http://google-opensource.blogspot.com/feeds/posts/default/-/gsoc", "Google Summer of Code Blog");
}
google.setOnLoadCallback(initialize);
</script>
</head>
<body>
<div id="login">
<a href="http://code.google.com/p/soc/issues/list">Report bugs</a> |
<a href="/">Sign in</a>
</div>
<div id="header">
<div id="logo">
<a href="/"><img src="/svn/trunk/mockups/content/images/GSOC.jpg" alt="Google Summer of Code"/></a>
<span title=" TODO: logo updated in program sponsor interface " class="popup">
<small>*</small>
</span>
</div>
<div id="title">
Google Summer of Code 2009
</div>
<div id="breadcrumbs">
<span class="item">
<a href="/svn/trunk/mockups/sitehome.html">Google Open Source Programs</a>
</span>
>
<span class="selected">
<a href="/svn/trunk/mockups/programs/home/gsoc2009/gsoc2009home.html">Google Summer of Code 2009</a>
</span>
</div>
</div>
<div id="side" dir="ltr">
<div id="menu">
<ul>
<li>
<a href="/svn/trunk/mockups/sitehome.html">Google Open Source Programs</a>
<ul>
<li>
<a href="/svn/trunk/mockups/user/profile/linkname/profile.html">User (Sign In)</a>
</li>
</ul>
<ul>
<li>
<a class="selected" href="/svn/trunk/mockups/program/home/gsoc2009/gsoc2009home.html">Google Summer of Code</a>
<ul>
<li>
<a href="/svn/trunk/mockups/program/community/gsoc2009/gsoc2009comm.html">Community</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/gsoc2009/faqs/faqs.html">Program FAQs</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/gsoc2009/tos/tos.html">Terms of Service</a>
</li>
</ul>
</li>
<li>
<a href="/svn/trunk/mockups/program/home/ghop2008/ghop2008home.html">Google Highly Open Participation</a>
<ul>
<li>
<a href="/svn/trunk/mockups/program/community/ghop2008/">Community</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/ghop2008/faqs/">Program FAQs</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/ghop2008/rules/rules.html">Contest Rules</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div id="search">
<form id="searchbox_015986126177484454297:pfmwlvdl42y" action="http://www.google.com/cse">
<input type="hidden" name="cx" value="015986126177484454297:pfmwlvdl42y" />
<input type="hidden" name="cof" value="FORID:0" />
<div class="header">
Search Google Open Source:
</div>
<input name="q" type="text" size="20" />
<input type="submit" name="sa" value="Search" />
<br/>
</form>
<script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_015986126177484454297:pfmwlvdl42y">
</script></form>
</div>
<div id="badge">
<a href="http://code.google.com/p/soc/" target="_blank">Powered by Melange</a>
<span title=" TODO: need a Melange logo " class="popup">
<small>*</small>
</span>
</div>
</div>
<div id="body">
<div style="line-height: 140%;">
<p>
This is generic HTML that can be configured via the site administration
interface.
<p>
For a list of organizations currently participating in the Google Summer of
Code for 2009, please visit the
<a href="/svn/trunk/mockups/program/community/gsoc2009/gsoc2009comm.html">Community</a> page.
</p>
</p>
<div id="blog"></div>
<p class="todo">
The site administration interface will provide a mechanism to select a feed to
be displayed here.
</p>
</div>
<div id="footer" dir="ltr">
<div class="text">
©2008 Google -
<a href="http://www.google.com/">Google Home</a> -
<a href="http://www.google.com/privacy.html">Privacy Policy</a>
</div>
</div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-4291635-1"; // code.google.com site-wide tracking
_uanchor=1;
_uff=0;
urchinTracker();
</script>
</body>
</html>