-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaptchaCustomByUserTrue_GetBalance_select.js
30 lines (30 loc) · 1.21 KB
/
CaptchaCustomByUserTrue_GetBalance_select.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var service = GetInputConstructorValue("service", loader);
if (service["original"].length == 0) {
Invalid(tr("Service") + " " + tr("is empty"));
return;
};
var serviceKey = GetInputConstructorValue("serviceKey", loader);
var serverUrl = GetInputConstructorValue("serverUrl", loader);
if (serviceKey["original"].length == 0) {
Invalid(tr("Service key") + " " + tr("is empty"));
return;
};
var replaceService = GetInputConstructorValue("replaceService", loader);
if (replaceService["original"].length == 0) {
Invalid(tr("Replace Service") + " " + tr("is empty"));
return;
};
var replaceTo = GetInputConstructorValue("replaceTo", loader);
var Save = this.$el.find("#Save").val().toUpperCase();
try {
var code = loader.GetAdditionalData() + _.template($("#CaptchaCustomByUserTrue_GetBalance_code").html())({
"service": service["updated"],
"serviceKey": serviceKey["updated"],
"serverUrl": serverUrl["updated"],
"replaceService": replaceService["updated"],
"replaceTo": replaceTo["updated"],
"variable": "VAR_" + Save
});
code = Normalize(code, 0);
BrowserAutomationStudio_Append("", BrowserAutomationStudio_SaveControls() + code, action, DisableIfAdd);
} catch (e) {}