Unverified Commit 7a4c7c01 authored by bitsoko's avatar bitsoko Committed by GitHub

Update rewards.js

parent eccd4760
......@@ -161,11 +161,7 @@ document.addEventListener('DOMContentLoaded',function() {
document.querySelector('#newTradeConfirmation').oninput=function(e){orderWatch(e.target.value)};
paySwits=document.querySelectorAll('.doTradeForm .switch')
for(var i in paySwits){
paySwits[i].onchange=managePaySwit();
}
},false);
function managePaySwit(){
paySwits[i].onchange=function(){
var pCls=this.getAttribute("class").replace(' switch','');
switch (pCls) {
......@@ -201,7 +197,10 @@ function managePaySwit(){
}
};
}
},false);
function orderWatch(cod) {
if (cod.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment