added title to padlock on aspect edit pane
This commit is contained in:
parent
d0569fb881
commit
ee6932a3f7
4 changed files with 6 additions and 5 deletions
|
|
@ -11,14 +11,13 @@
|
|||
= t('contacts', :count =>@aspect_contacts_count)
|
||||
|
||||
- if @aspect.contacts_visible
|
||||
= link_to image_tag('icons/padlock-open.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :class => 'open'),
|
||||
= link_to image_tag('icons/padlock-open.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :class => 'open', :title => t('.aspect_list_is_visible')),
|
||||
"aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true
|
||||
|
||||
- else
|
||||
= link_to image_tag('icons/padlock-closed.png', :height => 16, :width => 16, :id => "contact_visibility_padlock"),
|
||||
= link_to image_tag('icons/padlock-closed.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :title => t('.aspect_list_is_not_visible')),
|
||||
"aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true
|
||||
|
||||
|
||||
%h3#aspect_name_title
|
||||
%span.name= @aspect
|
||||
%span.tiny_text
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@ $(document).ready(function() {
|
|||
|
||||
if(padlockImg.hasClass('open')) {
|
||||
padlockImg.attr('src', 'images/icons/padlock-closed.png');
|
||||
padlockImg.attr('title', "<%= t('aspects.edit.aspect_list_is_not_visible') %>");
|
||||
} else {
|
||||
padlockImg.attr('src', 'images/icons/padlock-open.png');
|
||||
padlockImg.attr('title', "<%= t('aspects.edit..aspect_list_is_visible') %>");
|
||||
}
|
||||
padlockImg.toggleClass('open');
|
||||
|
||||
|
|
@ -169,7 +169,8 @@ en:
|
|||
add_existing: "Add an existing contact"
|
||||
done: "Done"
|
||||
rename: "rename"
|
||||
make_aspect_list_visible: "make aspect list visible to others in aspect"
|
||||
aspect_list_is_visible: "aspect list is visible to others in aspect"
|
||||
aspect_list_is_not_visible: "aspect list is hidden to others in aspect"
|
||||
aspect_contacts:
|
||||
done_editing: "done editing"
|
||||
aspect_stream:
|
||||
|
|
|
|||
|
|
@ -16,5 +16,4 @@ $(document).ready(function() {
|
|||
$(".edit_aspect").live('ajax:success', function(data, json, xhr) {
|
||||
toggleAspectTitle();
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue