mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 12:06:29 -04:00
Use disabled button rather than remove
Reduces page jumping
This commit is contained in:
@@ -284,14 +284,9 @@ for ( $i=0; $i < count($terms); $i++ ) {
|
||||
?>
|
||||
<td><?php if ( count($terms) > 2 ) { echo htmlSelect( "filter[Query][terms][$i][cbr]", $cbracketTypes, $term['cbr'] ); } else { ?> <?php } ?></td>
|
||||
<td>
|
||||
<input type="button" onclick="addTerm( this, <?php echo $i+1 ?> )" value="+"/>
|
||||
<?php
|
||||
if ( count($terms) > 1 ) {
|
||||
?>
|
||||
<input type="button" onclick="delTerm( this, <?php echo $i ?> )" value="-"/>
|
||||
<?php
|
||||
}
|
||||
?> </td>
|
||||
<input type="button" onclick="addTerm( this )" value="+"/>
|
||||
<input type="button" onclick="delTerm( this )" value="-" <?php echo count($terms) == 1 ? 'disabled' : '' ?>/>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
} # end foreach filter
|
||||
|
||||
Reference in New Issue
Block a user