-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin_custom.html
More file actions
32 lines (31 loc) · 1.02 KB
/
plugin_custom.html
File metadata and controls
32 lines (31 loc) · 1.02 KB
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
<div class="col col-md-6">
<p class="note">Select a file you would like to download on test startup. Files will be downloaded to <code>~/downloads/</code> on the load agents.</p>
<div class="form-group">
<label>File to Download to Load Agents</label>
<input type="url" class="form-control" name="customfiledownload_filename" />
</div>
<div class="form-group">
<label class="checkbox-inline">
<input type="checkbox" name="customfiledownload_tar_extract" value="T" />
Extract File as TAR/TGZ
</label>
</div>
</div>
<script type="text/javascript">
$(function(){
var eventHandler = function(event, data) {
switch (event)
{
case 'prefill':
if ("plugin_customfiledownload" in data)
{
var pData = data.plugin_customfiledownload;
if (("customfiledownload_tar_extract" in pData) && pData.customfiledownload_tar_extract == "T")
$("input[name='customfiledownload_tar_extract']").prop("checked", true);
}
break;
}
};
CustomTest.registerPlugin('customfiledownload', eventHandler);
});
</script>