Changeset 819


Ignore:
Timestamp:
02/22/11 21:59:11 (8 years ago)
Author:
gav
Message:

Add jsUtil getContextPath().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/jsUtil.js

    r798 r819  
    123123    window.open(url); 
    124124} 
     125 
     126function getContextPath() { 
     127    var contextPath = '/' + location.pathname.split('/',2)[1] 
     128    return contextPath 
     129} 
Note: See TracChangeset for help on using the changeset viewer.