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-serv13040

Modified Files:
        defer_tools.js 
Log Message:
Changed the way the 'target' form attribute was referenced so it wouldn't be confused 
with a form input field named 'target'

Index: defer_tools.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/defer_tools.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** defer_tools.js      25 Jul 2002 13:24:43 -0000      1.13
--- defer_tools.js      26 Jul 2002 00:00:17 -0000      1.14
***************
*** 39,52 ****
    {
      // Here's a safeguard for forgetting to put a target in the FORM
!     if ( (getReuseBrowserWindowMode() == 0) || !form.target || (form.target && 
form.target == '') )
!       form.target = '_blank';
  
      // Reuse a single window if the user wants to and the target is _blank
      // Don't override targets with any other name because some searches may want
      // their own window.
!     if ((getReuseBrowserWindowMode() > 0) && form.target && (form.target == 
'_blank'))
      {
        // 1=same window always; 2=new window for each search type
!       form.target = ((getReuseBrowserWindowMode() == 1) ? DQSD_BROWSER_WINDOW_NAME : 
(DQSD_BROWSER_WINDOW_NAME + '_' + form.name));
      }
    }
--- 39,54 ----
    {
      // Here's a safeguard for forgetting to put a target in the FORM
!     if ( (getReuseBrowserWindowMode() == 0) || !form.attributes["target"].value || 
(form.attributes["target"].value && form.attributes["target"].value == '') )
!     {
!       form.attributes["target"].value = '_blank';
!     }
  
      // Reuse a single window if the user wants to and the target is _blank
      // Don't override targets with any other name because some searches may want
      // their own window.
!     if ((getReuseBrowserWindowMode() > 0) && form.attributes["target"].value && 
(form.attributes["target"].value == '_blank'))
      {
        // 1=same window always; 2=new window for each search type
!       form.attributes["target"].value = ((getReuseBrowserWindowMode() == 1) ? 
DQSD_BROWSER_WINDOW_NAME : (DQSD_BROWSER_WINDOW_NAME + '_' + form.name));
      }
    }




-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to