X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=templates%2Fedit-actions-list;h=c67580d9e608f20d90fd99e5efe44d47d2fdc7a0;hb=578b5ec72f1bb2ceebe5d0afca2327c9d7a22bf1;hp=b3e764b4b04efc11727a962084a108ea38d9f8f7;hpb=e8b4f286757813a2a30dcc277b283b485a22ff44;p=privoxy.git diff --git a/templates/edit-actions-list b/templates/edit-actions-list index b3e764b4..c67580d9 100644 --- a/templates/edit-actions-list +++ b/templates/edit-actions-list @@ -31,6 +31,25 @@ # # Revisions : # $Log: edit-actions-list,v $ +# Revision 1.26.2.4 2003/12/17 16:35:17 oes +# Work around new & silly MSIE behaviour where the request resulting from +# changing window.location.href doesn't reveal the referrer anymore +# +# Revision 1.26.2.3 2002/09/25 15:34:09 oes +# - Work around JS problem in NS 2.0 (no joke) +# - Make JS string edit popup remove the pattern +# if edited to empty; make JS add popup do nothing +# if pattern empty. +# +# Revision 1.26.2.2 2002/08/23 02:22:53 hal9 +# Fix a perl brain fart with
  • in comments. +# +# Revision 1.26 2002/05/23 23:37:25 oes +# Nit +# +# Revision 1.25 2002/05/21 21:02:52 oes +# Added more help links +# # Revision 1.24 2002/05/21 19:11:40 oes # - Added client-side JavaScript versions of edit and add URL forms # - Moved jump targets to before container table cell @@ -208,27 +227,38 @@ td.indentbuttons { // JavaScript-capable browsers will call this function, which does a // client-side prompt for speed. It may kick off the delete directly. // It always returns false to cancel following the link. -function rm_p(pattern,curtext) +function rm_p(link,pattern,curtext) { if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext))) - { window.location.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; } + { + link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; + return true; + } return false; } -function e_p(pattern,curtext) +function e_p(link,pattern,curtext) { - if(newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) - { window.location.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+escape(newtext); } + if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null) + { + if (newtext != "") + { link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+escape(newtext); } + else + { link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; } + return true; + } return false; } -function a_p(section) +function a_p(link,section) { - if(newtext=window.prompt("Enter the new pattern:", "")) - { window.location.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+escape(newtext); } + if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != "")) + { + link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+escape(newtext); + return true; + } return false; } - //--> @@ -261,7 +291,7 @@ function a_p(section)

    If you haven't already done so, it is strongly recommended that you at least skim the - chapter on the actions file in the user manual + chapter on actions files in the user manual before making any changes. You will also find a comprehensive list of all available actions there.

    @@ -326,7 +356,7 @@ function a_p(section)

    More Privoxy:

    - +