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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
7dbc1db4
Commit
7dbc1db4
authored
Sep 17, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: highlight current jump action
parent
718a229c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
8 deletions
+31
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_jump_js.js
...plateItem/web_page_module/rjs_gadget_erp5_page_jump_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_jump_js.xml
...lateItem/web_page_module/rjs_gadget_erp5_page_jump_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
...hTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.js
...teItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.js
+2
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.xml
+2
-2
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpToForm.zpt
...s/renderjs_ui_page_templates_zuite/testFormJumpToForm.zpt
+6
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpToSelf.zpt
...s/renderjs_ui_page_templates_zuite/testFormJumpToSelf.zpt
+6
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpTwoDocument.zpt
...derjs_ui_page_templates_zuite/testFormJumpTwoDocument.zpt
+7
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_jump_js.js
View file @
7dbc1db4
...
@@ -48,7 +48,8 @@
...
@@ -48,7 +48,8 @@
erp5_document
:
erp5_document
,
erp5_document
:
erp5_document
,
editable
:
true
,
editable
:
true
,
jio_key
:
options
.
jio_key
,
jio_key
:
options
.
jio_key
,
view
:
options
.
view
view
:
options
.
view
,
jump_view
:
options
.
jump_view
})
})
]);
]);
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_jump_js.xml
View file @
7dbc1db4
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
1.346.21600.55296
</string>
</value>
<value>
<string>
98
6.32404.49746.11571
</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>
1
578410546.67
</float>
<float>
1
600354981.16
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
View file @
7dbc1db4
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
var
erp5_document
=
options
.
erp5_document
,
var
erp5_document
=
options
.
erp5_document
,
jio_key
=
options
.
jio_key
,
jio_key
=
options
.
jio_key
,
view
=
options
.
view
,
view
=
options
.
view
,
jump_view
=
options
.
jump_view
,
visible
=
options
.
visible
,
visible
=
options
.
visible
,
display_workflow_list
,
display_workflow_list
,
context
=
this
,
context
=
this
,
...
@@ -102,7 +103,7 @@
...
@@ -102,7 +103,7 @@
action_list
[
i
].
class_name
=
action_list
[
i
].
href
===
view
?
'
active
'
:
''
;
action_list
[
i
].
class_name
=
action_list
[
i
].
href
===
view
?
'
active
'
:
''
;
}
}
for
(
i
=
0
;
i
<
jump_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
jump_list
.
length
;
i
+=
1
)
{
jump_list
[
i
].
class_name
=
jump_list
[
i
].
href
===
view
?
'
active
'
:
''
;
jump_list
[
i
].
class_name
=
((
jump_list
[
i
].
href
===
jump_view
)
||
(
jump_list
[
i
].
href
===
view
))
?
'
active
'
:
''
;
}
}
}
}
// Prevent has much as possible to modify the DOM panel
// Prevent has much as possible to modify the DOM panel
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
View file @
7dbc1db4
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
986.
32404.49746.11571
</string>
</value>
<value>
<string>
986.
44167.44817.34355
</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>
160035
2235.33
</float>
<float>
160035
5451.8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.js
View file @
7dbc1db4
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
result_dict
.
jio_key
=
gadget
.
state
.
jio_key
;
result_dict
.
jio_key
=
gadget
.
state
.
jio_key
;
result_dict
.
view
=
result
.
view
;
result_dict
.
view
=
result
.
view
;
result_dict
.
page
=
"
jump
"
;
result_dict
.
page
=
"
jump
"
;
result_dict
.
jump_view
=
gadget
.
state
.
view
;
}
}
}
else
{
}
else
{
...
@@ -62,6 +63,7 @@
...
@@ -62,6 +63,7 @@
result_dict
.
jio_key
=
gadget
.
state
.
jio_key
;
result_dict
.
jio_key
=
gadget
.
state
.
jio_key
;
result_dict
.
view
=
result
.
view
;
result_dict
.
view
=
result
.
view
;
result_dict
.
page
=
"
jump
"
;
result_dict
.
page
=
"
jump
"
;
result_dict
.
jump_view
=
gadget
.
state
.
view
;
}
else
{
}
else
{
command
=
'
push_history
'
;
command
=
'
push_history
'
;
result_dict
.
jio_key
=
result
.
jio_key
;
result_dict
.
jio_key
=
result
.
jio_key
;
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_jump_js.xml
View file @
7dbc1db4
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
5.40438.63970.10154
</string>
</value>
<value>
<string>
98
6.49476.10141.22340
</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>
1
596199151.01
</float>
<float>
1
600695820.08
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpToForm.zpt
View file @
7dbc1db4
...
@@ -63,6 +63,12 @@
...
@@ -63,6 +63,12 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[@data-gadget-scope='panel']//a[text()='Related Form' and contains(@class, 'active')]
</td>
<td></td>
</tr>
<!-- Check the history link -->
<!-- Check the history link -->
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpToSelf.zpt
View file @
7dbc1db4
...
@@ -65,6 +65,12 @@
...
@@ -65,6 +65,12 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[@data-gadget-scope='panel']//a[text()='Related Self' and contains(@class, 'active')]
</td>
<td></td>
</tr>
<!-- Check the history link -->
<!-- Check the history link -->
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormJumpTwoDocument.zpt
View file @
7dbc1db4
...
@@ -50,6 +50,13 @@
...
@@ -50,6 +50,13 @@
<td>
//div[@data-gadget-scope='panel']//a[text()='Metadata' and not(contains(@class, 'active'))]
</td>
<td>
//div[@data-gadget-scope='panel']//a[text()='Metadata' and not(contains(@class, 'active'))]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//div[@data-gadget-scope='panel']//a[text()='Related Bar' and contains(@class, 'active')]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[@data-gadget-scope='header']//button[text()='Filter']
</td>
<td>
//div[@data-gadget-scope='header']//button[text()='Filter']
</td>
...
...
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