Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
Boris Kocherov
sdkjs
Commits
074acf85
Commit
074acf85
authored
Aug 16, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error in openDocumentFromZip in case of open xls, ods, csv
parent
3253a5ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
cell/api.js
cell/api.js
+10
-8
No files found.
cell/api.js
View file @
074acf85
...
@@ -962,8 +962,8 @@ var editor;
...
@@ -962,8 +962,8 @@ var editor;
AscCommon
.
PasteElementsId
.
ELEMENT_DISPAY_STYLE
=
"
none
"
;
AscCommon
.
PasteElementsId
.
ELEMENT_DISPAY_STYLE
=
"
none
"
;
}
}
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
if
(
window
.
console
&&
window
.
console
.
log
)
{
if
(
window
.
console
&&
window
.
console
.
error
)
{
window
.
console
.
log
(
err
);
window
.
console
.
error
(
err
);
}
}
t
.
sendEvent
(
'
asc_onError
'
,
c_oAscError
.
ID
.
Unknown
,
c_oAscError
.
Level
.
Critical
);
t
.
sendEvent
(
'
asc_onError
'
,
c_oAscError
.
ID
.
Unknown
,
c_oAscError
.
Level
.
Critical
);
});
});
...
@@ -1057,14 +1057,16 @@ var editor;
...
@@ -1057,14 +1057,16 @@ var editor;
});
});
},
Promise
.
resolve
());
},
Promise
.
resolve
());
}
}
});
}).
catch
(
function
(
err
)
{
Promise
.
all
([
loadAsyncFile
,
Asc
.
ReadDefTableStyles
(
wb
)]).
then
(
function
()
{
//don't show error.(case of open xls, ods, csv)
if
(
window
.
console
&&
window
.
console
.
error
)
{
window
.
console
.
error
(
err
);
}
}).
then
(
function
(
err
)
{
//clean up
//clean up
openXml
.
SaxParserDataTransfer
=
{};
openXml
.
SaxParserDataTransfer
=
{};
resolve
();
return
Asc
.
ReadDefTableStyles
(
wb
);
}).
catch
(
function
(
err
)
{
}).
then
(
resolve
,
reject
);
reject
(
err
);
});
}
}
});
});
});
});
...
...
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