Changeset 819 for trunk


Ignore:
Timestamp:
Feb 22, 2011, 9:59:11 PM (14 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.