|
|
@ -1,5 +1,5 @@
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(document).ready(function () {
|
|
|
|
function toggle() {
|
|
|
|
function toggle_fetch_backend() {
|
|
|
|
if ($('input[name="fetch_backend"]:checked').val() == 'html_webdriver') {
|
|
|
|
if ($('input[name="fetch_backend"]:checked').val() == 'html_webdriver') {
|
|
|
|
if (playwright_enabled) {
|
|
|
|
if (playwright_enabled) {
|
|
|
|
// playwright supports headers, so hide everything else
|
|
|
|
// playwright supports headers, so hide everything else
|
|
|
@ -13,12 +13,8 @@ $(document).ready(function() {
|
|
|
|
// selenium/webdriver doesnt support anything afaik, hide it all
|
|
|
|
// selenium/webdriver doesnt support anything afaik, hide it all
|
|
|
|
$('#requests-override-options').hide();
|
|
|
|
$('#requests-override-options').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#webdriver-override-options').show();
|
|
|
|
$('#webdriver-override-options').show();
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
$('#requests-override-options').show();
|
|
|
|
$('#requests-override-options').show();
|
|
|
|
$('#requests-override-options *:hidden').show();
|
|
|
|
$('#requests-override-options *:hidden').show();
|
|
|
|
$('#webdriver-override-options').hide();
|
|
|
|
$('#webdriver-override-options').hide();
|
|
|
@ -26,8 +22,25 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$('input[name="fetch_backend"]').click(function (e) {
|
|
|
|
$('input[name="fetch_backend"]').click(function (e) {
|
|
|
|
toggle();
|
|
|
|
toggle_fetch_backend();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
toggle();
|
|
|
|
toggle_fetch_backend();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function toggle_default_notifications() {
|
|
|
|
|
|
|
|
var n=$('#notification_urls, #notification_title, #notification_body, #notification_format');
|
|
|
|
|
|
|
|
if ($('#notification_use_default').is(':checked')) {
|
|
|
|
|
|
|
|
$(n).each(function (e) {
|
|
|
|
|
|
|
|
$(this).attr('readonly', true).css('opacity',0.5);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$(n).each(function (e) {
|
|
|
|
|
|
|
|
$(this).attr('readonly', false).css('opacity',1);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#notification_use_default').click(function (e) {
|
|
|
|
|
|
|
|
toggle_default_notifications();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
toggle_default_notifications();
|
|
|
|
});
|
|
|
|
});
|
|
|
|