anchor.diff:        </section>
       <% end%>
   
  -    <%= f.submit :class => "btn-primary", "data-loading-text" => t('button.sending') %>
  +    <%= f.submit :class => "btn-primary form-sender", "data-loading-text" => t('button.sending') %>
     <% end %>
   
  +  
     <%= javascript_tag do %>
       $("#new_file input[type='submit']").click(function(event){
         //AGE
  
positive.code:          <ul class="resourceTagList"></ul>
        </div>
      </section>
  
      <%unless resource.class.name=="Picture" %>
        <section class="avatar">
  
negative.code:       SocialStream.Document.edit();
        newFilePositionLimits();
      });
  
      $(".form-sender").click(function(){
        var tagList=[]
        $(".resourceTagList .tagit-choice").each(function(index,elem){
          tagList.push($(elem).text());
          });
          $(".tags input").hide();
          $(".tags input").val(tagList);
        });
  
    <% end %>
  
  </article>
  