mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-11 14:33:04 +00:00
48 lines
900 B
JavaScript
48 lines
900 B
JavaScript
// UNIQUE FUNCTIONS
|
|
|
|
// Keep in here for future additions
|
|
function OnInit()
|
|
{
|
|
//let strInput=JSON.stringify(cData);
|
|
//HandleModelList(cData);
|
|
|
|
TranslatePage();
|
|
RequestProfile();
|
|
}
|
|
|
|
function CancelSelect()
|
|
{
|
|
var tSend={};
|
|
tSend['sequence_id']=Math.round(new Date() / 1000);
|
|
tSend['command']="user_guide_cancel";
|
|
tSend['data']={};
|
|
|
|
SendWXMessage( JSON.stringify(tSend) );
|
|
}
|
|
|
|
function ConfirmSelect()
|
|
{
|
|
let nChoose=OnExitFilter();
|
|
|
|
if(nChoose>0)
|
|
{
|
|
var tSend={};
|
|
tSend['sequence_id']=Math.round(new Date() / 1000);
|
|
tSend['command']="user_guide_finish";
|
|
tSend['data']={};
|
|
tSend['data']['action']="finish";
|
|
|
|
SendWXMessage( JSON.stringify(tSend) );
|
|
}
|
|
}
|
|
|
|
function CreateNewPrinter()
|
|
{
|
|
var tSend={};
|
|
tSend['sequence_id']=Math.round(new Date() / 1000);
|
|
tSend['command']="user_guide_create_printer";
|
|
tSend['data']={};
|
|
|
|
SendWXMessage( JSON.stringify(tSend) );
|
|
}
|