Ignore:
Timestamp:
May 2, 2011, 3:51:27 PM (14 years ago)
Author:
gav
Message:

Small taglib fix, mkp is now a special namespace in groovy.xml.MarkupBuilder? so using 'mb'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/JsUtilTagLib.groovy

    r568 r918  
    2828    */
    2929    def toggleControl = { attrs ->
    30         def mkp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2
     30        def mb = new groovy.xml.MarkupBuilder(out)
    3131
    3232        def toggleJs
     
    3939
    4040        if(attrs.useDiv == 'false') {
    41             mkp.a( href: toggleJs ) {
    42                     yieldUnescaped(attrs.text)
     41            mb.a( href: toggleJs ) {
     42                    mkp.yieldUnescaped(attrs.text)
    4343                    img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show")
    44             } // mkp
     44            }
    4545
    4646        }
    4747        else {
    48             mkp.div() {
     48            mb.div() {
    4949                a( href: toggleJs ) {
    50                     yieldUnescaped(attrs.text)
     50                    mkp.yieldUnescaped(attrs.text)
    5151                    img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show")
    5252                }
    53             } // mkp
     53            }
    5454        }
    5555
Note: See TracChangeset for help on using the changeset viewer.