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
Levin Zimmermann
erp5
Commits
8f5c527d
Commit
8f5c527d
authored
Jan 27, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: add comments and make jslint happy
parent
0f305253
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
12 deletions
+24
-12
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
+20
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
...PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
+1
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
...athTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
View file @
8f5c527d
...
...
@@ -29,14 +29,24 @@
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
state_dict
=
{
extended_search
:
options
.
extended_search
||
""
,
enable_graphic
:
options
.
enable_graphic
||
false
,
graphic_type
:
options
.
graphic_type
,
jio_key
:
options
.
jio_key
};
return
this
.
changeState
(
state_dict
);
var
gadget
=
this
,
state_dict
=
{
// XXX probably get from url
extended_search
:
options
.
extended_search
||
""
,
// XXX probably get from url
enable_graphic
:
options
.
enable_graphic
||
false
,
// XXX probably get from url
graphic_type
:
options
.
graphic_type
,
jio_key
:
options
.
jio_key
};
return
gadget
.
getUrlParameter
(
"
only_graphic
"
)
.
push
(
function
(
only_graphic
)
{
state_dict
.
only_graphic
=
only_graphic
||
false
;
return
gadget
.
changeState
(
state_dict
);
});
})
.
declareAcquiredMethod
(
"
triggerListboxGraphicSelection
"
,
"
triggerListboxGraphicSelection
"
)
...
...
@@ -59,8 +69,10 @@
continue_full_text_query_search
=
true
;
if
(
gadget
.
state
.
extended_search
)
{
if
(
modification_dict
.
graphic_type
)
{
if
(
modification_dict
.
graphic_type
&&
!
modification_dict
.
only_graphic
)
{
button_graphic
.
classList
.
remove
(
graphic_css_class
);
}
else
if
(
modification_dict
.
only_graphic
)
{
change_button_graphic
.
classList
.
remove
(
graphic_css_class
);
}
// Parse the raw query
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
View file @
8f5c527d
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.508
33.30307.35925
</string>
</value>
<value>
<string>
997.508
87.11419.51200
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
16432
31133.68
</float>
<float>
16432
88555.22
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
8f5c527d
...
...
@@ -24,7 +24,7 @@
var
options
=
{
extended_search
:
result_list
[
0
],
jio_key
:
gadget
.
state
.
jio_key
}
}
;
if
(
result_list
[
1
])
{
options
.
graphic_type
=
result_list
[
1
];
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
View file @
8f5c527d
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
16432
11674.58
</float>
<float>
16432
88573.04
</float>
<string>
UTC
</string>
</tuple>
</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