Changeset 865 for trunk/grails-app
- Timestamp:
- Mar 15, 2011, 4:39:56 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 added
- 2 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") -
trunk/grails-app/views/taskDetailed/_showTaskTab.gsp
r861 r865 56 56 <td valign="top" style="text-align:left;" class="value"> 57 57 <div id="modifications" style="display:none;"> 58 <ul> 59 <g:each var="a" in="${taskModificationList}"> 60 <li>${a?.encodeAsHTML()}</li> 61 </g:each> 62 </ul> 58 <g:render template="showTaskModifications" /> 63 59 </div> 64 60 </td>
Note: See TracChangeset
for help on using the changeset viewer.