fixed saving of positions of the tiles again

This commit is contained in:
harrybomrah authored and Matt K. Fu committed 2013-06-18 15:26:15 +08:00
1 parent 41afb46bf6
commit 8b53ad6cc6
1 file changed
+3
+3
View File
@@ -657,6 +657,7 @@ var orbitDesktop = function(dom){
.gridster({
widget_margins: [6, 6],
widget_base_dimensions: [120, 120],
serialize_params: function($w, wgd) { return { col: wgd.col, row: wgd.row, id: $w.data("id") } },
draggable : {
start: function(event, ui){
dragged.addClass("noClick");
@@ -671,6 +672,8 @@ var orbitDesktop = function(dom){
}
});
}
var newpos = o.gridvar.serialize();
$.post("/desktop/newpositions",{"newpositions":newpos});
}
}
})