fix minor error module editor network

Former-commit-id: c0f2c03b441f939b842303186ecdf2ace5c253b6
This commit is contained in:
daniel 2018-12-27 12:40:47 +01:00
parent c0869b3c9e
commit 6d8b73f72e
3 changed files with 15 additions and 12 deletions

View File

@ -573,7 +573,7 @@ ui_require_javascript_file ('pandora_modules');
?>
<script language="javascript">
/* <![CDATA[ */
var no_name_lang = "<?php echo __ui_print_info_message ( array('no_close'=>true, 'message'=> __('No module name provided') ) ); ?>";
var no_name_lang = "<?php echo __('No module name provided') ?>";
var no_target_lang = "<?php echo __('No target IP provided') ?>";
var no_oid_lang = "<?php echo __('No SNMP OID provided') ?>";
var no_prediction_module_lang = "<?php echo __('No module to predict') ?>";
@ -583,9 +583,6 @@ var no_execute_test_from = "<?php echo __('No server provided') ?>"
$(document).ready (function () {
configure_modules_form ();
$("#module_form").submit(function() {
if (typeof(check_remote_conf) != 'undefined') {
if (check_remote_conf) {

View File

@ -251,10 +251,6 @@ snmp_browser_print_container (false, '100%', '60%', 'none');
?>
<script type="text/javascript">
$(document).ready (function () {
network_component_group_change_event();
$('#network_component_group').trigger('change');
$("#id_module_type").change(function (){
if ((this.value == "17") || (this.value == "18") || (this.value == "16") || (this.value == "15")) {
if ($("#snmp_version").val() == "3"){

View File

@ -25,10 +25,20 @@
};
$.fn.showMessage = function (msg) {
return $(this).hide ().empty ()
.text (msg)
.slideDown ();
};
return $(this)
.hide ()
.empty ()
.html (
'<table cellspacing="0" cellpadding="0" id="" class="info_box error textodialogo" style="">'
+ '<tbody>' + '<tr>'
+ '<td class="icon" rowspan="2" style="padding-right: 10px; padding-top: 3px;"><img src="http://localhost/pandora_console/images/err.png"></td>'
+ '<td class="title" style="text-transform: uppercase; padding-top: 10px;"><b>Error</b></td>'
+ '</tr><tr>'
+ '<td style="color:#333;padding-top:10px">'+msg+'</td>'
+ '<td></td></tr></tbody></table>'
)
.slideDown ();
};
}) (jQuery);
$(document).ready (function () {