Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f40be5ae
authored
Aug 04, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add spinning icon sooner for store upload
parent
9183c066
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
circle/dashboard/static/dashboard/store.js
+1
-1
No files found.
circle/dashboard/static/dashboard/store.js
View file @
f40be5ae
...
@@ -22,9 +22,9 @@ $(function() {
...
@@ -22,9 +22,9 @@ $(function() {
* then changes the form's action attr before sending the form itself
* then changes the form's action attr before sending the form itself
*/
*/
$
(
"#store-list-container"
).
on
(
"click"
,
'#store-upload-form button[type="submit"]'
,
function
()
{
$
(
"#store-list-container"
).
on
(
"click"
,
'#store-upload-form button[type="submit"]'
,
function
()
{
$
(
'#store-upload-form button[type="submit"] i'
).
addClass
(
"fa-spinner fa-spin"
);
var
current_dir
=
$
(
"#store-upload-form"
).
find
(
'[name="current_dir"]'
).
val
();
var
current_dir
=
$
(
"#store-upload-form"
).
find
(
'[name="current_dir"]'
).
val
();
$
.
get
(
$
(
"#store-upload-form"
).
data
(
"action"
)
+
"?current_dir="
+
current_dir
,
function
(
result
)
{
$
.
get
(
$
(
"#store-upload-form"
).
data
(
"action"
)
+
"?current_dir="
+
current_dir
,
function
(
result
)
{
$
(
'#store-upload-form button[type="submit"] i'
).
addClass
(
"fa-spinner fa-spin"
);
$
(
"#store-upload-form"
).
get
(
0
).
setAttribute
(
"action"
,
result
[
'url'
]);
$
(
"#store-upload-form"
).
get
(
0
).
setAttribute
(
"action"
,
result
[
'url'
]);
$
(
"#store-upload-form"
).
submit
();
$
(
"#store-upload-form"
).
submit
();
});
});
...
...
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