From ff0988355df4fe44e68fa047750ea6e4555bc8e0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Oct 2016 12:27:12 +0800 Subject: [PATCH] roojs-doc.js roojs-doc-debug.js --- roojs-doc-debug.js | 2 +- roojs-doc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 1c6d268af9..f923844f93 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -132,7 +132,7 @@ Roo.extend(Roo.doc.Example, Roo.bootstrap.Component, { var code = hljs ? hljs.highlight(this.lang,this.code).value : String.format('{0}',this.code).replace(/\n/g, '
'); - + Roo.log("code=" + code); var cfg ={ cls : 'panel panel-info', cn : [ diff --git a/roojs-doc.js b/roojs-doc.js index 792acbc073..953704e671 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -3,7 +3,7 @@ Roo.doc=Roo.doc||{};Roo.doc.Entry=function(A){Roo.doc.Entry.superclass.construct ,{cls:'refnamediv',html:this.purpose}]};return A;},addxtype:function(A,B){return this.addxtypeChild(A,B);}}); // Roo/doc/Example.js Roo.doc.Example=function(A){Roo.doc.Example.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Example,Roo.bootstrap.Component,{title:'',lang:'php',code:'',output:'',outputlang:'txt',getAutoCreate:function(){var A=hljs?hljs.highlight(this.lang,this.code).value:String.format('{0}',this.code).replace(/\n/g,'
'); -var B={cls:'panel panel-info',cn:[{cls:'panel-heading',html:this.title},{cls:'panel-body',cn:[{tag:'pre',cls:'lang-'+this.lang,html:A}]}]};if(this.output){var C=hljs?hljs.highlight(this.outputlang,this.output).value:String.format('{0}',this.output).replace(/\n/g,'
'); +Roo.log("code="+A);var B={cls:'panel panel-info',cn:[{cls:'panel-heading',html:this.title},{cls:'panel-body',cn:[{tag:'pre',cls:'lang-'+this.lang,html:A}]}]};if(this.output){var C=hljs?hljs.highlight(this.outputlang,this.output).value:String.format('{0}',this.output).replace(/\n/g,'
'); B.cn.push({cls:'panel-footer',cn:{tag:'pre',html:C}});}return B;}}); // Roo/doc/Para.js Roo.doc.Para=function(A){Roo.doc.Para.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Para,Roo.bootstrap.Component,{html:'',getAutoCreate:function(){var A={tag:'p',cls:'para',html:this.html};if(this.parent().is_list){return {tag:'li',cls:listitme,cn:[A]} -- 2.39.2