+ <%= file_field :desktop_app,:package_file %> +
+ <%= submit_tag %> + + <% end %> + +diff --git a/app/assets/Archive/javascripts/orbitdesktop.js b/app/assets/Archive/javascripts/orbitdesktop.js index 50f776610..6897144d2 100755 --- a/app/assets/Archive/javascripts/orbitdesktop.js +++ b/app/assets/Archive/javascripts/orbitdesktop.js @@ -38,6 +38,15 @@ var sortAscending = function(a, b) { var sortDescending = function(a, b) { return $(a).find("h1").text() < $(b).find("h1").text() ? 1 : -1; }; + +Array.prototype.indexOfObject = function(object){ + for(i = 0;i < this.length; i++){ + if(this[i] === object) + break; + } + return i; +} + jQuery.ajax = (function(_ajax){ var protocol = location.protocol, @@ -315,9 +324,7 @@ var orbitDesktop = function(dom){ $(window).resize(function(){ // var ww = $(window).width(); // $("img#thmbackground").attr({"width":ww}); - // if( $('.tinycanvas').length > 0 ){ - $('.tinycanvas').tinyscrollbar_update('relative'); - // } + if( $('.tinycanvas').length > 0 ){ $('.tinycanvas').tinyscrollbar_update('relative'); } if($(o.contentHolder).find("div.app_frame").length > 0){ $(o.contentHolder).find("div.app_frame").each(function(){ var app_holder_height = $(this).height() - 72; @@ -371,7 +378,7 @@ var orbitDesktop = function(dom){ var temp_div = $("
"); var entries = []; switch (layout){ - case "simple": + case "simple": total_columns++; temp_div.append(column_container.html()); total_width = "auto"; @@ -464,7 +471,6 @@ var orbitDesktop = function(dom){ o.simple_drop_down(); o.autocomplete(); o.use_select2(); - o.check_simple_layout(); } this.paging = true; this.pagination = function(link,variable,page_no){ @@ -759,7 +765,7 @@ var orbitDesktop = function(dom){ var f = (tile.fullsize?"fullsize":null); if(tile.data_category == "app"){ - $li = $('+ <%= file_field :desktop_app,:package_file %> +
+ <%= submit_tag %> + + <% end %> + +