summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui
diff options
context:
space:
mode:
authorSimon2011-03-23 11:19:25 +0100
committerSimon2011-03-23 11:19:25 +0100
commitfd970d538f0330a65417c3e8b36b90ce4bde1646 (patch)
tree49ce6d57056ac01b025b28f350050287e89393ed /application/modules/fbgui
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-fd970d538f0330a65417c3e8b36b90ce4bde1646.tar.gz
pbs2-fd970d538f0330a65417c3e8b36b90ce4bde1646.tar.xz
pbs2-fd970d538f0330a65417c3e8b36b90ce4bde1646.zip
fbgui beenden als callback des downloads
Diffstat (limited to 'application/modules/fbgui')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index a9bf16b..9e93477 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -96,10 +96,14 @@ class Fbgui_IndexController extends Zend_Controller_Action
$sessionMapper->save($session);
echo "<h1>Downloading</h1>";
echo "<script>\n";
+ echo "fbgui.setCallbackOnDlQueueFinished('foo();');\n";
echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getkernel/alpha/".$_SESSION['alphasessionID']."/file/kernel');\n";
echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getinitramfs/alpha/".$_SESSION['alphasessionID']."/file/initramfs');\n";
echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getkcl/alpha/".$_SESSION['alphasessionID']."/file/kcl');\n";
echo "fbgui.getSession('".$_SESSION['alphasessionID']."');\n";
+ echo "function foo(){
+ fbgui.quit();
+ }";
echo "</script>";
}