2011-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/ajax/visual_console_builder.ajax.php, godmode/reporting/visual_console_builder.editor.js: fixed bug that erase the label of items when moving in other position. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5c589377fc
commit
c41dd035d6
|
@ -1,3 +1,9 @@
|
||||||
|
2011-02-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/ajax/visual_console_builder.ajax.php,
|
||||||
|
godmode/reporting/visual_console_builder.editor.js: fixed bug that erase the
|
||||||
|
label of items when moving in other position.
|
||||||
|
|
||||||
2011-02-18 Javier Lanz <javier.lanz@artica.es>
|
2011-02-18 Javier Lanz <javier.lanz@artica.es>
|
||||||
* godmode/gis_maps/configure_gis_map.php: Adding layer, group combo only
|
* godmode/gis_maps/configure_gis_map.php: Adding layer, group combo only
|
||||||
displays user's groups.
|
displays user's groups.
|
||||||
|
|
|
@ -778,10 +778,21 @@ function insertDB(type, values) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDB(type, idElement , values) {
|
function updateDB(type, idElement , values, event) {
|
||||||
|
action = "update";
|
||||||
|
|
||||||
|
//Check if the event parameter in function is passed in the call.
|
||||||
|
if (event != null) {
|
||||||
|
switch (event) {
|
||||||
|
case 'dragstop':
|
||||||
|
action = "move";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
parameter = Array();
|
parameter = Array();
|
||||||
parameter.push ({name: "page", value: "include/ajax/visual_console_builder.ajax"});
|
parameter.push ({name: "page", value: "include/ajax/visual_console_builder.ajax"});
|
||||||
parameter.push ({name: "action", value: "update"});
|
parameter.push ({name: "action", value: action});
|
||||||
parameter.push ({name: "id_visual_console", value: id_visual_console});
|
parameter.push ({name: "id_visual_console", value: id_visual_console});
|
||||||
parameter.push ({name: "type", value: type});
|
parameter.push ({name: "type", value: type});
|
||||||
parameter.push ({name: "id_element", value: idElement});
|
parameter.push ({name: "id_element", value: idElement});
|
||||||
|
@ -1053,7 +1064,7 @@ function eventsItems() {
|
||||||
values['mov_left'] = ui.position.left;
|
values['mov_left'] = ui.position.left;
|
||||||
values['mov_top'] = ui.position.top;
|
values['mov_top'] = ui.position.top;
|
||||||
|
|
||||||
updateDB(selectedItem, idItem, values);
|
updateDB(selectedItem, idItem, values, 'dragstop');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ switch ($action) {
|
||||||
echo json_encode($return);
|
echo json_encode($return);
|
||||||
break;
|
break;
|
||||||
case 'update':
|
case 'update':
|
||||||
|
case 'move':
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'background':
|
case 'background':
|
||||||
$values = array();
|
$values = array();
|
||||||
|
@ -160,6 +161,12 @@ switch ($action) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($action == 'move') {
|
||||||
|
//Don't change the label because only change the positions
|
||||||
|
unset($values['label']);
|
||||||
|
}
|
||||||
|
|
||||||
$result = process_sql_update('tlayout_data', $values, array('id' => $id_element));
|
$result = process_sql_update('tlayout_data', $values, array('id' => $id_element));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue