File "table_responsive.js"

Full Path: /home/magicrsz/public_html/assets/admin/global_assets/js/demo_pages/table_responsive.js
File size: 971 bytes
MIME-type: text/plain
Charset: utf-8

/* ------------------------------------------------------------------------------
 *
 *  # Responsive tables
 *
 *  Demo JS code for table_responsive.html page
 *
 * ---------------------------------------------------------------------------- */


// Setup module
// ------------------------------

var TableFootable = function() {


    //
    // Setup module components
    //

    // Default file input style
    var _componentFootable = function() {
        if (!$().footable) {
            console.warn('Warning - footable.min.js is not loaded.');
            return;
        }

		// Initialize responsive functionality
	    $('.table-togglable').footable();
    };


    //
    // Return objects assigned to module
    //

    return {
        init: function() {
            _componentFootable();
        }
    }
}();


// Initialize module
// ------------------------------

document.addEventListener('DOMContentLoaded', function() {
    TableFootable.init();
});