projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs/Roo.docs.template.js
[roojs1]
/
roojs-core-debug.js
diff --git
a/roojs-core-debug.js
b/roojs-core-debug.js
index
7f8d0f4
..
f2e187a
100644
(file)
--- a/
roojs-core-debug.js
+++ b/
roojs-core-debug.js
@@
-668,7
+668,30
@@
Roo.factory(conf, Roo.data);
{
var node = Roo.DomQuery.selectNode(selector,root);
return node ? Roo.get(node) : new Roo.Element(false);
{
var node = Roo.DomQuery.selectNode(selector,root);
return node ? Roo.get(node) : new Roo.Element(false);
- }
+ },
+ /**
+ * Find the current bootstrap width Grid size
+ * Note xs is the default for smaller.. - this is currently used by grids to render correct columns
+ * @returns {String} (xs|sm|md|lg|xl)
+ */
+
+ getGridSize : function()
+ {
+ var w = Roo.lib.Dom.getViewWidth();
+ switch(true) {
+ case w > 1200:
+ return 'xl';
+ case w > 992:
+ return 'lg';
+ case w > 768:
+ return 'md';
+ case w > 576:
+ return 'sm';
+ default:
+ return 'xs'
+ }
+
+ }
});
});
@@
-4336,7
+4359,7
@@
Roo.DomHelper = function(){
var ieTable = function(depth, s, h, e){
tempTableEl.innerHTML = [s, h, e].join('');
var i = -1, el = tempTableEl;
var ieTable = function(depth, s, h, e){
tempTableEl.innerHTML = [s, h, e].join('');
var i = -1, el = tempTableEl;
- while(++i < depth){
+ while(++i < depth
&& el.firstChild
){
el = el.firstChild;
}
return el;
el = el.firstChild;
}
return el;
@@
-5066,7
+5089,11
@@
Roo.DomQuery = function(){
}
var r = [], ri = -1, cn;
for(var i = 0, ci; ci = c[i]; i++){
}
var r = [], ri = -1, cn;
for(var i = 0, ci; ci = c[i]; i++){
- if((' '+ci.className+' ').indexOf(v) != -1){
+
+
+ if((' '+
+ ( (ci instanceof SVGElement) ? ci.className.baseVal : ci.className)
+ +' ').indexOf(v) != -1){
r[++ri] = ci;
}
}
r[++ri] = ci;
}
}
@@
-5084,7
+5111,7
@@
Roo.DomQuery = function(){
return n.htmlFor;
}
if(attr == "class" || attr == "className"){
return n.htmlFor;
}
if(attr == "class" || attr == "className"){
-
return
n.className;
+
return (n instanceof SVGElement) ? n.className.baseVal :
n.className;
}
return n.getAttribute(attr) || n[attr];
}
return n.getAttribute(attr) || n[attr];
@@
-5188,7
+5215,7
@@
Roo.DomQuery = function(){
a = Roo.DomQuery.getStyle(ci, attr);
}
else if(attr == "class" || attr == "className"){
a = Roo.DomQuery.getStyle(ci, attr);
}
else if(attr == "class" || attr == "className"){
- a = ci.className;
+ a =
(ci instanceof SVGElement) ? ci.className.baseVal :
ci.className;
}else if(attr == "for"){
a = ci.htmlFor;
}else if(attr == "href"){
}else if(attr == "for"){
a = ci.htmlFor;
}else if(attr == "href"){