Skip to content

Commit

Permalink
QA: Add missing action support for thold
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 5, 2024
1 parent 7fb7678 commit caf6493
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions host.php
Expand Up @@ -1126,6 +1126,31 @@ function changeHostForm() {
// Need to set this for global snmpv3 functions to remain sane between edits
snmp_security_initialized = false;

$('#cdialog').remove();
$('#main').append("<div id='cdialog' class='cdialog'></div>");

$('.delete').click(function (event) {
event.preventDefault();

request = $(this).attr('href');
$.get(request)
.done(function(data) {
$('#cdialog').html(data);

applySkin();

$('#cdialog').dialog({
title: '<?php print __('Delete Item from Device Template');?>',
close: function () { $('.delete').blur(); $('.selectable').removeClass('selected'); },
minHeight: 80,
minWidth: 500
})
})
.fail(function(data) {
getPresentHTTPError(data);
});
}).css('cursor', 'pointer');

<?php if (!$hasHost) { ?>
$('#row_created').hide();
<?php } ?>
Expand Down

0 comments on commit caf6493

Please sign in to comment.