diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 2a50c3426..f766802fa 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -334,6 +334,55 @@ var orbitDesktop = function(dom){ }) } } + this.insert_new_column = function(index){ + var column_container = $("div[container=true] div.overview"),layout = column_container.attr("content-layout"),base_width = parseInt(column_container.attr("base-width")),column; + var i = (index == 0? 0 : index-1); + var previous_column = column_container.find(".column").eq(i); + if(previous_column.length == 0)return false; + switch(layout){ + case "datalist": + column = $("
-