small changes
This commit is contained in:
parent
02d24c4e4c
commit
c8139d9333
4 changed files with 17 additions and 6 deletions
|
|
@ -33,6 +33,13 @@
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
.qbButton {
|
||||
height: 20px;
|
||||
font-size: 12px;
|
||||
border-width: 1px;
|
||||
-moz-border-radius: 0px;
|
||||
}
|
||||
|
||||
.qbText {
|
||||
background-color: white;
|
||||
text-align: left;
|
||||
|
|
|
|||
|
|
@ -4,14 +4,17 @@ function addCriteria ( fieldname, opform, valform ) {
|
|||
var value = getValue(valform);
|
||||
var criteria = form.proxyCriteria.value;
|
||||
var conjunction = "";
|
||||
var re = /^\s*$/;
|
||||
if(! re.test(criteria)) {
|
||||
if(! /^\s*$/.test(criteria)) {
|
||||
conjunction = " " + getValue(form.conjunction) + " ";
|
||||
}
|
||||
//handle quotes
|
||||
if(/\s+/.test(fieldname)) {
|
||||
fieldname = '"' + fieldname + '"';
|
||||
}
|
||||
var statement = fieldname + " " + operator + " " + '"' + value + '"';
|
||||
if(/^\D+$/.test(value)) {
|
||||
value = '"' + value + '"';
|
||||
}
|
||||
var statement = fieldname + " " + operator + " " + value;
|
||||
form.proxyCriteria.value = criteria + conjunction + statement;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue