Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
officejs
Commits
b27d7472
Commit
b27d7472
authored
Jul 18, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add type parameter in httpstorage
parent
a978cf85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
dev/audioplayer_bridge/audiogadget.js
dev/audioplayer_bridge/audiogadget.js
+2
-1
dev/lib/jio.js
dev/lib/jio.js
+11
-2
src/audioplayer_bridge/audiogadget.js
src/audioplayer_bridge/audiogadget.js
+2
-1
No files found.
dev/audioplayer_bridge/audiogadget.js
View file @
b27d7472
...
...
@@ -28,7 +28,8 @@
if
(
result
.
data
.
rows
[
i
].
id
===
encodeURI
(
param
.
_id
)
||
result
.
data
.
rows
[
i
].
id
===
param
.
_id
)
{
return
{
data
:
{
title
:
result
.
data
.
rows
[
i
].
doc
.
title
title
:
result
.
data
.
rows
[
i
].
doc
.
title
,
type
:
result
.
data
.
rows
[
i
].
doc
.
type
}
};
}
...
...
dev/lib/jio.js
View file @
b27d7472
...
...
@@ -9961,6 +9961,7 @@ decodeURI, encodeURI*/
result
,
index
,
name
,
type
,
that
=
this
;
return
new
Promise
(
function
(
resolve
,
reject
)
{
xml
.
onerror
=
function
(
e
)
{
...
...
@@ -9981,10 +9982,17 @@ decodeURI, encodeURI*/
if
(
url
.
indexOf
(
"
.mp3
"
)
===
-
1
&&
url
.
indexOf
(
"
.mp4
"
)
===
-
1
)
{
result
=
result
.
substring
(
index
+
2
);
}
else
{
if
(
url
.
indexOf
(
"
.mp4
"
)
!==
-
1
)
{
type
=
"
video/mp4
"
;
}
else
{
type
=
"
audio/mp3
"
}
name
=
decodeURI
(
url
);
rows
.
push
({
"
id
"
:
url
,
"
doc
"
:
{
"
title
"
:
name
}
"
doc
"
:
{
"
title
"
:
name
,
"
type
"
:
type
}
});
}
}
...
...
@@ -10011,7 +10019,8 @@ decodeURI, encodeURI*/
for
(
i
=
0
;
i
<
length
;
i
+=
1
)
{
if
((
result
.
data
.
rows
[
i
].
id
===
encodeURI
(
param
.
_id
))
||
(
result
.
data
.
rows
[
i
].
id
===
param
.
_id
))
{
//xxx
return
({
"
data
"
:
{
"
title
"
:
result
.
data
.
rows
[
i
].
doc
.
title
}});
return
({
"
data
"
:
{
"
title
"
:
result
.
data
.
rows
[
i
].
doc
.
title
,
"
type
"
:
result
.
data
.
rows
[
i
].
doc
.
type
}});
}
}
})
...
...
src/audioplayer_bridge/audiogadget.js
View file @
b27d7472
...
...
@@ -38,7 +38,8 @@
for
(
i
=
0
;
i
<
length
;
i
+=
1
)
{
if
((
result
.
data
.
rows
[
i
].
id
===
encodeURI
(
param
.
_id
))
||
(
result
.
data
.
rows
[
i
].
id
===
param
.
_id
))
{
return
({
"
data
"
:
{
"
title
"
:
result
.
data
.
rows
[
i
].
doc
.
title
}});
return
({
"
data
"
:
{
"
title
"
:
result
.
data
.
rows
[
i
].
doc
.
title
,
"
type
"
:
result
.
data
.
rows
[
i
].
doc
.
type
}});
}
}
}
...
...
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