Fix #5681 - fix bootstrap4 detection
[roojs1] / Roo / bootstrap / version.js
index e69de29..7d4b3cb 100644 (file)
@@ -0,0 +1,15 @@
+/**
+ * set the version of bootstrap based on the stylesheet...
+ *
+ */
+
+Roo.bootstrap.version = (
+        function() {
+                var ret=3;
+                Roo.each(document.styleSheets, function(s) {
+                    if (s.href.match(/css-bootstrap4/)) {
+                        ret=4;
+                    }
+                });
+        return ret;
+})(); 
\ No newline at end of file