Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
48212e10
Commit
48212e10
authored
Nov 26, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attribute prefixed by data-* for HTML5 Doctype
parent
c4d1a523
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_gadgetfield.js.xml
...tem/portal_skins/erp5_xhtml_style/erp5_gadgetfield.js.xml
+4
-4
product/ERP5Form/GadgetField.py
product/ERP5Form/GadgetField.py
+2
-2
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_gadgetfield.js.xml
View file @
48212e10
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts1
6413519.07
</string>
</value>
<value>
<string>
ts1
7000485.95
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -101,8 +101,8 @@
list.push(g.getDeclaredGadget(scope));\n
tmp.sandbox = list_gadget[i].getAttribute("data-gadget-sandbox");\n
tmp.key = scope;\n
tmp.editable = list_gadget[i].getAttribute("editable");\n
tmp.value = list_gadget[i].getAttribute("value");\n
tmp.editable = list_gadget[i].getAttribute("
data-gadget-
editable");\n
tmp.value = list_gadget[i].getAttribute("
data-gadget-
value");\n
gadget_attributes.push(tmp);\n
}\n
}\n
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
62
33
</int>
</value>
<value>
<int>
62
57
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
product/ERP5Form/GadgetField.py
View file @
48212e10
...
...
@@ -32,9 +32,9 @@ class GadgetWidget(Widget.TextWidget):
kw
[
'data-gadget-url'
]
=
field
.
get_value
(
'gadget_url'
)
kw
[
'data-gadget-scope'
]
=
field
.
id
if
key
is
not
None
:
kw
[
'editable'
]
=
key
kw
[
'
data-gadget-
editable'
]
=
key
kw
[
'class'
]
=
"gadget"
kw
[
'value'
]
=
value
kw
[
'
data-gadget-
value'
]
=
value
kw
[
'data-gadget-sandbox'
]
=
field
.
get_value
(
'js_sandbox'
)
return
Widget
.
render_element
(
"div"
,
**
kw
)
...
...
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