add external.js for ext links
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 10 Feb 2010 14:56:44 +0000 (14:56 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 10 Feb 2010 14:56:44 +0000 (14:56 +0000)
Toolkit/Page.php
libjs/external.js

index ce859fd..c2af5b6 100755 (executable)
@@ -168,6 +168,8 @@ class Toolkit_Page
                $GLOBALS['styleSheets'][] = $this->baseURL . 'styles.css';
                $GLOBALS['scripts'][]
                        = $this->glmAppBaseURL . 'libjs/jquery-1.3.2.min.js';
+        $GLOBALS['scripts'][] = 
+            $this->baseURL . 'libjs/external.js';
         // needed for home page
         if ($toolbox->catid == HOME_ID) {
                    $GLOBALS['scripts'][] = 
index a080c66..066936e 100644 (file)
@@ -12,7 +12,7 @@ function externalLinks()
        for(var i=0; i<anchors.length; i++)
        {
                var anchor = anchors[i];
-               var pattern = /\/www.travelbrochure.com|www.travelbrochure.com\//
+               var pattern = /\/www.troutcreek.com|www.troutcreek.com\//
                var pattern2 = /^https?:/
                tHref = anchor.getAttribute("href");
                if( tHref != '' && pattern2.test(tHref) )