Mercurial > hg > soundsoftware-site
changeset 1408:b09744f35f76 biblio_alt_search_auth
Fixed the initial state of the Save/Edit buttons.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 12:08:09 +0100 |
parents | 00a51e442fe9 |
children | 3cb633d4b37d |
files | plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb plugins/redmine_bibliography/assets/javascripts/new_publication.js plugins/redmine_bibliography/assets/stylesheets/bibliography.css |
diffstat | 3 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Oct 01 12:00:45 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Oct 01 12:08:09 2013 +0100 @@ -18,7 +18,7 @@ <p> <%= button_to_function l(:label_save_author), '', :id => form_tag_id(f.object_name, :edit_save_button), :class => 'author_save_btn' -%> - <%= button_to_function l(:label_edit_author), '', :id => form_tag_id(f.object_name, :edit_button), :class => 'author_edit_btn' -%> + <%= button_to_function l(:label_edit_author), '', :id => form_tag_id(f.object_name, :edit_button), :class => 'author_edit_btn', :style => "display:none;" -%> <%= link_to_remove_fields l("remove_author"), f %> </p>
--- a/plugins/redmine_bibliography/assets/javascripts/new_publication.js Tue Oct 01 12:00:45 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/new_publication.js Tue Oct 01 12:08:09 2013 +0100 @@ -4,4 +4,6 @@ // adds the events to the edit/save authorship button $('.author_save_btn').live('click', disable_fields); $('.author_edit_btn').live('click', enable_fields); + + }); \ No newline at end of file