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

Last change on this file since 1794 was 1794, checked in by work@…, 9 years ago
  • added support for fuzzymatching (resolves #418)
  • removed debug lines
  • gdt up to 0.0.38
  • Property svn:keywords set to Rev Author Date
File size: 2.6 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<% /* fuzzy matching */ %>
25<script type="text/javascript" src="${resource(dir: 'js', file: 'fuzzyStringMatch.js', plugin: 'gdt')}"></script>
26
27<% /* Specific simplewizard stuff */ %>
28<script type="text/javascript" src="${resource(dir: 'js', file: 'simpleWizard.js' )}"></script>
29<link rel="stylesheet" href="${resource(dir: 'css', file: 'simplewizard.css')}" />
30
31<g:if test="${flash.validationErrors}">
32        <script type="text/javascript">
33                $(function() {
34                        // mark error fields
35                        <g:each in="${flash.validationErrors}" var="error">
36                                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])","_")}']");
37                                element.parent().parent().removeClass('required');
38                                element.parent().parent().addClass('error');
39                        </g:each>
40                });
41        </script>
42</g:if>
Note: See TracBrowser for help on using the repository browser.