diff --git a/index.html b/index.html index d34e97e..0acf601 100644 --- a/index.html +++ b/index.html @@ -78,6 +78,7 @@
+
@@ -161,6 +162,7 @@ function currentFilter(d){ var to=inputToKey(document.getElementById('fDtTo').value); var rc=document.getElementById('fRc').value.trim().toLowerCase(); var cid=document.getElementById('fCid').value.trim().toLowerCase(); + var pkg=document.getElementById('fPkg').value.trim().toLowerCase(); var sc=document.getElementById('fSc').value; var acc=document.getElementById('fAcc').value; var k=dtKey(d.dt); @@ -168,6 +170,7 @@ function currentFilter(d){ if(to!=null && k>to) return false; if(rc && String(d.routing_campaign_id).toLowerCase().indexOf(rc)<0) return false; if(cid && String(d.campaign_id).toLowerCase().indexOf(cid)<0) return false; + if(pkg && String(d.pkg).toLowerCase().indexOf(pkg)<0) return false; if(sc && d.second_channel!==sc) return false; if(acc && d.account!==acc) return false; return true; @@ -254,7 +257,7 @@ document.querySelectorAll('#detailTable th.sortable').forEach(function(th){ document.getElementById('applyBtn').onclick=renderDetail; document.getElementById('resetBtn').onclick=function(){ - ['fDtFrom','fDtTo','fRc','fCid'].forEach(function(id){document.getElementById(id).value='';}); + ['fDtFrom','fDtTo','fRc','fCid','fPkg'].forEach(function(id){document.getElementById(id).value='';}); document.getElementById('fSc').value=''; document.getElementById('fAcc').value=''; renderDetail(); };