Changeset 481 for trunk/grails-app/views


Ignore:
Timestamp:
May 26, 2010, 6:05:56 PM (12 years ago)
Author:
duh
Message:
  • added JavaScript? variable 'baseUrl' containing the grails base application url so it can be used by JavaScript? throughout the application if needed (the url is not a fact as it often changes on live deployments)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/layouts/main.gsp

    r429 r481  
    88        <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>
    99        <g:javascript library="jquery"/>
     10        <script type="text/javascript">var baseUrl = '${resource(dir: '')}';</script>
    1011        <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.8.1.custom.min.js')}" type="text/javascript"></script>
    1112        <link rel="stylesheet" href="${createLinkTo(dir: 'css/cupertino', file: 'jquery-ui-1.8.1.custom.css')}"/>
Note: See TracChangeset for help on using the changeset viewer.