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
Labels
Merge Requests
144
Merge Requests
144
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f319e070
Commit
f319e070
authored
Jan 31, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: import/export: disable button on import and redirect on finish
parent
acc3e142
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/codeeditor_gadget_officejs_page_import_export_js.js
...odule/codeeditor_gadget_officejs_page_import_export_js.js
+8
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/codeeditor_gadget_officejs_page_import_export_js.xml
...dule/codeeditor_gadget_officejs_page_import_export_js.xml
+3
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/codeeditor_gadget_officejs_page_import_export_js.js
View file @
f319e070
...
...
@@ -128,10 +128,13 @@
}
function
importAllDocs
(
gadget
)
{
var
files
=
gadget
.
props
.
files_preloaded_for_import
;
var
files
=
gadget
.
props
.
files_preloaded_for_import
,
element
=
gadget
.
props
.
element
;
if
(
gadget
.
props
.
files_preloaded_for_import
.
lenght
===
0
)
{
return
;
}
element
.
querySelector
(
"
form.import-form button
"
).
disabled
=
true
;
element
.
querySelector
(
"
form.import-form input
"
).
disabled
=
true
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
getGlobalSetting
(
'
document_version
'
);
...
...
@@ -177,6 +180,9 @@
return
gadget
.
jio_put
(
file
.
id
,
obj
);
});
}));
})
.
push
(
function
(
result
)
{
return
gadget
.
redirect
({});
});
}
...
...
@@ -202,6 +208,7 @@
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_put
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareMethod
(
"
allDocsArchived
"
,
function
(
opt
)
{
var
gadget
=
this
,
file_storage
=
jIO
.
createJIO
(
opt
);
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/codeeditor_gadget_officejs_page_import_export_js.xml
View file @
f319e070
...
...
@@ -95,7 +95,7 @@
</item>
<item>
<key>
<string>
revision
</string>
</key>
<value>
<string>
2
3
</string>
</value>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.63546.2887.36539
</string>
</value>
<value>
<string>
95
7.565.52763.13875
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
1485
715004.23
</float>
<float>
1485
883064.26
</float>
<string>
UTC
</string>
</tuple>
</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