Changeset 257 for trunk


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.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/i18n/messages.properties

    r255 r257  
     1sub.task.create.confirm=Immediately create and save a new sub task?
     2
    13person.pass.minSize.notmet=Password is less than the minimum size of [{3}]
    24person.pass.blank=Password cannot be blank
  • 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.