| 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/compatibility/modules/ |
Upload File : |
/* --------------------------------------------------------------
modules_overview.js 2015-09-28 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2015 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
/**
* ## Modules Overview Listing Handler
*
* This module will handle the listing actions on module pages like payment, shipping or order total
*
* @module Compatibility/modules_overview
*/
gx.compatibility.module(
'modules_overview',
[],
/** @lends module:Compatibility/modules_overview */
function (data) {
'use strict';
// ------------------------------------------------------------------------
// VARIABLES DEFINITION
// ------------------------------------------------------------------------
var
/**
* Module Selector
*
* @var {object}
*/
$this = $(this),
/**
* Default Options
*
* @type {object}
*/
defaults = {},
/**
* Final Options
*
* @var {object}
*/
options = $.extend(true, {}, defaults, data),
/**
* Module Object
*
* @type {object}
*/
module = {};
// ------------------------------------------------------------------------
// PRIVATE METHODS
// ------------------------------------------------------------------------
var _toggle = function (event) {
var id = $(this).prop('id');
$('.' + id).toggleClass('hidden');
$(this).toggleClass('closed');
$(this).find('i:last-child').toggleClass('fa-plus-square-o');
$(this).find('i:last-child').toggleClass('fa-minus-square-o');
};
// ------------------------------------------------------------------------
// INITIALIZATION
// ------------------------------------------------------------------------
module.init = function (done) {
// init method
$('.module-head').on('click', _toggle);
done();
};
return module;
});