mirror of
https://github.com/tabler/tabler.git
synced 2025-12-24 02:38:15 +04:00
packages from /node_modules, js libs
This commit is contained in:
18
js/tabler.js
18
js/tabler.js
@@ -79,6 +79,8 @@ const tabler = {
|
||||
return color;
|
||||
},
|
||||
|
||||
colors: (window.tabler_colors || []),
|
||||
|
||||
toggleFullscreen: function(elem) {
|
||||
elem = elem || document.documentElement;
|
||||
if (
|
||||
@@ -110,6 +112,8 @@ const tabler = {
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
const $body = $('body');
|
||||
|
||||
@@ -120,19 +124,21 @@ $(document).ready(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
$('[data-toggle="popover"]').popover();
|
||||
// $('[data-toggle="tooltip"]').tooltip();
|
||||
// $('[data-toggle="popover"]').popover();
|
||||
|
||||
/*
|
||||
Autosize plugin
|
||||
*/
|
||||
if (window.autosize) {
|
||||
(function() {
|
||||
const $elem = $('[data-toggle="autosize"]');
|
||||
const elements = document.querySelectorAll('[data-toggle="autosize"]');
|
||||
|
||||
if ($elem) {
|
||||
$elem.each(function() {
|
||||
autosize($(this));
|
||||
console.log('elements.length', elements.length);
|
||||
if (elements.length) {
|
||||
elements.forEach(function(element) {
|
||||
console.log('1', element);
|
||||
autosize(element);
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user