SNMP browser action buttons
This commit is contained in:
parent
78af41b700
commit
d5cd9a0ab2
|
@ -613,7 +613,9 @@ function snmp_browser_create_modules(module_target, return_post = true) {
|
||||||
var oids = [];
|
var oids = [];
|
||||||
id_check.forEach(function(product, index) {
|
id_check.forEach(function(product, index) {
|
||||||
var oid = $("#" + product)
|
var oid = $("#" + product)
|
||||||
.siblings("a")
|
.parent()
|
||||||
|
.parent()
|
||||||
|
.find("a")
|
||||||
.attr("href");
|
.attr("href");
|
||||||
if (oid.indexOf('javascript: snmpGet("') != -1) {
|
if (oid.indexOf('javascript: snmpGet("') != -1) {
|
||||||
oid = oid.replace('javascript: snmpGet("', "");
|
oid = oid.replace('javascript: snmpGet("', "");
|
||||||
|
@ -657,23 +659,29 @@ function snmp_browser_create_modules(module_target, return_post = true) {
|
||||||
params["page"] = "include/ajax/snmp_browser.ajax";
|
params["page"] = "include/ajax/snmp_browser.ajax";
|
||||||
params["snmp_extradata"] = snmp_data;
|
params["snmp_extradata"] = snmp_data;
|
||||||
|
|
||||||
$("input[name=create_modules_" + module_target + "]").removeClass(
|
$("button[name=create_modules_" + module_target + "]").removeClass(
|
||||||
"sub add"
|
"sub add"
|
||||||
);
|
);
|
||||||
$("input[name=create_modules_" + module_target + "]").addClass("sub spinn");
|
$("button[name=create_modules_" + module_target + "]").addClass(
|
||||||
|
|
||||||
$("#dialog_error").on("dialogclose", function(event) {
|
|
||||||
$("input[name=create_modules_" + module_target + "]").removeClass(
|
|
||||||
"sub spinn"
|
"sub spinn"
|
||||||
);
|
);
|
||||||
$("input[name=create_modules_" + module_target + "]").addClass("sub add");
|
|
||||||
|
$("#dialog_error").on("dialogclose", function(event) {
|
||||||
|
$("button[name=create_modules_" + module_target + "]").removeClass(
|
||||||
|
"sub spinn"
|
||||||
|
);
|
||||||
|
$("button[name=create_modules_" + module_target + "]").addClass(
|
||||||
|
"sub add"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#dialog_success").on("dialogclose", function(event) {
|
$("#dialog_success").on("dialogclose", function(event) {
|
||||||
$("input[name=create_modules_" + module_target + "]").removeClass(
|
$("button[name=create_modules_" + module_target + "]").removeClass(
|
||||||
"sub spinn"
|
"sub spinn"
|
||||||
);
|
);
|
||||||
$("input[name=create_modules_" + module_target + "]").addClass("sub add");
|
$("button[name=create_modules_" + module_target + "]").addClass(
|
||||||
|
"sub add"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
|
@ -111,7 +111,7 @@ $(document).on('DOMSubtreeModified', "#snmp_create_module", function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("click", 'div#snmp_create_buttons > input', function (event) {
|
$(document).on("click", 'div#snmp_create_buttons > button', function (event) {
|
||||||
var source_button = this.name;
|
var source_button = this.name;
|
||||||
var target = "";
|
var target = "";
|
||||||
|
|
||||||
|
@ -264,8 +264,8 @@ function snmp_show_result_message(data) {
|
||||||
height: 300,
|
height: 300,
|
||||||
width: 500,
|
width: 500,
|
||||||
close: function(e, ui) {
|
close: function(e, ui) {
|
||||||
$("input[name=create_modules_network_component]").removeClass("sub spinn");
|
$("button[name=create_modules_network_component]").removeClass("sub spinn");
|
||||||
$("input[name=create_modules_network_component]").addClass("sub add");
|
$("button[name=create_modules_network_component]").addClass("sub add");
|
||||||
},
|
},
|
||||||
overlay: {
|
overlay: {
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
|
|
Loading…
Reference in New Issue