[Debtags-commits] [svn] r2006 - web/trunk/cloud
Erich Schubert
erich at costa.debian.org
Thu Oct 5 14:03:04 UTC 2006
Author: erich
Date: Thu Oct 5 14:03:04 2006
New Revision: 2006
Modified:
web/trunk/cloud/index.html
Log:
add 'loading...' dialog,
Modified: web/trunk/cloud/index.html
==============================================================================
--- web/trunk/cloud/index.html (original)
+++ web/trunk/cloud/index.html Thu Oct 5 14:03:04 2006
@@ -17,12 +17,15 @@
<script type="text/javascript">
dojo.require("dojo.io.*");
dojo.require("dojo.event.*");
+ dojo.require("dojo.widget.Dialog");
var baseurl = "http://debtags.alioth.debian.org/cgi-bin/index.cgi?tags=";
var magicscale = 50;
var selectedtags = [];
function update() {
+ dlg = dojo.widget.byId("LoadingDialogContent");
+ dlg.show();
var bindArgs = {
url: "/cgi-bin/erich/" + selectedtags.join("/"),
error: function(type, data, evt){ alert("error"); },
@@ -180,16 +183,19 @@
var packages = document.getElementById("packages");
var seltags = document.getElementById("tags");
// prepare data
- tf = data.tags.concat(data.facets)
+ tf = data.tags.concat(data.facets);
tf.sort(alphasort);
tags = { tags: folddata(tf) };
showPackages( packages, data.packages );
showSelected( seltags, data.selected );
tagcloud.innerHTML = "";
makeCloud( tagcloud, tags);
+ dlg = dojo.widget.byId("LoadingDialogContent");
+ dlg.hide();
}
update();
</script>
+ <div dojoType="dialog" id="LoadingDialogContent" bgColor="white" bgOpacity="0.5" toggle="fade" toggleDuration="250">Loading ...</div>
</body>
</html>
More information about the Debtags-commits
mailing list