Mercurial > hg > soundsoftware-site
view vendor/plugins/redmine_bibliography/assets/javascripts/authors.js @ 481:dd242ea99fd3 feature_36
created author search virtual attribute in authorship model.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 04 Jul 2011 18:56:45 +0100 |
parents | 30b36ab6f15a |
children | ea8b8768b4a0 |
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) }); } function update_author_info(link){ $(link).up('div').up('div').select('input[id$=name_on_paper]').each(function(e){e.value='aaaaa'}) }