Changeset 865 for trunk/grails-app/controllers
- Timestamp:
- Mar 15, 2011, 4:39:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/EntryDetailedController.groovy
r862 r865 152 152 } 153 153 154 def taskInstance = entryList[0].task 155 def taskModificationList = TaskModification.findAllByTask(taskInstance, [max:100, sort:"id", order:"asc"]) 154 156 def model = ['entryList': entryList] 155 def taskModel = ['taskInstance': entryList[0].task] 157 def taskModel = ['taskInstance': taskInstance] 158 def taskModificationModel = ['taskModificationList': taskModificationList ] 156 159 157 160 render(contentType:"text/json") { … … 164 167 target:"#taskControlButtons", 165 168 content: g.render(template: '/taskDetailed/showTaskControlButtons', model:taskModel) ]) 169 element([ mode: 'replace', 170 target:"#modifications", 171 content: g.render(template: '/taskDetailed/showTaskModifications', model:taskModificationModel) ]) 166 172 } 167 173 } 168 174 return 169 } 175 } // Success. 170 176 171 177 if(result.error.code != "default.create.failure")
Note: See TracChangeset
for help on using the changeset viewer.