Revision 59a94879
Added by Lorna Morris almost 12 years ago
cdmlib-remote-webapp/src/main/webapp/vibrant_names.html | ||
---|---|---|
12 | 12 |
$(document).ready(function(){ |
13 | 13 |
|
14 | 14 |
if( $('#query').val().contains('*')){ |
15 |
$('#matchModeId').val("LIKE"); |
|
15 |
$('#matchMode').val("BEGINNING"); |
|
16 |
} |
|
17 |
if( $('#query').val().indexOf('*') >= 0){ |
|
18 |
$('#matchMode').val("BEGINNING"); |
|
16 | 19 |
} |
17 | 20 |
if( $('#query').val().indexOf('*') == -1){ |
18 |
$('#matchModeId').val("EXACT");
|
|
21 |
$('#matchMode').val("EXACT"); |
|
19 | 22 |
} |
23 |
alert($(this).html); |
|
24 |
console.log(this); |
|
20 | 25 |
}); </script> |
21 | 26 |
|
22 | 27 |
</head> |
... | ... | |
48 | 53 |
<input name="query" type="text" id="query" size="50"></input> |
49 | 54 |
<input type="hidden" name="pageSize" id="pageSizeId" value="25"></input> |
50 | 55 |
<input type="hidden" name="pageNumber" value="0"></input> |
51 |
<input type="hidden" name="matchMode" id="matchModeId" value="LIKE"></input><!-- TODO Depending on what -->
|
|
56 |
<input type="hidden" name="matchMode" id="matchModeId" value="BEGINNING"></input><!-- TODO Depending on what -->
|
|
52 | 57 |
<input type="hidden" name="doTaxa" value="1"></input> |
53 | 58 |
<input type="hidden" name="doSynonyms" value="1"></input> |
54 | 59 |
<input type="hidden" name="doMisappliedNames" value="1"></input> |
Also available in: Unified diff
changed matchMode to BEGINNING. 'LIKE' currently not working.