success : function(res, o)
{
var d = Roo.decode(res.responseText);
- Roo.log(d);
+ //Roo.log(d);
this.classes = {};
// our classes witch children first..
d.forEach(function(e) {
ev.stopPropagation();
if (c.cn.length) {
- Roo.log(ev);
+ //Roo.log(ev);
if (mi.menu.el.hasClass('show')) {
this.hideChildren(c); //mi.menu.hide();
// collapse children..
}
e.cn.forEach(function(ec) {
var cn = ec.name.split('.').pop();
- Roo.log(cn);
+ //Roo.log(cn);
if (cn == cn.toLowerCase()) {
this.addTreeItem(node.menu, ec,'MenuItem', e);
}
loadHash : function()
{
if (location.hash.length < 2) {
- this.loadClass('');
+ this.loadDoc(false);
}
this.loadClass(location.hash.substring(1));
this.hash = location.hash;
var sm = line.match(/^(\s+)(.*)/);
var sml = sm ? sm[1].length: 0;
- Roo.log(sml);
+ //Roo.log(sml);
sml = sml / 4; // 4 spaces indent?
var add = { name : sm ? sm[2] : line, cn : [] };
state[sml].cn.push(add);
state[sml+1] = add;
}
- Roo.log(tree);
+ //Roo.log(tree);
for(var i = 0; i < tree.cn.length; i++) {
// make a container..
if (treeiii.name == 'Examples') {
for (var j =0;j< treeiii.cn.length; j++) {
var exs = treeiii.cn[j].name.match(/^\[([^\]]+)\](.*)$/);
- footer += '<li><a href="../' + exs[1] + '">'+exs[2] + '</a></li>';
+ footer += '<li><a target="_blank" href="../' + exs[1] + '">'+exs[2] + '</a></li>';
}
continue;
xtype : 'Link',
href : '#' + ( ll ? ll[1] : treeiii.name ) ,
html : ll ? ll[1] : treeiii.name,
- target : "_new",
+
xns : Roo.bootstrap
},
{
}
if (footer.length) {
- Roo.log("footer:"+ footer);
+ //Roo.log("footer:"+ footer);
ctreei.footer = '<h5>Examples:</h5><ul>'+footer +'</ul>';
}