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
Vincent Bechu
erp5
Commits
3a8a824e
Commit
3a8a824e
authored
Sep 21, 2018
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] cleanup gadget_officejs_page_export.js
Don't change anything, just make it pass the linter.
parent
839aff04
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
144 deletions
+142
-144
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
...ateItem/web_page_module/gadget_officejs_page_export_js.js
+140
-142
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
...teItem/web_page_module/gadget_officejs_page_export_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.js
View file @
3a8a824e
/*globals window, RSVP, rJS,
loopEventListener, URL, document
FileReader, console, navigator
*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
navigator
,
RSVP
,
rJS
,
jIO
,
URL
)
{
/*globals window, RSVP, rJS,
jIO, loopEventListener, URL, document */
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80
*/
(
function
(
window
,
RSVP
,
rJS
,
jIO
,
URL
)
{
"
use strict
"
;
var
origin_url
=
(
window
.
location
.
origin
+
window
.
location
.
pathname
)
.
replace
(
"
officejs_export/
"
,
""
),
var
origin_url
=
(
window
.
location
.
origin
+
window
.
location
.
pathname
)
.
replace
(
"
officejs_export/
"
,
""
),
application_dict
=
{
"
Text Editor
"
:
{
"
url
"
:
"
officejs_text_editor/
"
,
...
...
@@ -111,7 +111,6 @@
function
exportZip
(
gadget
,
event
)
{
var
j
,
zip_name
,
i
=
0
,
form_result
=
{},
len
=
event
.
target
.
length
,
app
;
...
...
@@ -132,7 +131,7 @@
element
.
appendChild
(
a
);
a
.
style
=
"
display: none
"
;
a
.
href
=
url
;
a
.
download
=
zip_name
?
zip_name
:
default_name
+
"
.zip
"
;
a
.
download
=
zip_name
||
default_name
+
"
.zip
"
;
a
.
click
();
element
.
removeChild
(
a
);
URL
.
revokeObjectURL
(
url
);
...
...
@@ -144,8 +143,7 @@
g
.
props
=
{};
})
.
declareMethod
(
"
fillZip
"
,
function
(
cache_file
,
site_url
,
no_installer
)
{
var
gadget
=
this
,
file_storage
=
jIO
.
createJIO
({
var
file_storage
=
jIO
.
createJIO
({
type
:
"
replicate
"
,
conflict_handling
:
2
,
check_remote_attachment_creation
:
true
,
...
...
@@ -199,4 +197,4 @@
});
});
}(
window
,
navigator
,
RSVP
,
rJS
,
jIO
,
URL
));
}(
window
,
RSVP
,
rJS
,
jIO
,
URL
));
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_export_js.xml
View file @
3a8a824e
...
...
@@ -254,7 +254,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
67.36177.43828.39338
</string>
</value>
<value>
<string>
9
70.26865.57530.41659
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -272,7 +272,7 @@
</tuple>
<state>
<tuple>
<float>
15
26388949.99
</float>
<float>
15
37525773.05
</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