Revision 715:3c1257f96b79 vendor/plugins
| vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml | ||
|---|---|---|
| 48 | 48 |
<%- if params[:action] == 'new' -%> |
| 49 | 49 |
<%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button ), :class => 'edit-save-button' } %>
|
| 50 | 50 |
<%- else -%> |
| 51 |
<%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
|
|
| 51 |
<%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button ), :class => 'edit-save-button' } %>
|
|
| 52 | 52 |
<%- end -%> |
| 53 | 53 |
|
| 54 | 54 |
|
| vendor/plugins/redmine_bibliography/assets/javascripts/authors.js | ||
|---|---|---|
| 99 | 99 |
Publication.Authorships.add() |
| 100 | 100 |
} |
| 101 | 101 |
|
| 102 |
// $(this).previous('div').down('.edit-save-button').observe('click', function(event){
|
|
| 103 |
// alert(Event.element(event).innerHTML); |
|
| 104 |
// alert($(this).id); |
|
| 105 |
// }) |
|
| 106 |
|
|
| 107 |
|
|
| 102 |
|
|
| 108 | 103 |
// ~ Pulication.Authorships |
| 109 | 104 |
}; |
| 110 | 105 |
|
| ... | ... | |
| 117 | 112 |
|
| 118 | 113 |
add: function(){
|
| 119 | 114 |
alert("Button Pressed");
|
| 115 |
|
|
| 116 |
self.previous('div').down('.edit-save-button').observe('click', function(event){
|
|
| 117 |
alert(Event.element(event).innerHTML); |
|
| 118 |
alert(self.id); |
|
| 119 |
}) |
|
| 120 |
|
|
| 121 |
|
|
| 120 | 122 |
}, |
| 121 | 123 |
|
| 122 | 124 |
|
Also available in: Unified diff