autocomplete, continued
This commit is contained in:
parent
2f233c28e4
commit
8f18c726b6
6 changed files with 21 additions and 3 deletions
|
|
@ -1360,6 +1360,14 @@ Ox.startsWith = function(str, sub) {
|
|||
return str.substr(0, sub.length) === sub;
|
||||
};
|
||||
|
||||
Ox.stripTags = function(str) {
|
||||
/*
|
||||
>>> Ox.stripTags("f<span>o</span>o")
|
||||
foo
|
||||
*/
|
||||
return str.replace(/(<.*?>)/gi, "");
|
||||
};
|
||||
|
||||
Ox.toCamelCase = function(str) {
|
||||
/*
|
||||
>>> Ox.toCamelCase("foo-bar-baz")
|
||||
|
|
|
|||
|
|
@ -1629,7 +1629,7 @@ requires
|
|||
}
|
||||
function onClick(event, data) {
|
||||
Ox.print("onClick", data)
|
||||
that.focus().val(data.title);
|
||||
that.focus().val(Ox.stripTags(data.title));
|
||||
self.menu.hideMenu();
|
||||
}
|
||||
function selection() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue