|
|
|
@ -48,6 +48,22 @@
|
|
|
|
|
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
|
|
|
|
|
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
|
|
|
|
|
<%= f.submit l(:button_project_tags_add),:class => "small" %>
|
|
|
|
|
<div class='hidden'>
|
|
|
|
|
<% preTags = @preTags.nil? ? [] : @preTags %>
|
|
|
|
|
<% preTags.each do |tag|%>
|
|
|
|
|
<%= link_to tag, "
|
|
|
|
|
javascript:(function(){
|
|
|
|
|
var $tagInputVal = $('#put-tag-form-"+obj.class.to_s+"-"+obj.id.to_s+"').find('#name');
|
|
|
|
|
var tagArr = [];
|
|
|
|
|
tagArr = tagArr.concat( $tagInputVal[0].value.split(',') );
|
|
|
|
|
tagArr = tagArr.concat('"+tag.to_s+"');
|
|
|
|
|
tagArr = cleanArray(tagArr);
|
|
|
|
|
$tagInputVal.val(tagArr.join(','));
|
|
|
|
|
})();
|
|
|
|
|
"
|
|
|
|
|
%>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to_function l(:button_cancel), "$(\"#put-tag-form-#{obj.class}-#{obj.id}\").hide();"%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|