Permalink
Browse files

narcissus js: tweak spinner usage

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
koenkooi committed May 3, 2012
1 parent 568a351 commit 0cf5994845fad67a8558de4a1298c4375a8b7e1d
Showing with 3 additions and 5 deletions.
  1. +3 −5 scripts/js/narcissus.js
View
@@ -252,12 +252,10 @@ function assembleImage(){
function installPackage(){
if (packagelist != "" && packagelist != " ") {
- var params = 'action=install_package&machine=' + document.entry_form.machine.value + '&name=' + document.entry_form.name.value + '&pkgs=' + packagelist;
- for(var i=0; i < packagelist.length; i++){
- var progress_id = 'td-' + packagelist[i];
- document.getElementById(progress_id).innerHTML = spinner_image;
- }
+ document.getElementById('td-' + packagelist[0]).innerHTML = spinner_image;
+
+ var params = 'action=install_package&machine=' + document.entry_form.machine.value + '&name=' + document.entry_form.name.value + '&pkgs=' + packagelist;
$.ajax({
type: "POST",

0 comments on commit 0cf5994

Please sign in to comment.