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
9eb57864
Commit
9eb57864
authored
Jul 18, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add back automatique after uploaded
parent
525e180d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
dev/audioplayer_control/index.html
dev/audioplayer_control/index.html
+1
-1
dev/audioplayer_upload/upload.js
dev/audioplayer_upload/upload.js
+12
-1
src/audioplayer_control/index.html
src/audioplayer_control/index.html
+1
-1
src/audioplayer_upload/upload.js
src/audioplayer_upload/upload.js
+14
-1
No files found.
dev/audioplayer_control/index.html
View file @
9eb57864
...
...
@@ -19,7 +19,7 @@
<body>
<progress
class=
"bar"
style=
"width: 100%;"
>
<progress
class=
"bar"
>
</progress>
<div
class=
"box"
style=
"display:none;position:absolute;"
>
...
...
dev/audioplayer_upload/upload.js
View file @
9eb57864
...
...
@@ -4,6 +4,17 @@
(
function
(
window
,
jIO
,
rJS
)
{
"
use strict
"
;
var
gk
=
rJS
(
window
);
function
exit
(
g
)
{
return
RSVP
.
Queue
().
push
(
function
()
{
return
g
.
plEnablePage
();
}).
push
(
function
()
{
return
g
.
displayThisPage
({
page
:
"
playlist
"
});
}).
push
(
function
(
url
)
{
window
.
location
=
url
;
});
}
gk
.
declareAcquiredMethod
(
"
jio_post
"
,
"
jio_post
"
).
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
).
declareAcquiredMethod
(
"
pleaseRedirectMyHash
"
,
"
pleaseRedirectMyHash
"
).
declareAcquiredMethod
(
"
displayThisPage
"
,
"
displayThisPage
"
).
declareAcquiredMethod
(
"
displayThisTitle
"
,
"
displayThisTitle
"
).
declareAcquiredMethod
(
"
plEnablePage
"
,
"
plEnablePage
"
).
declareAcquiredMethod
(
"
plDisablePage
"
,
"
plDisablePage
"
).
declareMethod
(
"
render
"
,
function
()
{
return
this
.
displayThisTitle
(
"
upload
"
);
}).
declareMethod
(
"
startService
"
,
function
()
{
...
...
@@ -30,7 +41,7 @@
uploaded
+=
1
;
info_context
.
innerHTML
+=
"
<li>
"
+
input_context
.
files
[
uploaded
-
1
].
name
+
"
"
+
uploaded
+
"
/
"
+
length
+
"
</li>
"
;
if
(
uploaded
===
length
)
{
return
g
.
plEnablePage
(
);
return
exit
(
g
);
}
queue
.
push
(
post
);
}).
fail
(
function
(
error
)
{
...
...
src/audioplayer_control/index.html
View file @
9eb57864
...
...
@@ -19,7 +19,7 @@
<body>
<progress
class=
"bar"
style=
"width: 100%;"
>
<progress
class=
"bar"
>
</progress>
<div
class=
"box"
style=
"display:none;position:absolute;"
>
...
...
src/audioplayer_upload/upload.js
View file @
9eb57864
...
...
@@ -4,6 +4,19 @@
(
function
(
window
,
jIO
,
rJS
)
{
"
use strict
"
;
var
gk
=
rJS
(
window
);
function
exit
(
g
)
{
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
g
.
plEnablePage
();
})
.
push
(
function
()
{
return
g
.
displayThisPage
({
page
:
"
playlist
"
});
})
.
push
(
function
(
url
)
{
window
.
location
=
url
;
});
}
gk
.
declareAcquiredMethod
(
"
jio_post
"
,
"
jio_post
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
.
declareAcquiredMethod
(
"
pleaseRedirectMyHash
"
,
"
pleaseRedirectMyHash
"
)
...
...
@@ -49,7 +62,7 @@
input_context
.
files
[
uploaded
-
1
].
name
+
"
"
+
uploaded
+
"
/
"
+
length
+
"
</li>
"
;
if
(
uploaded
===
length
)
{
return
g
.
plEnablePage
(
);
return
exit
(
g
);
}
queue
.
push
(
post
);
})
...
...
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