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/CustomTagLib.groovy

    r829 r918  
    314314    */
    315315    def helpBalloon = {attrs, body ->
    316         def mkp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2
     316        def mb = new groovy.xml.MarkupBuilder(out)
    317317
    318318        def title = attrs["title"]
     
    352352        if(iconSrc) {
    353353            iconId = iconId ?: "customHb$num"
    354             mkp.img( id: iconId, src: iconSrc)
     354            mb.img(id: iconId, src: iconSrc)
    355355        }
    356356
     
    367367});"""
    368368
    369         mkp.script(type: "text/javascript") {
    370             yieldUnescaped(javascript)
     369        mb.script(type: "text/javascript") {
     370            mkp.yieldUnescaped(javascript)
    371371        }
    372372
Note: See TracChangeset for help on using the changeset viewer.