Commit a994ea87 authored by Janez K's avatar Janez K

fixed saving positions bug

parent 31fd878d
......@@ -1090,8 +1090,6 @@ function updateWidgetListeners() {
$(this).css('top','0px');
}
var y = parseInt($(this).css('top'));
var x = parseInt($(this).css('left'));
//alert($(this).attr('rel'));
......@@ -1099,12 +1097,18 @@ function updateWidgetListeners() {
$(".ui-selected").each(function () {
var y = parseInt($(this).css('top'));
var x = parseInt($(this).css('left'));
$.post(url['save-position'], { "widget_id": $(this).attr('rel'), "x": x, "y": y } );
$.post(url['save-position'], { "widget_id": $(this).attr('rel'), "x": x, "y": y } );
})
if ($(".ui-selected").size()==0) {
var y = parseInt($(this).css('top'));
var x = parseInt($(this).css('left'));
$.post(url['save-position'], { "widget_id": $(this).attr('rel'), "x": x, "y": y } );
}
redrawLines();
}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment