comparison plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1394:0f918e37e1d6 biblio_alt_search_auth

Major interface changes; will use virtual attributes to identify search results.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 27 Sep 2013 18:43:29 +0100
parents 5b8bd53fd65c
children 00a51e442fe9
comparison
equal deleted inserted replaced
1393:67abd7b08753 1394:0f918e37e1d6
1 // bibliography.js 1 // bibliography.js
2 2
3 function disable_fields(){ 3 function disable_fields(){
4 $this = $(this); 4 $this = $(this);
5
5 $author_info = $this.closest('div').prev(); 6 $author_info = $this.closest('div').prev();
6 $author_info.children('.description').toggle(); 7 // $author_info.children('.description').toggle();
7 $author_info.find('p :input').attr("readonly", true); 8 $author_info.find('p :input').attr("readonly", true);
8 $author_info.find('p :input').addClass('readonly'); 9 $author_info.find('p :input').addClass('readonly');
9 10
10 $this.siblings('.author_edit_btn').show(); 11 $this.siblings('.author_edit_btn').show();
11 $this.hide(); 12 $this.hide();
13 return false; 14 return false;
14 } 15 }
15 16
16 function enable_fields(){ 17 function enable_fields(){
17 $this = $(this); 18 $this = $(this);
19
18 $author_info = $this.closest('div').prev(); 20 $author_info = $this.closest('div').prev();
19 $author_info.children('.description').toggle(); 21 // $author_info.children('.description').toggle();
20 $author_info.find('p :input').attr("readonly", false); 22 $author_info.find('p :input').attr("readonly", false);
21 $author_info.find('p :input').removeClass('readonly'); 23 $author_info.find('p :input').removeClass('readonly');
22 24
23 $this.siblings('.author_save_btn').show(); 25 $this.siblings('.author_save_btn').show();
24 $this.hide(); 26 $this.hide();
25 27
26 return false; 28 return false;
27 } 29 }
30