js/payone/core/wallet.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 0
nc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 0
1
/**
2
 *
3
 * NOTICE OF LICENSE
4
 *
5
 * This source file is subject to the GNU General Public License (GPL 3)
6
 * that is bundled with this package in the file LICENSE.txt
7
 *
8
 * DISCLAIMER
9
 *
10
 * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
 * versions in the future. If you wish to customize Payone_Core for your
12
 * needs please refer to http://www.payone.de for more information.
13
 *
14
 * @category        Payone
15
 * @package         js
16
 * @subpackage      payone
17
 * @copyright       Copyright (c) 2012 <[email protected]> - www.noovias.com
18
 * @author          Matthias Walter <[email protected]>
19
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
 * @link            http://www.noovias.com
21
 */
22
23
/**
24
 * @param element
25
 */
26
function payoneSwitchWallet(element)
27
{
28
    var ElementValue = element.value;
29
    var ElementValueSplit = ElementValue.split('_');
30
    var typeId = ElementValueSplit[0];
31
    var typeCode = ElementValueSplit[1];
32
    $("payone_wallet_wlt_type").setValue(typeCode);
33
    $("payone_wallet_config_id").setValue(typeId);
34
}
35