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
1
Issues
1
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
Roque
erp5
Commits
cd41ab57
Commit
cd41ab57
authored
Jul 16, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: fixing bug in listbox buttons hiding
parent
60b987de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
cd41ab57
...
@@ -660,7 +660,7 @@
...
@@ -660,7 +660,7 @@
})
})
.
push
(
function
(
hide_listbox_buttons
)
{
.
push
(
function
(
hide_listbox_buttons
)
{
// XXX Disable select and clipboard functionalities on migrated apps: 'uid'-workaround made for renderjs UI doesn't work on officejs
// XXX Disable select and clipboard functionalities on migrated apps: 'uid'-workaround made for renderjs UI doesn't work on officejs
hide_buttons
=
((
hide_listbox_buttons
!==
undefined
&&
hide_listbox_buttons
==
"
1
"
)
?
false
:
tru
e
);
hide_buttons
=
((
hide_listbox_buttons
!==
undefined
&&
hide_listbox_buttons
==
"
1
"
)
?
true
:
fals
e
);
return
RSVP
.
all
([
return
RSVP
.
all
([
gadget
.
getUrlForList
(
url_for_option_list
),
gadget
.
getUrlForList
(
url_for_option_list
),
is_sortable_list
,
is_sortable_list
,
...
@@ -779,7 +779,7 @@
...
@@ -779,7 +779,7 @@
button_element
.
type
=
'
button
'
;
button_element
.
type
=
'
button
'
;
button_element
.
setAttribute
(
'
class
'
,
'
ui-icon-list-ul ui-btn-icon-left
'
+
gadget
.
state
.
hide_class
);
button_element
.
setAttribute
(
'
class
'
,
'
ui-icon-list-ul ui-btn-icon-left
'
+
gadget
.
state
.
hide_class
);
button_element
.
textContent
=
translation_list
[
5
];
button_element
.
textContent
=
translation_list
[
5
];
if
(
hide_buttons
&&
gadget
.
state
.
hide_class
!==
"
ui-disabled
"
)
{
if
(
!
hide_buttons
)
{
div_element
.
appendChild
(
button_element
);
div_element
.
appendChild
(
button_element
);
}
}
...
@@ -792,7 +792,7 @@
...
@@ -792,7 +792,7 @@
button_element
.
type
=
'
button
'
;
button_element
.
type
=
'
button
'
;
button_element
.
setAttribute
(
'
class
'
,
'
ui-icon-check-square-o ui-btn-icon-left
'
+
gadget
.
state
.
hide_class
);
button_element
.
setAttribute
(
'
class
'
,
'
ui-icon-check-square-o ui-btn-icon-left
'
+
gadget
.
state
.
hide_class
);
button_element
.
textContent
=
translation_list
[
1
];
button_element
.
textContent
=
translation_list
[
1
];
if
(
hide_buttons
&&
gadget
.
state
.
hide_class
!==
"
ui-disabled
"
)
{
if
(
!
hide_buttons
)
{
div_element
.
appendChild
(
button_element
);
div_element
.
appendChild
(
button_element
);
}
}
}
}
...
...
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