return original string when highlight is called without query; lazy format annotation date
This commit is contained in:
parent
77f0c762a3
commit
3fc8a47bf4
2 changed files with 5 additions and 4 deletions
|
|
@ -254,6 +254,9 @@
|
|||
'<span class="c">foo <br>bar</span> baz'
|
||||
@*/
|
||||
Ox.highlight = function(string, query, classname, isHTML) {
|
||||
if (!query) {
|
||||
return string;
|
||||
}
|
||||
var cursor = 0,
|
||||
entities = [],
|
||||
matches = [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue