Changeset 284 for trunk/grails-app/taglib
- Timestamp:
- Jan 21, 2010, 11:25:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/AssetTreeTagLib.groovy
r282 r284 81 81 img(src: addImg(), alt: 'Add', title: 'Add Sub Item') 82 82 } 83 a(href: assetCopyLink(asset.id)) { 84 img(src: copyImg(), alt: 'Add', title: 'Copy Asset') 85 } 83 86 } // li 84 87 … … 240 243 } 241 244 242 def sectionCreateLink( id) {243 createLink(controller: 'sectionDetailed', action: 'create', params: [' id': id] ).toString()245 def sectionCreateLink(siteId) { 246 createLink(controller: 'sectionDetailed', action: 'create', params: ['site.id': siteId] ).toString() 244 247 } 245 248 … … 252 255 } 253 256 254 def assetCreateLink( id) {255 createLink(controller: 'assetDetailed', action: 'create', params: [' id': id] ).toString()257 def assetCreateLink(sectionId) { 258 createLink(controller: 'assetDetailed', action: 'create', params: ['section.id': sectionId] ).toString() 256 259 } 257 260 … … 265 268 266 269 def assetCopyLink(id) { 267 createLink(controller: 'assetDetailed', action: 'copy', params: ['asset .id': id] ).toString()270 createLink(controller: 'assetDetailed', action: 'copy', params: ['assetToCopy.id': id] ).toString() 268 271 } 269 272
Note: See TracChangeset
for help on using the changeset viewer.