Ignore:
Timestamp:
Mar 13, 2011, 7:06:34 PM (14 years ago)
Author:
gav
Message:

Add task show tab header and control button update elements on entry save.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/EntryDetailedController.groovy

    r859 r862  
    153153
    154154            def model = ['entryList': entryList]
     155            def taskModel = ['taskInstance': entryList[0].task]
    155156
    156157            render(contentType:"text/json") {
    157158                updates = array {
    158159                    element([ mode: 'replace', target:"$params.target", content: g.render(template: 'list', model:model) ])
     160                    element([ mode: 'replace',
     161                                    target:".tabHeader",
     162                                    content: g.render(template: '/taskDetailed/showTabHeader', model:taskModel) ])
     163                    element([ mode: 'replace',
     164                                    target:"#taskControlButtons",
     165                                    content: g.render(template: '/taskDetailed/showTaskControlButtons', model:taskModel) ])
    159166                }
    160167            }
Note: See TracChangeset for help on using the changeset viewer.