Revision 1052:6674e52e20bf vendor/plugins/redmine_bibliography/app/views
| vendor/plugins/redmine_bibliography/app/views/publications/new/_bibtex.html.erb | ||
|---|---|---|
| 8 | 8 |
<%= link_to_remote "Parse BiBTeX", :url => { :project_id => @project, :action => :parse_bibtex}, :with => "'bibtex_paste=' + $('bibtex_paste').value" -%>
|
| 9 | 9 |
</div> |
| 10 | 10 |
|
| 11 |
<div class="box" id="ieee_prev"></div> |
|
| 11 |
<div class="box" id="ieee_prev"><h3>Preview</h3></div>
|
|
| 12 | 12 |
|
| vendor/plugins/redmine_bibliography/app/views/publications/parse_bibtex.rjs | ||
|---|---|---|
| 1 |
page.replace_html :ieee_prev, @ieee_prev |
|
| 1 |
if @bibtex_parse_success |
|
| 2 |
page.insert_html :bottom, :ieee_prev, @ieee_prev |
|
| 3 |
page.insert_html :top, :content, '<div class="flash notice">Successfully Parsed BibTeX</div>' |
|
| 4 |
else |
|
| 5 |
page.insert_html :top, :content, '<div class="flash error">Error parsing BibTeX.</div>' |
|
| 6 |
end |
|
| 2 | 7 |
|
| 3 |
page.replace_html :error, flash[:error] |
|
| 4 | 8 |
flash.discard |
Also available in: Unified diff