Changeset 918 for trunk/grails-app/taglib/JsUtilTagLib.groovy
- Timestamp:
- May 2, 2011, 3:51:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/JsUtilTagLib.groovy
r568 r918 28 28 */ 29 29 def toggleControl = { attrs -> 30 def m kp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.230 def mb = new groovy.xml.MarkupBuilder(out) 31 31 32 32 def toggleJs … … 39 39 40 40 if(attrs.useDiv == 'false') { 41 m kp.a( href: toggleJs ) {42 yieldUnescaped(attrs.text)41 mb.a( href: toggleJs ) { 42 mkp.yieldUnescaped(attrs.text) 43 43 img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show") 44 } // mkp44 } 45 45 46 46 } 47 47 else { 48 m kp.div() {48 mb.div() { 49 49 a( href: toggleJs ) { 50 yieldUnescaped(attrs.text)50 mkp.yieldUnescaped(attrs.text) 51 51 img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show") 52 52 } 53 } // mkp53 } 54 54 } 55 55
Note: See TracChangeset
for help on using the changeset viewer.