Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
5221300c
Commit
5221300c
authored
May 25, 2016
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Display selected storage in jIO configurator
parent
76c44a5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
...b_page_module/gadget_officejs_page_jio_configurator_js.js
+17
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
View file @
5221300c
...
...
@@ -67,6 +67,9 @@
}
};
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
LOCAL
"
);
})
.
push
(
function
()
{
return
gadget
.
reload
();
});
...
...
@@ -98,12 +101,23 @@
return
gadget
.
updateHeader
({
title
:
"
Storage Configuration
"
}).
push
(
function
()
{
return
gadget
.
getSetting
(
'
jio_storage_description
'
);
}).
push
(
function
(
jio_storage_description
)
{
if
(
jio_storage_description
===
undefined
)
{
return
gadget
.
getSetting
(
'
jio_storage_name
'
);
}).
push
(
function
(
jio_storage_name
)
{
switch
(
jio_storage_name
)
{
case
"
ERP5
"
:
gadget
.
props
.
element
.
querySelector
(
"
form.select-erp5-form button
"
).
classList
.
add
(
"
ui-btn-active
"
);
break
;
case
"
DAV
"
:
gadget
.
props
.
element
.
querySelector
(
"
form.select-dav-form button
"
).
classList
.
add
(
"
ui-btn-active
"
);
break
;
case
"
LOCAL
"
:
gadget
.
props
.
element
.
querySelector
(
"
form.select-local-form button
"
).
classList
.
add
(
"
ui-btn-active
"
);
break
;
default
:
gadget
.
props
.
element
.
querySelector
(
"
.message h3
"
).
appendChild
(
document
.
createTextNode
(
"
Welcome! Please start by choosing a storage:
"
));
gadget
.
props
.
element
.
querySelector
(
"
.message
"
).
setAttribute
(
"
style
"
,
""
);
gadget
.
props
.
element
.
querySelector
(
"
.document-access
"
).
setAttribute
(
"
style
"
,
"
display: none;
"
);
break
;
}
return
;
}).
push
(
function
()
{
...
...
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