2013-11-12 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/map_builder.php: added ids to the links for to the make more easy the unit test. * godmode/reporting/visual_console_builder.editor.js, include/functions_visual_map.php: fixed the simple value macros in the editor. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9056 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5f6b46704c
commit
12ac925749
|
@ -187,14 +187,12 @@ else {
|
||||||
if (check_acl ($config['id_user'], 0, "IW")) {
|
if (check_acl ($config['id_user'], 0, "IW")) {
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
$data[3] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
$data[3] = '<a class="copy_visualmap" href="index.php?sec=reporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
||||||
$data[4] = '<a href="index.php?sec=reporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
$data[4] = '<a class="delete_visualmap" href="index.php?sec=reporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$data[3] = '<a class="copy_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
||||||
|
$data[4] = '<a class="delete_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
||||||
$data[3] = '<a href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
|
||||||
$data[4] = '<a href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
|
|
|
@ -1127,7 +1127,6 @@ function createItem(type, values, id_data) {
|
||||||
|
|
||||||
item = $('<div id="' + id_data + '" class="item simple_value" style="color: ' + values['label_color'] + '; text-align: center; position: absolute; ' + sizeStyle + ' top: ' + values['top'] + 'px; left: ' + values['left'] + 'px;">' +
|
item = $('<div id="' + id_data + '" class="item simple_value" style="color: ' + values['label_color'] + '; text-align: center; position: absolute; ' + sizeStyle + ' top: ' + values['top'] + 'px; left: ' + values['left'] + 'px;">' +
|
||||||
'<span id="text_' + id_data + '" class="text"> ' + values['label'] + '</span> ' +
|
'<span id="text_' + id_data + '" class="text"> ' + values['label'] + '</span> ' +
|
||||||
'<strong>' + getModuleValue(id_data) + '</strong>' +
|
|
||||||
'</div>'
|
'</div>'
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -229,7 +229,6 @@ function visual_map_print_item($layoutData) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo ' <span id="simplevalue_' . $id . '" style="font-weight:bold;">' . $value . '</span>';
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
break;
|
break;
|
||||||
case LABEL:
|
case LABEL:
|
||||||
|
|
Loading…
Reference in New Issue