Attachment 'MoinMoinWikiSidebar.js'

Download

   1 /*
   2  *  LinuxTrentWikiSidebar.js 
   3  *
   4  *  azazel (azazel@chiaroscuro.com)
   5  */
   6 
   7 
   8 
   9 function treeDblClick(event)
  10 {
  11     if (event.button == 0 && event.target.localName == 'treecell')
  12 	{
  13 	target = event.target;
  14 	newsURL = target.parentNode.getAttribute('url');
  15 	window.open(newsURL,'_content'); 
  16 	}
  17     return(true);
  18 }
  19 
  20 function treeClickCell(event)
  21 {
  22     if (event.button == 0 && event.target.localName == 'treecell')
  23 	{
  24 	    treerow = event.target.parentNode;
  25 	    wikiPage = treerow.getAttribute('risorsa');
  26 	    switchDetail(wikiPage);
  27 	}
  28     return(true);
  29 }
  30 function treeSelectCell()
  31 {
  32     listTree = document.getElementById('listTree');
  33     item = listTree.getItemAtIndex(listTree.selectedIndex);
  34     risorsa = item.firstChild.getAttribute('risorsa');
  35     switchDetail(risorsa);
  36     return(true);
  37 }
  38 
  39 function switchDetail(risorsa)
  40 {
  41  
  42     detailSelector = document.getElementById('resSelector');
  43     detailRes = detailSelector.getAttribute('subject');
  44     if (detailRes != risorsa)
  45 	{
  46 	    detailSelector.setAttribute('subject',risorsa);
  47 	    detail = document.getElementById('boxDettaglio');
  48 	    detail.builder.rebuild(); 
  49 	}
  50 }
  51 
  52 function caricadoc(event)
  53 {
  54     doc = event.target.getAttribute('url');
  55     window.open(doc,'_content');
  56     return(true);
  57 }
  58 
  59 function aggiornaRssFeed()
  60 {
  61     tree = document.getElementById('listTree');
  62     tree.builder.rebuild();
  63     return(true);
  64 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2003-12-07 18:15:55, 1.2 KB) [[attachment:AddPage.html]]
  • [get | view] (2003-12-07 18:15:55, 1.3 KB) [[attachment:MoinMoinWikiSidebar.js]]
  • [get | view] (2003-12-07 18:15:55, 5.9 KB) [[attachment:MoinMoinWikiSidebar.xul]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.