Roo.bootstrap.Component = function(config){
+ console.log("BOOSTRAP COMPONENT CONSTRUCTOR");
Roo.bootstrap.Component.superclass.constructor.call(this, config);
this.addEvents({
var kv = s.split(":");
// what ever is left... we allow.
- ret[kv[0]] = kv[1];
+ ret[kv[0].trim()] = kv[1];
});
return ret;
},
var ns = p,
parent = p.parentNode,
doc = parent.ownerDocument,
- items = [];
+ items = [];
+
+
while (ns) {
if (ns.nodeType != 1) {
ns = ns.nextSibling;
}
items.push(ns);
ns = ns.nextSibling;
-
}
+
+
var ul = parent.ownerDocument.createElement('ul'); // what about number lists...
parent.insertBefore(ul, p);
var lvl = 0;
var stack = [ ul ];
var last_li = false;
- var base_lvl = 0;
- items.forEach(function(n) {
+ items.forEach(function(n, ipos) {
//Roo.log("got innertHMLT=" + n.innerHTML);
var spans = n.getElementsByTagName('span');
return;
}
- var nlvl = (style['mso-list'].split(' ')[1].replace(/level/,'') *1) - 1;
+ var nlvl = (style['mso-list'].split(' ')[1].replace(/level/,'') *1) - 1 ;
if (nlvl > lvl) {
//new indent
- if (last_li) {
- var nul = doc.createElement('ul'); // what about number lists...
- last_li.appendChild(nul);
- stack[nlvl] = nul;
- } else {
- // occurs when we get a level (1) but no parent - just put all the children on the top most..
- stack[nlvl] = stack[stack.length-1];
- }
+ var nul = doc.createElement('ul'); // what about number lists...
+ last_li.appendChild(nul);
+ stack[nlvl] = nul;
}
lvl = nlvl;
*/
Roo.bootstrap.UploadCropbox = function(config){
+ console.log("BOOTSTRAP UPLOAD CROPBOX CONSTRUCTOR");
Roo.bootstrap.UploadCropbox.superclass.constructor.call(this, config);
this.addEvents({
getAutoCreate : function()
{
+ console.log("BOOTSTRAP UPLOADCROPBOX GETAUTOCREATE");
var cfg = {
tag : 'div',
cls : 'roo-upload-cropbox',
onRender : function(ct, position)
{
- Roo.bootstrap.UploadCropbox.superclass.onRender.call(this, ct, position);
+ console.log("BOOTSTRAP UPLOADCROPBOX ONRENDER");
if (this.buttons.length) {