Changeset 1680
- Timestamp:
- Mar 29, 2011, 3:06:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/PublicationController.groovy
r1570 r1680 180 180 181 181 // Return the ID 182 response.contentType = "text/plain" 182 183 render publication.id; 183 184 } else { 184 185 response.status = 500; 186 response.contentType = "text/plain" 185 187 render "No pubMedID found in request"; 186 188 } -
trunk/web-app/js/studywizard.js
r1679 r1680 330 330 function addPublication(element_id) { 331 331 /* Find publication ID and add to form */ 332 alert( "Sending: " + $("#" + element_id + "_form").serialize() );333 332 jQuery.ajax({ 334 333 type:"GET", 335 334 url: baseUrl + "/publication/getID?" + $("#" + element_id + "_form").serialize(), 336 335 success: function(data, textStatus) { 337 alert( data );338 339 336 var id = parseInt(data); 340 337
Note: See TracChangeset
for help on using the changeset viewer.