|
Lines 36-42
function clone_block(block) {
Link Here
|
| 36 |
$(new_block).find('a.remove_block').show(); |
36 |
$(new_block).find('a.remove_block').show(); |
| 37 |
var blocks = $(block).parent(); |
37 |
var blocks = $(block).parent(); |
| 38 |
$(blocks).append(new_block); |
38 |
$(blocks).append(new_block); |
| 39 |
$(blocks).find('a.remove_block').click(function(){ |
39 |
$(blocks).find('a.remove_block').click(function(e){ |
|
|
40 |
e.preventDefault(); |
| 40 |
remove_block_action($(this)); |
41 |
remove_block_action($(this)); |
| 41 |
}).show(); |
42 |
}).show(); |
| 42 |
} |
43 |
} |
|
Lines 91-97
$(document).ready(function() {
Link Here
|
| 91 |
if( $("#rules").find(".conditions > .condition").length > 1 ) { |
92 |
if( $("#rules").find(".conditions > .condition").length > 1 ) { |
| 92 |
|
93 |
|
| 93 |
} |
94 |
} |
| 94 |
new_rule.find('.remove_rule').click(function(){ |
95 |
new_rule.find('.remove_rule').click(function(e){ |
|
|
96 |
e.preventDefault(); |
| 95 |
remove_rule_action( $(this) ); |
97 |
remove_rule_action( $(this) ); |
| 96 |
}).show(); |
98 |
}).show(); |
| 97 |
new_rule.find('.add_rule').remove(); |
99 |
new_rule.find('.add_rule').remove(); |
| 98 |
- |
|
|