View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd
In directory usw-pr-cvs1:/tmp/cvs-serv9041
Modified Files:
ChangeLog.txt helpmenu.js loader.js
Log Message:
Added 'nomenu' to category attribute
Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -d -r1.126 -r1.127
*** ChangeLog.txt 29 Sep 2002 05:45:44 -0000 1.126
--- ChangeLog.txt 29 Sep 2002 06:37:52 -0000 1.127
***************
*** 39,43 ****
This is helpful to see what the actual command is from the shortcuts menu without
having to open up localaliases.txt.
* Added add-ons and searches to modify the popup menu using calls to registerMenuHook
! * Added ability for subcategories in the popup menu by nesting <category/>'s
Bug Fixes
--- 39,43 ----
This is helpful to see what the actual command is from the shortcuts menu without
having to open up localaliases.txt.
* Added add-ons and searches to modify the popup menu using calls to registerMenuHook
! * Added ability for subcategories in the popup menu by nesting <category/>'s and for
not adding a search if the category has a "nomenu" attribute
Bug Fixes
Index: helpmenu.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/helpmenu.js,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** helpmenu.js 29 Sep 2002 05:45:44 -0000 1.32
--- helpmenu.js 29 Sep 2002 06:37:52 -0000 1.33
***************
*** 43,47 ****
var alias = getSearchAliases( search );
! if ( search.enabled )
{
--- 43,47 ----
var alias = getSearchAliases( search );
! if ( search.enabled && !search.nomenu )
{
Index: loader.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/loader.js,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** loader.js 29 Sep 2002 05:45:44 -0000 1.54
--- loader.js 29 Sep 2002 06:37:52 -0000 1.55
***************
*** 1,5 ****
// Load the contents of search.xml, aliases, and menu files
! function addsearch(fname, name, desc, link, cat, local, subcats)
{
try
--- 1,5 ----
// Load the contents of search.xml, aliases, and menu files
! function addsearch(fname, name, desc, link, cat, local, subcats, nomenu)
{
try
***************
*** 15,19 ****
enabled:!disabledsearches[fname],
aliasmenudisplay:true,
! local:(typeof local != 'undefined' ? local : false)};
if( !aliases[fname] )
addalias( fname, fname );
--- 15,20 ----
enabled:!disabledsearches[fname],
aliasmenudisplay:true,
! local:(typeof local != 'undefined' ? local : false),
! nomenu:(typeof nomenu != 'undefined' ? nomenu : false)};
if( !aliases[fname] )
addalias( fname, fname );
***************
*** 272,275 ****
--- 273,281 ----
var linkNode = searchNode.selectSingleNode("link");
var categoryNode = searchNode.selectSingleNode("category");
+ var nomenu = false;
+ if ( categoryNode )
+ {
+ nomenu = categoryNode.attributes.getNamedItem("nomenu");
+ }
var searchCategories = new Array();
getCategories( categoryNode, searchCategories );
***************
*** 288,292 ****
searchCategories.length ? searchCategories[0] : null,
localsearch,
! searchCategories.slice( 1 ) );
}
}
--- 294,299 ----
searchCategories.length ? searchCategories[0] : null,
localsearch,
! searchCategories.slice( 1 ),
! nomenu ? true : false);
}
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/