-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathks_settings_select.js
37 lines (35 loc) · 1.1 KB
/
ks_settings_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
31
32
33
34
35
36
37
var storage = GetInputConstructorValue('storage', loader)
if (storage['original'].length == 0) {
Invalid(tr('The parameter "') + tr('Storage') + tr('" is not specified'))
return
}
var failErrors = GetInputConstructorValue('failErrors', loader)
var failStop = $('#failStop').is(':checked')
var dieErrors = GetInputConstructorValue('dieErrors', loader)
var dieInstantly = $('#dieInstantly').is(':checked')
var ignoreErrors = GetInputConstructorValue('ignoreErrors', loader)
var ssl = $('#ssl').is(':checked')
var debug = $('#debug').is(':checked')
var applyGlobally = $('#applyGlobally').is(':checked')
try {
var code =
loader.GetAdditionalData() +
_.template($('#ks_settings_code').html())({
storage: storage['updated'],
failErrors: failErrors['updated'],
failStop: failStop,
dieErrors: dieErrors['updated'],
dieInstantly: dieInstantly,
ignoreErrors: ignoreErrors['updated'],
ssl: ssl,
debug: debug,
applyGlobally: applyGlobally
})
code = Normalize(code, 0)
BrowserAutomationStudio_Append(
'',
BrowserAutomationStudio_SaveControls() + code,
action,
DisableIfAdd
)
} catch (e) {}