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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9b851c37
Commit
9b851c37
authored
Jan 19, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
romain_dev: forum jslint
parent
4283fd2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
68 deletions
+4
-68
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
...n_dev/PathTemplateItem/web_page_module/romain_forum_js.js
+2
-66
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
..._dev/PathTemplateItem/web_page_module/romain_forum_js.xml
+2
-2
No files found.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
View file @
9b851c37
...
@@ -250,72 +250,7 @@
...
@@ -250,72 +250,7 @@
}
}
function
renderDiscussionPost
(
gadget
,
must_declare
,
jio_key
)
{
/*
return
loadChildGadget
(
gadget
,
"
gadget_erp5_pt_form_view.html
"
,
must_declare
,
function
(
form_gadget
)
{
var
thread_info_dict
;
return
gadget
.
jio_allDocs
({
select_list
:
[
'
asStrippedHTML
'
,
'
title
'
],
query
:
Query
.
objectToSearchText
(
new
SimpleQuery
({
key
:
"
relative_url
"
,
operator
:
"
=
"
,
type
:
"
simple
"
,
value
:
jio_key
})
),
limit
:
[
0
,
1
]
})
.
push
(
function
(
result_list
)
{
// XXX implement pseudo getResultValue
thread_info_dict
=
result_list
.
data
.
rows
[
0
].
value
;
var
group_list
=
[],
field_dict
=
{};
field_dict
.
content
=
{
"
editable
"
:
0
,
"
key
"
:
"
content
"
,
"
default
"
:
thread_info_dict
.
asStrippedHTML
,
"
type
"
:
"
EditorField
"
};
group_list
.
push
([
"
bottom
"
,
[[
"
content
"
]]
]);
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
field_dict
},
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
}
}
},
form_definition
:
{
group_list
:
group_list
}
});
})
.
push
(
function
()
{
return
gadget
.
getUrlFor
({
command
:
'
history_previous
'
});
})
.
push
(
function
(
url
)
{
return
gadget
.
updateHeader
({
page_title
:
'
Post:
'
+
thread_info_dict
.
title
,
page_icon
:
'
comment
'
,
front_url
:
url
});
});
});
}
function createMultipleSimpleOrQuery(key, value_list) {
function createMultipleSimpleOrQuery(key, value_list) {
var i,
var i,
query_list = [];
query_list = [];
...
@@ -333,6 +268,7 @@
...
@@ -333,6 +268,7 @@
type: "complex"
type: "complex"
});
});
}
}
*/
rJS
(
window
)
rJS
(
window
)
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
View file @
9b851c37
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.2
7664.22728.10274
</string>
</value>
<value>
<string>
989.2
8652.26663.41830
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
161
0988520.24
</float>
<float>
161
1047820.37
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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