Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Noah Brackenbury
erp5
Commits
ed2f65bc
Commit
ed2f65bc
authored
Jun 08, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Highlight search words in document's title as well.
parent
5ff2f394
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
...plateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
+4
-2
bt5/erp5_km/bt/revision
bt5/erp5_km/bt/revision
+1
-1
No files found.
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
View file @
ed2f65bc
...
...
@@ -12,7 +12,7 @@
</item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts07
454479.45
</string>
</value>
<value>
<string>
ts07
528717.77
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -251,11 +251,13 @@ function highlight_search_word(){\n
if (search_text!=undefined){\n
document_body = $("#main_content div.document div.page")\n
headline = $("#main_content div.document span.headline")\n
title = $("#wrapper_headline div.header_title")\n
// multiple words\n
search_word_list = search_text.split("%20")\n
for(var i=0; i
<search_word_list.length
;
i++)
{\n
document_body.highlight(search_word_list[i],
"highlight")\n
headline.highlight(search_word_list[i],
"highlight")\n
title.highlight(search_word_list[i],
"highlight")\n
\n
}\n
}\n
...
...
@@ -273,7 +275,7 @@ $(document).ready(initialize_form);\n
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
8
256
</int>
</value>
<value>
<int>
8
364
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_km/bt/revision
View file @
ed2f65bc
1804
\ No newline at end of file
1805
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment