picolisp

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/picolisp.git/
Log | Files | Refs | README | LICENSE

commit e38dd31880928a82e647a4d681b336a7cf4aefbe
parent b358404a816ea747ee3119bf6955dc23002e9724
Author: Alexander Burger <abu@software-lab.de>
Date:   Mon, 18 Mar 2013 14:31:35 +0100

Re: Support "_blank" target in URLs
Diffstat:
Mlib/form.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/form.js b/lib/form.js @@ -1,4 +1,4 @@ -/* 16mar13abu +/* 18mar13abu * (c) Software Lab. Alexander Burger */ @@ -72,9 +72,9 @@ function hasElement(form, name) { } function setHref(fld, url) { - var i = url.indexOf("+"); + var i = url.indexOf("~"); - if (i >= 0) { + if (url.charAt(i = i>=0? i+1 : 0) == "+") { url = url.substr(0,i) + url.substr(i+1); fld.target = "_blank"; }