forked from bofh/fetsite
upload beispiele attachments...
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<%= semantic_form_for [@thema,@attachment],:remote=>true do |f| %>
|
||||
<%= semantic_form_for [@thema,@attachment], :remote=>true do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
|
||||
<%= token_tag form_authenticity_token %>
|
||||
<%= f.input :datei, :as => :file %>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
alert('create_attachment');
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>");
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
alert('new.js.erb')
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )+ @action.to_s%>");
|
||||
$('document').trigger('ready');
|
||||
alert('ready')
|
||||
Reference in New Issue
Block a user