source: trunk/grails-app/views/simpleWizard/_javascripts.gsp @ 1581

Last change on this file since 1581 was 1581, checked in by work@…, 10 years ago

set keyword expansion

  • Property svn:keywords set to Rev Author Date
File size: 2.5 KB
Line 
1<% /* Nice buttons */ %>
2<link rel="stylesheet" href="<g:resource dir="css" file="buttons.css" />" type="text/css"/>
3
4<% /* Generic wizard stylesheets and javascripts */ %>
5<link rel="stylesheet" href="${resource(dir: 'css', file: 'studywizard.css')}" />
6<link rel="stylesheet" href="${resource(dir: 'css', file: 'templates.css')}" />
7
8<script type="text/javascript" src="${resource(dir: 'js', file: 'studywizard.js' )}"></script>
9<script type="text/javascript" src="${resource(dir: 'js', file: 'tooltips.js', plugin: 'gdt')}"></script>
10
11<% /* Table editor */ %>
12<link rel="stylesheet" href="${resource(dir: 'css', file: 'table-editor.css', plugin: 'gdt')}" />
13<script type="text/javascript" src="${resource(dir: 'js', file: 'table-editor.js', plugin: 'gdt')}"></script>
14
15<script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.qtip-1.0.0-rc3.js', plugin: 'gdt')}"></script>
16<script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js', plugin: 'gdt')}"></script>
17<script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.js')}"></script>
18<script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.pubmed.js')}"></script>
19<script type="text/javascript" src="${resource(dir: 'js', file: 'SelectAddMore.js', plugin: 'gdt')}"></script>
20<script type="text/javascript" src="${resource(dir: 'js', file: 'timepicker-0.2.1.js')}"></script>
21<script type="text/javascript" src="${resource(dir: 'js', file: 'ajaxupload.3.6.js')}"></script>
22<script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.ui.autocomplete.html.js', plugin: 'gdt')}"></script>
23
24<% /* Specific simplewizard stuff */ %>
25<script type="text/javascript" src="${resource(dir: 'js', file: 'simpleWizard.js' )}"></script>
26<link rel="stylesheet" href="${resource(dir: 'css', file: 'simplewizard.css')}" />
27
28<g:if test="${flash.validationErrors}">
29        <script type="text/javascript">
30                $(function() {
31                        // mark error fields
32                        <g:each in="${flash.validationErrors}" var="error">
33                                var element = $("input:[name='${error.key}'], input:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], select:[name='${error.key}'], select:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], textarea:[name='${error.key}'], textarea:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}']");
34                                element.parent().parent().removeClass('required');
35                                element.parent().parent().addClass('error');
36                        </g:each>
37                });
38        </script>
39</g:if>
Note: See TracBrowser for help on using the repository browser.