Add time to announcement quick edit
Fix picture for news quick edit Fix tags not saving when empty Hide role in quick edit
This commit is contained in:
1 parent
77224bcc8f
commit
fb53ad524a
15 files changed
+42
-16
No files matched your search
@@ -22,7 +22,7 @@ class WebLink
|
||||
|
||||
belongs_to :web_link_category
|
||||
|
||||
before_save :update_avliable_language
|
||||
before_save :update_avliable_language, :clean_tags
|
||||
|
||||
validates :title, :at_least_one => true
|
||||
|
||||
@@ -75,5 +75,9 @@ class WebLink
|
||||
self.url = 'http://' + self.url
|
||||
end
|
||||
end
|
||||
|
||||
def clean_tags
|
||||
self.tag_ids.delete('')
|
||||
end
|
||||
|
||||
end
|
||||
Vendored
+1
@@ -39,6 +39,7 @@
|
||||
<%= content_tag :label,:class => "checkbox inline" do -%>
|
||||
<%= check_box_tag 'web_link[tag_ids][]', tag.id, @web_link.tag_ids.include?(tag.id)%>
|
||||
<%= tag[I18n.locale] %>
|
||||
<%= hidden_field_tag 'web_link[tag_ids][]', '' %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user