# HG changeset patch # User luisf # Date 1380625689 -3600 # Node ID b09744f35f76a39519f07eb5df6dd547e2a12fcd # Parent 00a51e442fe9b9c3c3cc790ec3a16afc01a318e5 Fixed the initial state of the Save/Edit buttons. diff -r 00a51e442fe9 -r b09744f35f76 plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- 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 @@

<%= 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 %>

diff -r 00a51e442fe9 -r b09744f35f76 plugins/redmine_bibliography/assets/javascripts/new_publication.js --- 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 diff -r 00a51e442fe9 -r b09744f35f76 plugins/redmine_bibliography/assets/stylesheets/bibliography.css --- a/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Tue Oct 01 12:00:45 2013 +0100 +++ b/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Tue Oct 01 12:08:09 2013 +0100 @@ -70,3 +70,7 @@ display: none; float: left; } + +.author_edit_btn { + display: none; +}