roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Wed, 28 Nov 2018 08:03:47 +0000 (16:03 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Nov 2018 08:03:47 +0000 (16:03 +0800)
roojs-bootstrap-debug.js
Roo/bootstrap/version.js

Roo/bootstrap/version.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 1bf5d99..f0ed1a1 100644 (file)
@@ -7,7 +7,9 @@ Roo.bootstrap.version = (
         function() {
                 var ret=3;
                 Roo.each(document.styleSheets[0], function(s) {
-                    if (s.href.match(/css-bootstrap4/)) ret=4;
+                    if (s.href.match(/css-bootstrap4/)) {
+                        ret=4;
+                    }
                 });
         return ret;
 })();
\ No newline at end of file
index 8171446..86fed20 100644 (file)
@@ -1,4 +1,18 @@
-/*
+/**
+ * set the version of bootstrap based on the stylesheet...
+ *
+ */
+
+Roo.bootstrap.version = (
+        function() {
+                var ret=3;
+                Roo.each(document.styleSheets[0], function(s) {
+                    if (s.href.match(/css-bootstrap4/)) {
+                        ret=4;
+                    }
+                });
+        return ret;
+})();/*
  * - LGPL
  *
  * base class for bootstrap elements.
index 880e533..e193d99 100644 (file)
@@ -1,3 +1,5 @@
+// Roo/bootstrap/version.js
+Roo.bootstrap.version=(function(){var A=3;Roo.each(document.styleSheets[0],function(s){if(s.href.match(/css-bootstrap4/)){A=4;}});return A;})();
 // Roo/bootstrap/Component.js
 Roo.bootstrap=Roo.bootstrap||{};Roo.bootstrap.Component=function(A){Roo.bootstrap.Component.superclass.constructor.call(this,A);this.addEvents({"childrenrendered":true});};Roo.extend(Roo.bootstrap.Component,Roo.BoxComponent,{allowDomMove:false,cls:false,style:false,autoCreate:false,tooltip:null,initEvents:function(){}
 ,xattr:false,parentId:false,can_build_overlaid:true,container_method:false,dataId:false,name:false,parent:function(){return Roo.ComponentMgr.get(this.parentId)},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A);if(this.el){if(this.el.attr('xtype')){this.el.attr('xtypex',this.el.attr('xtype'));