~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-tools/webdoc/plugins/sidebar-plugin/sidebar.js

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function SetSelection(b,v)
 
2
{
 
3
        if (v){
 
4
                t = "activeTab";
 
5
                tab = "selected";
 
6
        } else {
 
7
                t = "tab";
 
8
                tab = "";
 
9
        }
 
10
 
 
11
        document.getElementById (b).className = t;
 
12
        document.getElementById (b + "Tab").className = tab;
 
13
}
 
14
 
 
15
function ShowContents ()
 
16
{
 
17
        SetSelection ("contents", true);
 
18
        SetSelection ("index", false);
 
19
}
 
20
 
 
21
function ShowIndex ()
 
22
{
 
23
        SetSelection ("contents", false);
 
24
        SetSelection ("index", true);
 
25
        document.getElementById ('indexInput').focus ();
 
26
}
 
27
 
 
28