diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 948b88bb..c06fc1bb 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -287,7 +287,7 @@ var orbitDesktop = function(dom){ this.layout_data = function(h){ var $e; - var column_container,layout, base_width , no_of_entries, pagination_link , pagination_variable; + var column_container,layout, base_width , no_of_entries = 0, pagination_link , pagination_variable; o.paging = true; this.layout_data.generate_layout_html = function(l){ $e = $("
"); @@ -305,32 +305,36 @@ var orbitDesktop = function(dom){ no_of_entries = (typeof column_container.attr("per-column") != "undefined"? parseInt(column_container.attr("per-column")) : 4); var height_percentage = 100/no_of_entries; var entries = column_container.find("li[item=true]"),x = 0; - entries.each(function(i,li){ - if(x == 0){ - column = $("