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 3bd0651 commit 9d55544
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions host.php
Expand Up @@ -1229,6 +1229,31 @@ function hostPageLoad(strURL) {
// 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');?>',
close: function () { $('.delete').blur(); $('.selectable').removeClass('selected'); },
minHeight: 80,
minWidth: 500
})
})
.fail(function(data) {
getPresentHTTPError(data);
});
}).css('cursor', 'pointer');

if (typeof hostInfoHeight != 'undefined') {
if ($(window).scrollTop() == 0) {
$('.hostInfoHeader').css('height', '');
Expand Down

0 comments on commit 9d55544

Please sign in to comment.