Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4afda984
Commit
4afda984
authored
Oct 24, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed multiple file picker bug; removed 'fakepath' from uploading file name
parent
cf4f1118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
cms/static/js/base.js
+1
-2
No files found.
cms/static/js/base.js
View file @
4afda984
...
@@ -431,7 +431,6 @@ function showUploadModal(e) {
...
@@ -431,7 +431,6 @@ function showUploadModal(e) {
e
.
preventDefault
();
e
.
preventDefault
();
$modal
=
$
(
'.upload-modal'
).
show
();
$modal
=
$
(
'.upload-modal'
).
show
();
$
(
'.file-input'
).
bind
(
'change'
,
startUpload
);
$
(
'.file-input'
).
bind
(
'change'
,
startUpload
);
$
(
'.upload-modal .choose-file-button'
).
bind
(
'click'
,
showFileSelectionMenu
);
$modalCover
.
show
();
$modalCover
.
show
();
}
}
...
@@ -442,7 +441,7 @@ function showFileSelectionMenu(e) {
...
@@ -442,7 +441,7 @@ function showFileSelectionMenu(e) {
function
startUpload
(
e
)
{
function
startUpload
(
e
)
{
$
(
'.upload-modal h1'
).
html
(
'Uploading…'
);
$
(
'.upload-modal h1'
).
html
(
'Uploading…'
);
$
(
'.upload-modal .file-name'
).
html
(
$
(
'.file-input'
).
val
());
$
(
'.upload-modal .file-name'
).
html
(
$
(
'.file-input'
).
val
()
.
replace
(
/.+
\\
/g
,
''
)
);
$
(
'.upload-modal .file-chooser'
).
ajaxSubmit
({
$
(
'.upload-modal .file-chooser'
).
ajaxSubmit
({
beforeSend
:
resetUploadBar
,
beforeSend
:
resetUploadBar
,
uploadProgress
:
showUploadFeedback
,
uploadProgress
:
showUploadFeedback
,
...
...
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