annotate plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents 00a51e442fe9
children
rev   line source
luis@1379 1 // bibliography.js
luis@1379 2
luis@1379 3 function disable_fields(){
luis@1379 4 $this = $(this);
luis@1394 5
luis@1379 6 $author_info = $this.closest('div').prev();
luis@1394 7 // $author_info.children('.description').toggle();
luis@1379 8 $author_info.find('p :input').attr("readonly", true);
luis@1380 9 $author_info.find('p :input').addClass('readonly');
luis@1380 10
luis@1407 11 // Always hides on save
luis@1407 12 $this.closest('div').prev().find('p.search_author_tie').hide();
luis@1407 13
luis@1380 14 $this.siblings('.author_edit_btn').show();
luis@1380 15 $this.hide();
luis@1379 16
luis@1379 17 return false;
luis@1380 18 }
luis@1380 19
luis@1380 20 function enable_fields(){
luis@1380 21 $this = $(this);
luis@1394 22
luis@1380 23 $author_info = $this.closest('div').prev();
luis@1394 24 // $author_info.children('.description').toggle();
luis@1380 25 $author_info.find('p :input').attr("readonly", false);
luis@1380 26 $author_info.find('p :input').removeClass('readonly');
luis@1380 27
luis@1407 28 // Always shows on edit
luis@1407 29 $this.closest('div').prev().find('p.search_author_tie').show();
luis@1407 30
luis@1380 31 $this.siblings('.author_save_btn').show();
luis@1380 32 $this.hide();
luis@1380 33
luis@1380 34 return false;
luis@1380 35 }
luis@1394 36