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 @ 1394:0f918e37e1d6

History | View | Annotate | Download (720 Bytes)

1 1379:1053a56bccec luis
// bibliography.js
2
3
function disable_fields(){
4
        $this = $(this);
5 1394:0f918e37e1d6 luis
6 1379:1053a56bccec luis
        $author_info = $this.closest('div').prev();
7 1394:0f918e37e1d6 luis
//    $author_info.children('.description').toggle();
8 1379:1053a56bccec luis
        $author_info.find('p :input').attr("readonly", true);
9 1380:fa92d13876d0 luis
    $author_info.find('p :input').addClass('readonly');
10
11
    $this.siblings('.author_edit_btn').show();
12
    $this.hide();
13 1379:1053a56bccec luis
14
    return false;
15 1380:fa92d13876d0 luis
}
16
17
function enable_fields(){
18
    $this = $(this);
19 1394:0f918e37e1d6 luis
20 1380:fa92d13876d0 luis
    $author_info = $this.closest('div').prev();
21 1394:0f918e37e1d6 luis
//    $author_info.children('.description').toggle();
22 1380:fa92d13876d0 luis
    $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
}