spficklin 13 years ago
parent
commit
1b883176de
1 changed files with 0 additions and 16 deletions
  1. 0 16
      tripal_analysis_go/theme/js/tripal_analysis_go.js

+ 0 - 16
tripal_analysis_go/theme/js/tripal_analysis_go.js

@@ -18,22 +18,6 @@ if (Drupal.jsEnabled) {
          $("#tripal_analysis_go_org_charts").html('');
          $("#tripal_analysis_go_org_charts").html('');
          return false;
          return false;
       }
       }
-      // Get the base url. Drupal can not pass it through the form so we need 
-	   // to get it ourself. Use different patterns to match the url in case
-      // the Clean URL function is turned on
-      var baseurl = location.href.substring(0,location.href.lastIndexOf('/?q=/node'));
-      if(!baseurl) {
-   	   var baseurl = location.href.substring(0,location.href.lastIndexOf('/node'));
-      }
-      if (!baseurl) {
-         // This base_url is obtained when Clena URL function is off
-         var baseurl = location.href.substring(0,location.href.lastIndexOf('/?q=node'));
-      }
-      if (!baseurl) {
-         // The last possibility is we've assigned an alias path, get base_url till the last /
-         var baseurl = location.href.substring(0,location.href.indexOf('/',10));
-      }
-      
       // Form the link for the following ajax call       
       // Form the link for the following ajax call       
       var link = baseurl + '/tripal_analysis_go_org_charts/' + item;
       var link = baseurl + '/tripal_analysis_go_org_charts/' + item;
       tripal_startAjax();
       tripal_startAjax();