aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-03-29 07:57:35 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-03-29 07:57:35 +0200
commit13fb8739db13edcc75694338bf55da534b67336a (patch)
tree2468ad3d2a3b9549f1118e24366fe27100e6af6a
parent3f6bf4a5eb6705d3d8b83f0e6a488c1fca2c1565 (diff)
downloadsemanticscuttle-13fb8739db13edcc75694338bf55da534b67336a.tar.gz
semanticscuttle-13fb8739db13edcc75694338bf55da534b67336a.tar.bz2
split words also by =, < and >
-rw-r--r--data/templates/editbookmark.tpl.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php
index 8083a79..69d3897 100644
--- a/data/templates/editbookmark.tpl.php
+++ b/data/templates/editbookmark.tpl.php
@@ -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.autocomplete.js"></script>
<script type="text/javascript">
+//<![CDATA[
jQuery(document).ready(function() {
function split(val)
{
- return val.split(/,\s*/);
+ return val.split(/[,=><]\s*/);
}
function extractLast(term)
@@ -184,6 +185,7 @@ jQuery(document).ready(function() {
}
});
});
+//]]>
</script>
<?php