Revision 787:a36cce722860 vendor/plugins/redmine_bibliography/assets/javascripts
| vendor/plugins/redmine_bibliography/assets/javascripts/authors.js | ||
|---|---|---|
| 3 | 3 |
$(link).up(".fields").hide();
|
| 4 | 4 |
} |
| 5 | 5 |
|
| 6 |
function add_fields(link, association, content) {
|
|
| 7 |
var new_id = new Date().getTime(); |
|
| 8 |
var regexp = new RegExp("new_" + association, "g")
|
|
| 9 |
$(link).insert({
|
|
| 10 |
before: content.replace(regexp, new_id) |
|
| 11 |
}); |
|
| 6 |
function add_author_fields(link, association, content, action) {
|
|
| 7 |
var new_id = new Date().getTime(); |
|
| 8 |
var regexp = new RegExp("new_" + association, "g");
|
|
| 9 |
$(link).insert({
|
|
| 10 |
before: content.replace(regexp, new_id) |
|
| 11 |
}); |
|
| 12 |
if(action != "new"){
|
|
| 13 |
toggle_save_author(new_id, $(link)); |
|
| 14 |
}; |
|
| 12 | 15 |
} |
| 13 | 16 |
|
| 14 | 17 |
function identify_author_status(status, object_id) {
|
Also available in: Unified diff