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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
erp5
Commits
aaec3bd6
Commit
aaec3bd6
authored
Jun 07, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Highlight only Web Page real content tags which are shown inline.
parent
f5b13ed5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
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
+7
-4
No files found.
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
View file @
aaec3bd6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts0745
1662.42
</string>
</value>
<value>
<string>
ts0745
4479.45
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -249,11 +249,14 @@ function highlight_search_word(){\n
...
@@ -249,11 +249,14 @@ function highlight_search_word(){\n
query_array = queryStringToArray(document.referrer)\n
query_array = queryStringToArray(document.referrer)\n
search_text = query_array["search_text"]\n
search_text = query_array["search_text"]\n
if (search_text!=undefined){\n
if (search_text!=undefined){\n
container = $("div.content")\n
document_body = $("#main_content div.document div.page")\n
headline = $("#main_content div.document span.headline")\n
// multiple words\n
// multiple words\n
search_word_list = search_text.split("%20")\n
search_word_list = search_text.split("%20")\n
for(var i=0; i
<search_word_list.length
;
i++)
{\n
for(var i=0; i
<search_word_list.length
;
i++)
{\n
container.highlight(search_word_list[i],
"highlight")\n
document_body.highlight(search_word_list[i],
"highlight")\n
headline.highlight(search_word_list[i],
"highlight")\n
\n
}\n
}\n
}\n
}\n
}\n
}\n
...
@@ -270,7 +273,7 @@ $(document).ready(initialize_form);\n
...
@@ -270,7 +273,7 @@ $(document).ready(initialize_form);\n
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
8
097
</int>
</value>
<value>
<int>
8
256
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
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