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-serv27164
Modified Files:
helpmenu.js search.htm
Log Message:
* changed performsearch so javascript functions can take parameters
* changed mnu in search.htm and showpop in helpmenu.js to not record the search in the
history if it is not a known search
Index: helpmenu.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/helpmenu.js,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** helpmenu.js 17 Oct 2002 15:21:49 -0000 1.35
--- helpmenu.js 22 Oct 2002 06:23:56 -0000 1.36
***************
*** 139,143 ****
alias = searches[fn].aliases[1];
mnu( fn, alias );
! if ( fn != 'about' && fn != 'checkWebForUpdateNotifyAll' )
saveMenuHistory( alias ? alias : fn );
}
--- 139,143 ----
alias = searches[fn].aliases[1];
mnu( fn, alias );
! if (searches[fn])
saveMenuHistory( alias ? alias : fn );
}
***************
*** 228,230 ****
}
return tip;
! }
--- 228,230 ----
}
return tip;
! }
\ No newline at end of file
Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.161
retrieving revision 1.162
diff -C2 -d -r1.161 -r1.162
*** search.htm 4 Oct 2002 04:48:29 -0000 1.161
--- search.htm 22 Oct 2002 06:23:56 -0000 1.162
***************
*** 309,319 ****
{
try
! {
eval(fname + "()");
}
! catch(e)
! {
! alert('An error (' + e + '/' + e.description + ') occurred while trying to
run the search "'+fname+'()'+'"');
! }
}
}
--- 309,325 ----
{
try
! {
! if (fname.match(/\(.*\)/)) {
! // function with parameters specified
! eval(fname);
! } else {
! // just function no parameters
eval(fname + "()");
+ }
}
! catch(e)
! {
! alert('An error (' + e + '/' + e.description + ') occurred while trying to
run the search "'+fname+'"');
! }
}
}
***************
*** 325,329 ****
var fn = (alias ? alias : text);
var search = (fn + ' ' + document.deff.q.value).replace( /^\s*(\S+)\s*$/, "$1" );
// trim leading/trailing whitespace
! if ( fn != 'about' && !isInternalSearch(fn) && fn != 'checkWebForUpdateNotifyAll' )
addhist( search );
performsearch( text, document.deff.q.value );
--- 331,335 ----
var fn = (alias ? alias : text);
var search = (fn + ' ' + document.deff.q.value).replace( /^\s*(\S+)\s*$/, "$1" );
// trim leading/trailing whitespace
! if (searches[fn])
addhist( search );
performsearch( text, document.deff.q.value );
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/