Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
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
Romain Courteaud
erp5_rtl_support
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 @@
...
@@ -67,6 +67,9 @@
}
}
};
};
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
LOCAL
"
);
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
reload
();
return
gadget
.
reload
();
});
});
...
@@ -98,12 +101,23 @@
...
@@ -98,12 +101,23 @@
return
gadget
.
updateHeader
({
return
gadget
.
updateHeader
({
title
:
"
Storage Configuration
"
title
:
"
Storage Configuration
"
}).
push
(
function
()
{
}).
push
(
function
()
{
return
gadget
.
getSetting
(
'
jio_storage_description
'
);
return
gadget
.
getSetting
(
'
jio_storage_name
'
);
}).
push
(
function
(
jio_storage_description
)
{
}).
push
(
function
(
jio_storage_name
)
{
if
(
jio_storage_description
===
undefined
)
{
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 h3
"
).
appendChild
(
document
.
createTextNode
(
"
Welcome! Please start by choosing a storage:
"
));
gadget
.
props
.
element
.
querySelector
(
"
.message
"
).
setAttribute
(
"
style
"
,
""
);
gadget
.
props
.
element
.
querySelector
(
"
.message
"
).
setAttribute
(
"
style
"
,
""
);
gadget
.
props
.
element
.
querySelector
(
"
.document-access
"
).
setAttribute
(
"
style
"
,
"
display: none;
"
);
gadget
.
props
.
element
.
querySelector
(
"
.document-access
"
).
setAttribute
(
"
style
"
,
"
display: none;
"
);
break
;
}
}
return
;
return
;
}).
push
(
function
()
{
}).
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