MMCT TEAM
Server IP : 111.118.215.156  /  Your IP : 216.73.216.167
Web Server : Apache
System : Linux md-in-26.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : azasoqqa ( 1858)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/azasoqqa/public_html/vsrcbse.com/admin/javascript/tables/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/azasoqqa/public_html/vsrcbse.com/admin/javascript/tables/default.js
/*! ========================================================================
 * default.js
 * Page/renders: table-default.html
 * Plugins used: sparkline
 * ======================================================================== */
$(function () {
    // Sparkline
    // ================================
    $(".sparklines").sparkline("html", {
        enableTagOptions: true
    });

    // Table toolbar
    // ================================
    (function () {
        // globar variable within this function scope
        var panel       = ".panel#toolbar-showcase",
            count       = 0;

        // subscribe to `selected` row event
        $(document).on("fa.selectrow.selected", function (event, data) {
            // define variable
            var $panel   = data.element.parents(panel),
                $toolbar = $panel.find("#toolbar-toshow");

            // check for the count panel #toolbar-showcase only
            // as we dont want the event affect other panel/table
            if( $panel.length > 0 ) {
                // total the count variable
                count = count + 1;

                // check for the count panel #toolbar-showcase only
                if( count === 1 ) {
                    $toolbar.removeClass("hide");
                }
            }
        });

        // subscribe to `unselected` row event
        $(document).on("fa.selectrow.unselected", function (event, data) {
            // define variable
            var $panel   = data.element.parents(panel),
                $toolbar = $panel.find("#toolbar-toshow");

            // check for the count panel #toolbar-showcase only
            // as we dont want the event affect other panel/table
            if( $panel.length > 0 ) {
                // minus the count variable
                count = count - 1;

                // check for the count
                if( count === 0 ) {
                    $toolbar.addClass("hide");
                }
            }
        });
    })();
});

MMCT - 2023