Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
cf6ea753
Commit
cf6ea753
authored
Aug 16, 2014
by
Tobias Reich
Browse files
Removed unused functions from the old uplaod
parent
4d6c2b2c
Changes
1
Show whitespace changes
Inline
Side-by-side
assets/js/upload.js
View file @
cf6ea753
...
...
@@ -16,26 +16,6 @@ upload = {
},
setIcon
:
function
(
icon
)
{
$
(
"
.upload_message a
"
).
remove
();
$
(
"
.upload_message
"
).
prepend
(
"
<a class='icon-
"
+
icon
+
"
'></a>
"
);
},
setProgress
:
function
(
progress
)
{
$
(
"
.progressbar div
"
).
css
(
"
width
"
,
progress
+
"
%
"
);
},
setText
:
function
(
text
)
{
$
(
"
.progressbar
"
).
remove
();
$
(
"
.upload_message
"
).
append
(
"
<p>
"
+
text
+
"
</p>
"
);
},
notify
:
function
(
title
,
text
)
{
var
popup
;
...
...
@@ -404,7 +384,6 @@ upload = {
if
(
force
===
true
)
{
$
(
"
.upload_overlay
"
).
remove
();
}
else
{
upload
.
setProgress
(
100
);
$
(
"
.upload_overlay
"
).
removeClass
(
"
fadeIn
"
).
css
(
"
opacity
"
,
0
);
setTimeout
(
function
()
{
$
(
"
.upload_overlay
"
).
remove
()
},
300
);
}
...
...
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