details:   /erp/devel/pi/rev/f5ab5102175e
changeset: 7931:f5ab5102175e
user:      Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
date:      Thu Jul 29 11:33:51 2010 +0530
summary:   Fixes Issue 13954: The URL field does not work properly.

diffstat:

 web/js/default/UrlTextBox.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 40d69c79f811 -r f5ab5102175e web/js/default/UrlTextBox.js
--- a/web/js/default/UrlTextBox.js      Wed Jul 28 18:39:33 2010 +0530
+++ b/web/js/default/UrlTextBox.js      Thu Jul 29 11:33:51 2010 +0530
@@ -45,7 +45,7 @@
 isValidUrl = function(/*String*/str_url) {
   if (str_url.length == 0) return true;
 // url parsing and formatting routimes. modify them if you wish other url 
format
-       var re_date = 
/^([http|ftp])+\:\/\/(([A-Za-z0-9]+)(\.)?)+((\/)([A-Za-z0-9]*(\.)?[A-Za-z0-9]*))*$/;
+       var re_date = 
/^([http|ftp])+\:\/\/(([A-Za-z0-9]+)(\.)?(\-)?)+((\/)([A-Za-z0-9\-\_]*(\.)?[A-Za-z0-9\-\_]*))*$/;
        if (!re_date.exec(str_url))
                return false;
        return (true);

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to