ENH: web: Reduce some Callbacks
JIRA: none Change-Id: Id3f9cb79851fb2b9d21f1dc2b423da21d175b39f
This commit is contained in:
parent
4dcb47d153
commit
7180c39f0f
|
@ -5,29 +5,27 @@ function OnInit()
|
|||
{
|
||||
TranslatePage();
|
||||
|
||||
SendPrivacySelect();
|
||||
//SendPrivacySelect();
|
||||
|
||||
let strRegion=GetQueryString('region');
|
||||
if( strRegion!=null )
|
||||
m_Region=strRegion.toLowerCase();
|
||||
}
|
||||
|
||||
|
||||
function SendPrivacySelect()
|
||||
{
|
||||
let nVal="refuse";
|
||||
if( $('#ChoosePrivacy').is(':checked') )
|
||||
nVal="agree";
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="user_private_choice";
|
||||
tSend['data']={};
|
||||
tSend['data']['action']=nVal;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
//function SendPrivacySelect()
|
||||
//{
|
||||
// let nVal="refuse";
|
||||
// if( $('#ChoosePrivacy').is(':checked') )
|
||||
// nVal="agree";
|
||||
//
|
||||
// var tSend={};
|
||||
// tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
// tSend['command']="user_private_choice";
|
||||
// tSend['data']={};
|
||||
// tSend['data']['action']=nVal;
|
||||
//
|
||||
// SendWXMessage( JSON.stringify(tSend) );
|
||||
//}
|
||||
|
||||
function SendPrivacyValue( strVal )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue