Revision 1286:d0d6bbe9f2e0 plugins/redmine_bibliography/assets/javascripts

View differences:

plugins/redmine_bibliography/assets/javascripts/authors.js
24 24
            $this.closest('div').next().find("input[id$='name_on_paper']").val(ui.item.value);
25 25
            $this.closest('div').next().find("input[id$='institution']").val(ui.item.institution);
26 26
            $this.closest('div').next().find("input[id$='email']").val(ui.item.email);
27
            $this.closest('div').next().find("input[id$='object_class']").val(ui.item.object_class);
27
            $this.closest('div').next().find("input[id$='search_author_class']").val(ui.item.search_author_class);
28
            $this.closest('div').next().find("input[id$='search_author_id']").val(ui.item.search_author_id);
28 29
        }
29 30
    });
30 31
});
......
66 67
function toggle_edit_save_button(object_id){
67 68
    $button = $('publication_authorships_attributes_' + object_id + '_edit_save_button');
68 69
    if ($button.value == "Edit author"){
69
	$button.value = "Save author";
70
        $button.value = "Save author";
70 71
    } else {
71
	$button.value = "Edit author";
72
    };
72
        $button.value = "Edit author";
73
    }
73 74
}
74 75

  
75 76
function toggle_save_author(form_object_id, $this){

Also available in: Unified diff