mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed services in visual console. Ticket#2745
This commit is contained in:
parent
f8a77bde45
commit
f432535f07
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user