X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo.js;h=612a227566dab5a6e3e27096fe2ced6458e6df65;hp=39662237ef8dd20c9c9413b81419cf45c5e670cb;hb=c47e24f9bde6e0a7a5994c0024daa13e7e4df117;hpb=d7631819a4b41acdff57f9d1a8144637c0ecc651 diff --git a/Roo.js b/Roo.js index 39662237ef..612a227566 100644 --- a/Roo.js +++ b/Roo.js @@ -19,7 +19,7 @@ window["undefined"] = window["undefined"]; /** * @class Roo * Roo core utilities and functions. - * @singleton + * @static */ var Roo = {}; /** @@ -343,10 +343,6 @@ Roo.factory(conf, Roo.data); return; // alerT? } - if(window.location.href.indexOf("localhost") !== -1) { - return; - } - console.log(s); }, /** @@ -672,7 +668,30 @@ Roo.factory(conf, Roo.data); { 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' + } + + } }); @@ -681,6 +700,5 @@ Roo.factory(conf, Roo.data); Roo.namespace("Roo", "Roo.util", "Roo.grid", "Roo.dd", "Roo.tree", "Roo.data", "Roo.form", "Roo.menu", "Roo.state", "Roo.lib", "Roo.layout", - "Roo.app", "Roo.ux", - "Roo.bootstrap", - "Roo.bootstrap.dash"); + "Roo.app", "Roo.ux" + );