Bug 16437 - (follow-up) Automatic item modifications by age needs prettying
Do not move the scrollbar to the top when removing a 'block' to a new rule. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
22b18ba988
commit
e0143f3205
1 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,8 @@ function clone_block(block) {
|
|||
$(new_block).find('a.remove_block').show();
|
||||
var blocks = $(block).parent();
|
||||
$(blocks).append(new_block);
|
||||
$(blocks).find('a.remove_block').click(function(){
|
||||
$(blocks).find('a.remove_block').click(function(e){
|
||||
e.preventDefault();
|
||||
remove_block_action($(this));
|
||||
}).show();
|
||||
}
|
||||
|
@ -91,7 +92,8 @@ $(document).ready(function() {
|
|||
if( $("#rules").find(".conditions > .condition").length > 1 ) {
|
||||
|
||||
}
|
||||
new_rule.find('.remove_rule').click(function(){
|
||||
new_rule.find('.remove_rule').click(function(e){
|
||||
e.preventDefault();
|
||||
remove_rule_action( $(this) );
|
||||
}).show();
|
||||
new_rule.find('.add_rule').remove();
|
||||
|
|
Loading…
Reference in a new issue