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 @@
...
@@ -29,14 +29,24 @@
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
// declared methods
// declared methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
state_dict
=
{
var
gadget
=
this
,
extended_search
:
options
.
extended_search
||
""
,
state_dict
=
{
enable_graphic
:
options
.
enable_graphic
||
false
,
// XXX probably get from url
graphic_type
:
options
.
graphic_type
,
extended_search
:
options
.
extended_search
||
""
,
jio_key
:
options
.
jio_key
// XXX probably get from url
};
enable_graphic
:
options
.
enable_graphic
||
false
,
return
this
.
changeState
(
state_dict
);
// 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
"
,
.
declareAcquiredMethod
(
"
triggerListboxGraphicSelection
"
,
"
triggerListboxGraphicSelection
"
)
"
triggerListboxGraphicSelection
"
)
...
@@ -59,8 +69,10 @@
...
@@ -59,8 +69,10 @@
continue_full_text_query_search
=
true
;
continue_full_text_query_search
=
true
;
if
(
gadget
.
state
.
extended_search
)
{
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
);
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
// 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 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16432
31133.68
</float>
<float>
16432
88555.22
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
8f5c527d
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
var
options
=
{
var
options
=
{
extended_search
:
result_list
[
0
],
extended_search
:
result_list
[
0
],
jio_key
:
gadget
.
state
.
jio_key
jio_key
:
gadget
.
state
.
jio_key
}
}
;
if
(
result_list
[
1
])
{
if
(
result_list
[
1
])
{
options
.
graphic_type
=
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 @@
...
@@ -264,7 +264,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16432
11674.58
</float>
<float>
16432
88573.04
</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