mirror of
https://github.com/tabler/tabler.git
synced 2025-12-24 02:38:15 +04:00
autosize plugin
This commit is contained in:
19
js/tabler.js
19
js/tabler.js
@@ -109,6 +109,25 @@ $(document).ready(function () {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
Autosize plugin
|
||||
*/
|
||||
if(window.autosize) {
|
||||
(function() {
|
||||
|
||||
var $elem = $('[data-toggle="autosize"]');
|
||||
console.log('$elem', $elem);
|
||||
|
||||
if ($elem) {
|
||||
$elem.each(function() {
|
||||
autosize($(this));
|
||||
});
|
||||
}
|
||||
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
window.tabler = tabler;
|
||||
|
||||
Reference in New Issue
Block a user