2012-12-11 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/module_manager_editor_common.php
	godmode/agentes/module_manager_editor.php: Fix tags and 
	latest fields on web modules editor



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-12-11 09:45:38 +00:00
parent e0b45d88a7
commit a47a9f49a5
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-12-11 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor.php: Fix tags and
latest fields on web modules editor
2012-12-10 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: removed utimestamp index on tsesion.

View File

@ -242,6 +242,7 @@ else {
$min = '';
$max = '';
$interval = '';
$quiet_module = 0;
$unit = '';
$prediction_module = '';
$custom_integer_2 = 0;
@ -329,6 +330,7 @@ if($is_function_policies !== ENTERPRISE_NOT_HOOK) {
global $__code_from;
$__code_from = 'modules';
$remote_conf = false;
switch ($moduletype) {
case "dataserver":
case 1:

View File

@ -340,7 +340,7 @@ $table_advanced->data[6][1] = html_print_select_from_sql (
SELECT a.id_tag
FROM ttag a, $__table_modules b
WHERE a.id_tag = b.id_tag AND $__id_where = $__id )
ORDER BY name", 'id_tag_available[]', $id_tag, '','','',
ORDER BY name", 'id_tag_available[]', '', '','','',
true, true, false, false, 'width: 200px', '5');
$table_advanced->data[6][2] = html_print_image('images/darrowright.png', true, array('id' => 'right', 'title' => __('Add tags to module'))); //html_print_input_image ('add', 'images/darrowright.png', 1, '', true, array ('title' => __('Add tags to module')));
$table_advanced->data[6][2] .= '<br><br><br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'left', 'title' => __('Delete tags to module'))); //html_print_input_image ('add', 'images/darrowleft.png', 1, '', true, array ('title' => __('Delete tags to module')));
@ -351,7 +351,7 @@ $table_advanced->data[6][4] = html_print_select_from_sql (
FROM ttag a, $__table_modules b
WHERE a.id_tag = b.id_tag AND $__id_where = $__id
ORDER BY name",
'id_tag_selected[]', $id_tag, '','','', true, true, false,
'id_tag_selected[]', '', '','','', true, true, false,
false, 'width: 200px', '5');
$table_advanced->data[7][0] = __('Quiet');
$table_advanced->data[7][0] .= ui_print_help_tip(__('The module still stores data but the alerts and events will be stop'), true);
@ -427,6 +427,12 @@ $(document).ready (function () {
$(this).attr('selected','selected');
});
});
$("#submit-crtbutton").click(function () {
$('#id_tag_selected option').map(function(){
$(this).attr('selected','selected');
});
});
});
/* ]]> */
</script>