Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
9fa5771d
Commit
9fa5771d
authored
Feb 06, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RelationField: Support older version of jQuery UI (<= 1.9) for autocompletion.
parent
35ed3fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
product/ERP5Form/MultiRelationField.py
product/ERP5Form/MultiRelationField.py
+10
-3
No files found.
product/ERP5Form/MultiRelationField.py
View file @
9fa5771d
...
@@ -381,9 +381,16 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
...
@@ -381,9 +381,16 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
return
"""
return
"""
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
$("input[name='%s']").ERP5Autocomplete({search_portal_type: %s,
var autocomplete = $("input[name='%s']").ERP5Autocomplete({search_portal_type: %s,
search_catalog_key: "%s"})
search_catalog_key: "%s"});
.data("ui-autocomplete")._renderItem = function(ul, item) {
autocomplete = autocomplete.data("autocomplete") ?
// jQuery UI <= 1.8
autocomplete.data("autocomplete") :
// jQuery UI > 1.8
autocomplete.data("ui-autocomplete");
autocomplete._renderItem = function(ul, item) {
return $("<li></li>").data("item.autocomplete", item)
return $("<li></li>").data("item.autocomplete", item)
.append("<a><b>" +
.append("<a><b>" +
item.label +
item.label +
...
...
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