Changeset 483 for trunk/grails-app/views


Ignore:
Timestamp:
May 27, 2010, 10:55:53 AM (12 years ago)
Author:
roberth
Message:

Improved flexibility of the publication chooser and added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/publication/add.gsp

    r479 r483  
    2121  <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.js')}"></script>
    2222  <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.pubmed.js')}"></script>
     23  <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.programminglanguages.js')}"></script>
    2324
    2425 </head>
     
    2627
    2728 <g:form action="createFromPubmed">
    28   <g:textField name="publication" rel="publication-pubmed" />
     29  <g:textField name="publication" rel="publication-pubmed" style="width:300px;"/>
    2930  <g:submitButton name="add" value="Add publication" />
    3031 </g:form>
    31  
     32
     33
     34
    3235 ${errors}
    3336 ${message}
    3437
    3538 <script type="text/javascript">
    36         $(document).ready(function() {
    37           // initialize the ontology chooser
    38           var chooser = new PublicationChooser();
    39 
    40           chooser.init();
    41         });
     39$(document).ready(function() {
     40  // initialize the ontology chooser
     41  PublicationChooser.init();
     42});
    4243 </script>
    4344 </body>
Note: See TracChangeset for help on using the changeset viewer.