Lines 338-344
Link Here
|
338 |
<script type="text/javascript" language="javascript"> |
338 |
<script type="text/javascript" language="javascript"> |
339 |
/* This function allows to display a new field to search. |
339 |
/* This function allows to display a new field to search. |
340 |
*/ |
340 |
*/ |
341 |
$(document).on("click", '.ButtonPlus', function() { |
341 |
$(document).on("click", '.ButtonPlus', function(e) { |
|
|
342 |
e.preventDefault(); |
342 |
$('.ButtonLess').show(); |
343 |
$('.ButtonLess').show(); |
343 |
var thisLine = $(this).parent(); |
344 |
var thisLine = $(this).parent(); |
344 |
var newLine = thisLine.clone(); |
345 |
var newLine = thisLine.clone(); |
Lines 346-352
Link Here
|
346 |
thisLine.after(newLine); |
347 |
thisLine.after(newLine); |
347 |
}); |
348 |
}); |
348 |
|
349 |
|
349 |
$(document).on("click", '.ButtonLess', function() { |
350 |
$(document).on("click", '.ButtonLess', function(e) { |
|
|
351 |
e.preventDefault(); |
350 |
if($(this).parent().siblings().length <= 3 ) { |
352 |
if($(this).parent().siblings().length <= 3 ) { |
351 |
$('.ButtonLess').hide(); |
353 |
$('.ButtonLess').hide(); |
352 |
} |
354 |
} |
353 |
- |
|
|