split words also by =, < and >

This commit is contained in:
Christian Weiske 2011-03-29 07:57:35 +02:00
parent 3f6bf4a5eb
commit 13fb8739db

View file

@ -135,10 +135,11 @@ $ajaxUrl = ROOT . 'ajax/'
<script type="text/javascript" src="<?php echo ROOT ?>js/jquery-ui-1.8.11/jquery.ui.position.js"></script> <script type="text/javascript" src="<?php echo ROOT ?>js/jquery-ui-1.8.11/jquery.ui.position.js"></script>
<script type="text/javascript" src="<?php echo ROOT ?>js/jquery-ui-1.8.11/jquery.ui.autocomplete.js"></script> <script type="text/javascript" src="<?php echo ROOT ?>js/jquery-ui-1.8.11/jquery.ui.autocomplete.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function() { jQuery(document).ready(function() {
function split(val) function split(val)
{ {
return val.split(/,\s*/); return val.split(/[,=><]\s*/);
} }
function extractLast(term) function extractLast(term)
@ -184,6 +185,7 @@ jQuery(document).ready(function() {
} }
}); });
}); });
//]]>
</script> </script>
<?php <?php