To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / assets / javascripts / bibliography.js @ 1403:35732ac4324a

History | View | Annotate | Download (720 Bytes)

1
// bibliography.js
2

    
3
function disable_fields(){
4
        $this = $(this);
5

    
6
        $author_info = $this.closest('div').prev();
7
//    $author_info.children('.description').toggle();
8
        $author_info.find('p :input').attr("readonly", true);
9
    $author_info.find('p :input').addClass('readonly');
10

    
11
    $this.siblings('.author_edit_btn').show();
12
    $this.hide();
13

    
14
    return false;
15
}
16

    
17
function enable_fields(){
18
    $this = $(this);
19

    
20
    $author_info = $this.closest('div').prev();
21
//    $author_info.children('.description').toggle();
22
    $author_info.find('p :input').attr("readonly", false);
23
    $author_info.find('p :input').removeClass('readonly');
24

    
25
    $this.siblings('.author_save_btn').show();
26
    $this.hide();
27

    
28
    return false;
29
}
30