mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js: fixed the resize background. Fixes: #3483645 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
65726fae5e
commit
fda3463d7c
@ -1,3 +1,10 @@
|
|||||||
|
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/reporting/visual_console_builder.editor.js: fixed the resize
|
||||||
|
background.
|
||||||
|
|
||||||
|
Fixes: #3483645
|
||||||
|
|
||||||
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
|
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: cleaned source code style, and fixed the
|
* include/functions_reporting.php: cleaned source code style, and fixed the
|
||||||
|
@ -979,6 +979,9 @@ function updateDB(type, idElement , values, event) {
|
|||||||
//Check if the event parameter in function is passed in the call.
|
//Check if the event parameter in function is passed in the call.
|
||||||
if (event != null) {
|
if (event != null) {
|
||||||
switch (event) {
|
switch (event) {
|
||||||
|
case 'resizestop':
|
||||||
|
//Force to move action when resize a background, for to avoid
|
||||||
|
//lost the label.
|
||||||
case 'dragstop':
|
case 'dragstop':
|
||||||
action = "move";
|
action = "move";
|
||||||
break;
|
break;
|
||||||
@ -1287,7 +1290,8 @@ function move_elements_resize(original_width, original_height, width, height) {
|
|||||||
jQuery.each($(".item"), function(key, value) {
|
jQuery.each($(".item"), function(key, value) {
|
||||||
item = value;
|
item = value;
|
||||||
idItem = $(item).attr('id');
|
idItem = $(item).attr('id');
|
||||||
classItem = $(item).attr('class').replace('item', '').replace('ui-draggable', '').replace(/^\s+/g,'').replace(/\s+$/g,'')
|
classItem = $(item).attr('class').replace('item', '')
|
||||||
|
.replace('ui-draggable', '').replace(/^\s+/g,'').replace(/\s+$/g,'')
|
||||||
|
|
||||||
old_height = parseInt($(item).css('margin-top').replace('px', ''));
|
old_height = parseInt($(item).css('margin-top').replace('px', ''));
|
||||||
old_width = parseInt($(item).css('margin-left').replace('px', ''));
|
old_width = parseInt($(item).css('margin-left').replace('px', ''));
|
||||||
@ -1306,7 +1310,7 @@ function move_elements_resize(original_width, original_height, width, height) {
|
|||||||
values['absolute_left'] = new_width;
|
values['absolute_left'] = new_width;
|
||||||
values['absolute_top'] = new_height;
|
values['absolute_top'] = new_height;
|
||||||
|
|
||||||
updateDB(classItem, idItem, values);
|
updateDB(classItem, idItem, values, "resizestop");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user