app/assets/javascripts/app/pykih.gridster.js in pyk-0.1.8 vs app/assets/javascripts/app/pykih.gridster.js in pyk-0.1.9

- old
+ new

@@ -1,17 +1,5 @@ -$(document).ready(function() { - $(".gridster ul").gridster({ - widget_selector: "> li", - widget_margins: [5, 5], - max_cols: 5, - max_size_x: 5, - autogenerate_stylesheet: false, - widget_base_dimensions: [200, 200] - }); -}); - - function pykih_gridster(base_url, account_slug, auth_token) { var url = base_url + "/api/v1/accounts/" + account_slug + "/grid/get.json?access_token=" + auth_token; $.getJSON(url, function (data) { if (data != null) { @@ -106,11 +94,13 @@ }); var grid_canvas = $(".gridster > ul").gridster({ - widget_margins: [10, 10], - widget_base_dimensions: [140, 140], + widget_margins: [5, 5], + widget_base_dimensions: [180, 180], + max_cols: 4, + max_size_x: 4, serialize_params: function ($w, wgd) { return { id: $($w).attr('id'), \ No newline at end of file