~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/media/groups.js

  • Committer: Matt Giuca
  • Date: 2010-02-25 08:20:03 UTC
  • Revision ID: matt.giuca@gmail.com-20100225082003-tt6cxeyay7h8wngg
groups.js: Fixed JavaScript for managing groups. Previously didn't expand the management panel because the ul changed into a table. Fixes Launchpad bug #527608.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
function manage_group(offeringid, groupid, namespace)
57
57
{
58
 
    var elem = document.getElementById(namespace);
59
58
    var button = document.getElementById(namespace+"_button");
60
59
    var manage_div = document.createElement("div")
61
60
    manage_div.id = namespace + "_contents";
62
 
    elem.insertBefore(manage_div, button);
63
 
    
 
61
 
 
62
    /* Get the td which is button's parent (the 'actions' column) */
 
63
    button_td = button.parentNode;
 
64
    button_td.appendChild(manage_div);
 
65
 
64
66
    /* Refresh contents */
65
67
    list_projectgroup_contents(offeringid, groupid, manage_div.id);
66
68
 
67
69
    /* Remove the button element */
68
 
    elem.removeChild(button);
 
70
    button_td.removeChild(button);
69
71
}
70
72
 
71
73
/* Lists the information about a particular project group identified by groupid