Changeset 863
- Timestamp:
- Mar 14, 2011, 2:50:56 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/entryDetailed/_create.gsp
r860 r863 121 121 type="button" 122 122 value="Resolved" 123 onclick=" returnconfirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');"123 onclick="submit_confirmResult = confirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');" 124 124 name="submit_andComplete"/> 125 125 </g:if> -
trunk/web-app/js/taskShow.js
r859 r863 1 2 var submit_confirmResult = true 1 3 2 4 function showButton(button) { … … 17 19 }); 18 20 // Register 'submit_*' input button click handlers. 19 target.find('input[name^="submit_"]').click(function( ){21 target.find('input[name^="submit_"]').click(function(e){ 20 22 target.find(':input[name="submitAction"]').val(jQuery(this).attr('name')); 21 23 target.find('form:first').submit(); … … 35 37 function submitCreateEntryForm(event) { 36 38 39 event.preventDefault(); 40 41 if(submit_confirmResult == false) { 42 submit_confirmResult = true 43 return false; 44 } 45 37 46 var actionUrl = getContextPath()+"/entryDetailed/ajaxSave/"; 38 39 event.preventDefault();40 47 var listContainer = event.data.listContainer; 41 48 var source = event.data.source;
Note: See TracChangeset
for help on using the changeset viewer.