<%= render :partial=>"/assets/manager/scripts" %> <% content_for :page_scripts do %> function select_asset(id) { $('#asset_tabs').tabs('select', '#asset_tabs-link'); path = $.trim($('#path-'+id).html()); $('input[name=url]').val(path); } function open_with(selection) { tree_open_folder(1,true,true); j_selection = $(selection.getNode()); reset_form(); if (j_selection.outerHTML().toLowerCase().indexOf(' <% if selected_asset %> select_asset(<%= params[:id] %>); <% end %> parent.report_loaded("link"); }); <% end %>
<%= render :partial=>"/assets/manager/page_browse" %>
<%= button_to_function "Upload File", "$('#upload_asset').slideDown();" %> <%= render :partial=>"/assets/manager/asset_search" %>
<%= render :partial=>"/assets/manager/assets", :locals=>{:assets=>@assets} %>