~ubuntu-marketing/ubuntu-stats/devel

« back to all changes in this revision

Viewing changes to frontend/scripts/menu.js

  • Committer: felipelerena at gmail
  • Date: 2007-07-08 20:09:24 UTC
  • Revision ID: felipelerena@gmail.com-20070708200924-1wwo3oncguq6adbv
sneak view implemented

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function refreshMenu()
 
1
function refreshMenu(state)
2
2
{
3
3
        $('closedBoxes').innerHTML="";
4
4
        var notFoundIds = Array();
5
 
        var boxes = getAllboxes()
 
5
        var boxes = state.getAllboxes()
6
6
        for (var i = 0; i < boxList.length; i++)
7
7
        {
8
8
                var found = false;
38
38
        }
39
39
}
40
40
 
 
41
function changeView()
 
42
{
 
43
        var st = readCookie("state");
 
44
        
 
45
        if( (st == null) || (st == 'boxed') )
 
46
        {
 
47
                createCookie('state','sneak','365');
 
48
        }
 
49
        else
 
50
        {
 
51
                createCookie('state','boxed','365');
 
52
        }
 
53
        history.go(0);
 
54
}
 
55
 
41
56
function generateMenuEntry(id)
42
57
{
43
58
        var elem = boxList[id - 1];
47
62
        a.innerHTML = elem.title;
48
63
        li.appendChild(a);
49
64
        return li;
 
65
}
 
66
function hideBox()
 
67
{
 
68
        state.hideBox();
50
69
}
 
 
b'\\ No newline at end of file'