Fixed services in visual console. Ticket#2745

This commit is contained in:
Arturo Gonzalez Diaz 2015-10-01 09:11:12 +02:00
parent f8a77bde45
commit f432535f07
2 changed files with 415 additions and 416 deletions

View File

@ -1267,10 +1267,9 @@ function setModuleGraph(id_data) {
url: get_url_ajax(),
data: parameter,
type: "POST",
dataType: 'json', //The ajax return the data as text.
dataType: 'json',
success: function (data)
{
console.log(data);
if (data['no_data'] == true) {
$('#' + id_data).html(data['url']);
}
@ -1643,6 +1642,7 @@ function createItem(type, values, id_data) {
default:
//Maybe create in any Enterprise item.
if (typeof(enterprise_createItem) == 'function') {
values['image'] = 'visualmap.services';
temp_item = enterprise_createItem(type, values, id_data);
if (temp_item != false) {
item = temp_item;
@ -2710,6 +2710,7 @@ function showPreview(image) {
break;
case 'service':
showPreviewIcon(image);
break;
}
}

View File

@ -164,11 +164,9 @@ function center_labels() {
x = parseInt($(item).css("left"));
x = x - (dif_width / 2)
x = x - (dif_width / 2);
$(item)
.css("left", x + "px")
.css("text-align", "center");
$(item).css("left", x + "px").css("text-align", "center");
}
});
}