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)
|
= t('contacts', :count =>@aspect_contacts_count)
|
||||||
|
|
||||||
- if @aspect.contacts_visible
|
- 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
|
"aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true
|
||||||
|
|
||||||
- else
|
- 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
|
"aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true
|
||||||
|
|
||||||
|
|
||||||
%h3#aspect_name_title
|
%h3#aspect_name_title
|
||||||
%span.name= @aspect
|
%span.name= @aspect
|
||||||
%span.tiny_text
|
%span.tiny_text
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@ $(document).ready(function() {
|
||||||
|
|
||||||
if(padlockImg.hasClass('open')) {
|
if(padlockImg.hasClass('open')) {
|
||||||
padlockImg.attr('src', 'images/icons/padlock-closed.png');
|
padlockImg.attr('src', 'images/icons/padlock-closed.png');
|
||||||
|
padlockImg.attr('title', "<%= t('aspects.edit.aspect_list_is_not_visible') %>");
|
||||||
} else {
|
} else {
|
||||||
padlockImg.attr('src', 'images/icons/padlock-open.png');
|
padlockImg.attr('src', 'images/icons/padlock-open.png');
|
||||||
|
padlockImg.attr('title', "<%= t('aspects.edit..aspect_list_is_visible') %>");
|
||||||
}
|
}
|
||||||
padlockImg.toggleClass('open');
|
padlockImg.toggleClass('open');
|
||||||
|
|
||||||
|
|
@ -169,7 +169,8 @@ en:
|
||||||
add_existing: "Add an existing contact"
|
add_existing: "Add an existing contact"
|
||||||
done: "Done"
|
done: "Done"
|
||||||
rename: "rename"
|
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:
|
aspect_contacts:
|
||||||
done_editing: "done editing"
|
done_editing: "done editing"
|
||||||
aspect_stream:
|
aspect_stream:
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,4 @@ $(document).ready(function() {
|
||||||
$(".edit_aspect").live('ajax:success', function(data, json, xhr) {
|
$(".edit_aspect").live('ajax:success', function(data, json, xhr) {
|
||||||
toggleAspectTitle();
|
toggleAspectTitle();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue