Revision 953:b52621512b47 vendor/plugins/redmine_bibliography/assets/javascripts
| vendor/plugins/redmine_bibliography/assets/javascripts/authors.js | ||
|---|---|---|
| 6 | 6 |
function add_author_fields(link, association, content, action) {
|
| 7 | 7 |
var new_id = new Date().getTime(); |
| 8 | 8 |
var regexp = new RegExp("new_" + association, "g");
|
| 9 |
$(link).insert({
|
|
| 10 |
before: content.replace(regexp, new_id)
|
|
| 11 |
}); |
|
| 9 |
|
|
| 10 |
$('authors').insert(content.replace(regexp, new_id));
|
|
| 11 |
|
|
| 12 | 12 |
if(action != "new"){
|
| 13 | 13 |
toggle_save_author(new_id, $(link)); |
| 14 | 14 |
}; |
Also available in: Unified diff