details:   https://code.openbravo.com/erp/devel/pi/rev/493bfa5a0b4e
changeset: 13479:493bfa5a0b4e
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Tue Aug 09 11:28:25 2011 +0200
summary:   Changed link handling to be more robust for cases where the link 
starts with ftp or https

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-link.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4e5cb026dd56 -r 493bfa5a0b4e 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-link.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-link.js
        Tue Aug 09 11:09:17 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-link.js
        Tue Aug 09 11:28:25 2011 +0200
@@ -34,7 +34,7 @@
         if (!url) {
           return;
         }
-        if (!url.toLowerCase().startsWith('http://')) {
+        if (url.indexOf('://') === -1) {
           url = 'http://' + url;
         }
         window.open(url);

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to