fixed saving of positions of the tiles again
This commit is contained in:
parent
4ae1fe68cd
commit
66582fb671
|
@ -657,6 +657,7 @@ var orbitDesktop = function(dom){
|
||||||
.gridster({
|
.gridster({
|
||||||
widget_margins: [6, 6],
|
widget_margins: [6, 6],
|
||||||
widget_base_dimensions: [120, 120],
|
widget_base_dimensions: [120, 120],
|
||||||
|
serialize_params: function($w, wgd) { return { col: wgd.col, row: wgd.row, id: $w.data("id") } },
|
||||||
draggable : {
|
draggable : {
|
||||||
start: function(event, ui){
|
start: function(event, ui){
|
||||||
dragged.addClass("noClick");
|
dragged.addClass("noClick");
|
||||||
|
@ -671,6 +672,8 @@ var orbitDesktop = function(dom){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
var newpos = o.gridvar.serialize();
|
||||||
|
$.post("/desktop/newpositions",{"newpositions":newpos});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue