- Timestamp:
- Apr 1, 2011, 11:06:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/simpleWizard/simpleWizard/study.gsp
r1685 r1686 14 14 </g:if> 15 15 <g:else> 16 Study16 New study 17 17 </g:else> 18 18 <span class="stepNumber">(step 1 of 4)</span> … … 103 103 <p class="options"> 104 104 <a href="#" onClick="submitForm( 'study', 'next' ); return false;" class="next">Next</a> 105 <a class="save separator" href="#" onClick="submitForm( 'study', 'save' ); return false;">Save</a> 105 <a class="open separator" href="#" onClick="$( '#openStudyDialog' ).dialog( 'open' ); return false;">Open</a> 106 <a class="save" href="#" onClick="submitForm( 'study', 'save' ); return false;">Save</a> 106 107 </p> 107 108 … … 111 112 <af:userDialog name="readers" /> 112 113 <af:userDialog name="writers" /> 114 115 <div id="openStudyDialog"> 116 <p> 117 Please select the study you want to edit form the list below. If your study is not in the list, you might 118 not have sufficient privileges to edit the study. 119 </p> 120 121 <g:form class="simpleWizard" name="openstudy" action="simpleWizard"> 122 <input type="hidden" name="_eventId" value="open" /> 123 <g:select name="study" from="${studies}" optionKey="id" optionValue="title" /> 124 </g:form> 125 </div> 126 <script type="text/javascript"> 127 $("#openStudyDialog").dialog({ 128 title : "Open study", 129 autoOpen: false, 130 width : 400, 131 height : 200, 132 modal : true, 133 position: "center", 134 buttons : { 135 Open: function() { 136 if( confirm( "By opening a new study, changes to the current study are lost. Do you want to continue?" ) ) { 137 submitForm( 'openstudy' ); 138 $(this).dialog("close"); 139 } 140 }, 141 Close : function() { 142 $(this).dialog("close"); 143 } 144 }, 145 }) 146 </script> 147 113 148 </div> 114 149 </body>
Note: See TracChangeset
for help on using the changeset viewer.