Always have a full line on filter page.

This allows javascript to copy easily
pull/2077/head
digital-gnome 2017-12-09 22:13:17 -05:00
parent ee5552d9f9
commit 9eb03a881d
1 changed files with 6 additions and 8 deletions

View File

@ -54,7 +54,12 @@ $conjunctionTypes = array(
$obracketTypes = array();
$cbracketTypes = array();
$terms = $filter->terms();
if (count($filter->terms()) > 0) {
$terms = $filter->terms();
} else {
$terms[] = array();
}
if ( count($terms) ) {
for ( $i = 0; $i <= count($terms)-2; $i++ ) {
$obracketTypes[$i] = str_repeat( '(', $i );
@ -293,13 +298,6 @@ for ( $i=0; $i < count($terms); $i++ ) {
?>
</tbody>
</table>
<?php
if ( count($terms) == 0 ) {
?>
<input type="button" onclick="addTerm( this, 1 )" value="+"/>
<?php
}
?>
<hr/>
<table id="sortTable" class="filterTable">
<tbody>