Ignore:
Timestamp:
Jan 5, 2010, 1:04:41 PM (15 years ago)
Author:
gav
Message:

Add a confirm dialog to the create sub task button on taskDetailed show view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/show.gsp

    r253 r257  
    671671                                    </g:else>
    672672                                    <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span>
    673                                     <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" /></span>
     673                                    <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span>
    674674                                </g:form>
    675675                            </div>
     
    685685                                <g:form>
    686686                                    <g:hiddenField name="id" value="${taskInstance?.id}" />
    687                                     <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" /></span>
     687                                    <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span>
    688688                                </g:form>
    689689                            </div>
Note: See TracChangeset for help on using the changeset viewer.