anchor.diff: +<% if controller.class != "HomeController" && controller.action_name != "show" %>
   <script type='text/javascript'>
     //<![CDATA[
     jQuery.noConflict(); // prevent jQuery from overriding $ operator, so that it doesn't fight with Prototype
  
positive.code:             <strong><%=t('menu.tags')%></strong>
              <small> <%=t("seperate_with_coma")%></small>
            </label>
            <%=  f.text_field :tag_names, :class => "input-text big", :style => "border:none;" %>
            <%= f.collection_select :current_id, Current.all_except_default, :id, :title , {:include_blank=>'Hovedveje ...'}, :style => "width:196px;"%>
          </div>
  
  
negative.code:       jQuery('.ui-autocomplete-input').addClass('input-text');
      }
    }
  </script>
  
  <script type="text/javascript">
    var tags= <%= Tag.all.map(&:name).to_json  %>;
    var myTextArea = jQuery('#auto-text').tagify();
  
    myTextArea.tagify('inputField').autocomplete({
      source: tags,
      position: { of: myTextArea.tagify('containerDiv') },
      close: function(event, ui) { myTextArea.tagify('add'); }
    });
  
    jQuery("#idea_form").submit(function(e){
      var new_values = jQuery(".tagify-container input:first").val();
      jQuery.each(new_values.split(","),function(i,data){
        myTextArea.tagify("add",data);
      });
      myTextArea.tagify("serialize");
    });
    
  </script>
  <% end %>