- Timestamp:
- May 2, 2011, 3:51:27 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AssetTreeService.groovy
r800 r918 111 111 112 112 def sw = new StringWriter() 113 def m kp= new groovy.xml.MarkupBuilder(sw)114 115 m kp.div(class: buttonHtmlClass) {113 def mb = new groovy.xml.MarkupBuilder(sw) 114 115 mb.div(class: buttonHtmlClass) { 116 116 a( href: hrefShowPane() ) { 117 117 img(src: treeRootImg, alt: 'Asset Tree', title: 'Asset Tree') 118 118 } 119 } // mkp119 } 120 120 121 121 return sw.toString() … … 133 133 134 134 def sw = new StringWriter() 135 def m kp= new groovy.xml.MarkupBuilder(sw)136 137 m kp.div(class: paneHtmlClass, id: paneHtmlId, style: 'display:none;') {135 def mb = new groovy.xml.MarkupBuilder(sw) 136 137 mb.div(class: paneHtmlClass, id: paneHtmlId, style: 'display:none;') { 138 138 div(class: paneCloseHtmlClass) { 139 139 a( href: js.toggle(paneHtmlId) ) { … … 155 155 } // table 156 156 } // div 157 } // mkp157 } 158 158 159 159 return sw.toString() … … 203 203 204 204 def sw = new StringWriter() 205 def m kp= new groovy.xml.MarkupBuilder(sw)205 def mb = new groovy.xml.MarkupBuilder(sw) 206 206 207 207 // Offer a site create link if no sites are found. 208 208 if(!sites) { 209 m kp.div(class: tableDivHtmlClass) {209 mb.div(class: tableDivHtmlClass) { 210 210 211 211 div(class: paneCloseHtmlClass) { … … 235 235 } 236 236 } // button div 237 } // m kp237 } // mb 238 238 return sw.toString() 239 239 } // if(!sites) … … 242 242 // The main populated table. 243 243 /// @todo: use a loop for the subItem levels. 244 m kp.div(class: tableDivHtmlClass) {244 mb.div(class: tableDivHtmlClass) { 245 245 246 246 div(class: paneCloseHtmlClass) { … … 443 443 } 444 444 445 } // m kp445 } // mb 446 446 447 447 def totalTime = (System.currentTimeMillis() - startedAt)/1000 -
trunk/grails-app/taglib/CustomTagLib.groovy
r829 r918 314 314 */ 315 315 def helpBalloon = {attrs, body -> 316 def m kp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2316 def mb = new groovy.xml.MarkupBuilder(out) 317 317 318 318 def title = attrs["title"] … … 352 352 if(iconSrc) { 353 353 iconId = iconId ?: "customHb$num" 354 m kp.img(id: iconId, src: iconSrc)354 mb.img(id: iconId, src: iconSrc) 355 355 } 356 356 … … 367 367 });""" 368 368 369 m kp.script(type: "text/javascript") {370 yieldUnescaped(javascript)369 mb.script(type: "text/javascript") { 370 mkp.yieldUnescaped(javascript) 371 371 } 372 372 -
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.