Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
5a1fae4c
Commit
5a1fae4c
authored
May 15, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug: buffer
parent
7506587b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ext/plugins/hellojs/hellojs.js
ext/plugins/hellojs/hellojs.js
+2
-2
ext/plugins/jspdf/jspdf.js
ext/plugins/jspdf/jspdf.js
+3
-1
No files found.
ext/plugins/hellojs/hellojs.js
View file @
5a1fae4c
...
@@ -2453,7 +2453,7 @@ function dataURItoBlob(dataURI) {
...
@@ -2453,7 +2453,7 @@ function dataURItoBlob(dataURI) {
for
(
var
i
=
0
;
i
<
binary
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
binary
.
length
;
i
++
)
{
array
.
push
(
binary
.
charCodeAt
(
i
));
array
.
push
(
binary
.
charCodeAt
(
i
));
}
}
return
new
Blob
([
new
Uint8Array
(
array
)],
{
type
:
m
[
1
]});
return
new
Blob
([
new
Uint8Array
(
array
)
.
buffer
],
{
type
:
m
[
1
]});
}
}
...
@@ -4381,7 +4381,7 @@ function dataURItoBlob(dataURI) {
...
@@ -4381,7 +4381,7 @@ function dataURItoBlob(dataURI) {
for
(
var
i
=
0
;
i
<
binary
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
binary
.
length
;
i
++
)
{
array
.
push
(
binary
.
charCodeAt
(
i
));
array
.
push
(
binary
.
charCodeAt
(
i
));
}
}
return
new
Blob
([
new
Uint8Array
(
array
)],
{
type
:
m
[
1
]});
return
new
Blob
([
new
Uint8Array
(
array
)
.
buffer
],
{
type
:
m
[
1
]});
}
}
hello
.
init
({
hello
.
init
({
...
...
ext/plugins/jspdf/jspdf.js
View file @
5a1fae4c
...
@@ -1005,7 +1005,9 @@ PubSub implementation
...
@@ -1005,7 +1005,9 @@ PubSub implementation
array
[
i
]
=
data
.
charCodeAt
(
i
);
array
[
i
]
=
data
.
charCodeAt
(
i
);
}
}
blob
=
new
Blob
([
array
],
{
type
:
"
application/pdf
"
});
// here sven !!!
//blob = new Blob([array], {type: "application/pdf"});
blob
=
new
Blob
([
array
.
buffer
],
{
type
:
"
application/pdf
"
});
saveAs
(
blob
,
options
);
saveAs
(
blob
,
options
);
break
;
break
;
...
...
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