Mercurial > hg > soundsoftware-site
view vendor/plugins/redmine_bibliography/assets/javascripts/authors.js @ 470:30b36ab6f15a feature_36
Correctly removing authors.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 24 Jun 2011 11:41:01 +0100 |
parents | ae87ae455cfb |
children | dd242ea99fd3 |
line wrap: on
line source
function remove_fields(link) { $(link).previous("input[type=hidden]").value = "1"; $(link).up(".fields").hide(); } function add_fields(link, association, content) { var new_id = new Date().getTime(); var regexp = new RegExp("new_" + association, "g") $(link).up().insert({ before: content.replace(regexp, new_id) }); }