diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index c63432ef7..dea7c3f5f 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -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}); } } })