Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
framasite
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
37
Issues
37
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Framasoft
Framasite
framasite
Commits
baddcfc5
Commit
baddcfc5
authored
Oct 19, 2017
by
Thomas Citharel
🌲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add loader on attaching domain
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
c64d4c8b
Pipeline
#26257
passed with stage
in 4 minutes and 52 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/Resources/static/js/index.js
app/Resources/static/js/index.js
+4
-0
web/build/app.js
web/build/app.js
+5
-1
No files found.
app/Resources/static/js/index.js
View file @
baddcfc5
...
...
@@ -13,20 +13,24 @@ $(document).ready(() => {
* Checking domain name
*/
const
domainInput
=
$
(
'
#attach_domain_domainName
'
);
const
checkDNS
=
$
(
'
#check_dns_config
'
);
const
siteToAttach
=
$
(
'
#site_to_attach
'
);
const
success
=
$
(
'
.success
'
);
const
failure
=
$
(
'
.failure
'
);
const
checkDomainToAttach
=
function
(
domain
)
{
checkDNS
.
html
(
'
<span class="glyphicon glyphicon-refresh spinning"></span> Chargement...
'
);
checkDomainAvailability
(
domain
).
then
(()
=>
{
domainInput
.
parent
().
removeClass
(
'
has-error
'
);
domainInput
.
parent
().
addClass
(
'
has-success
'
);
checkDNS
.
html
(
'
Vérifier la configuration
'
);
failure
.
addClass
(
'
hidden
'
);
siteToAttach
.
removeClass
(
'
hidden
'
);
success
.
removeClass
(
'
hidden
'
);
},
()
=>
{
siteToAttach
.
addClass
(
'
hidden
'
);
success
.
addClass
(
'
hidden
'
);
checkDNS
.
html
(
'
Vérifier la configuration
'
);
domainInput
.
parent
().
removeClass
(
'
has-success
'
);
domainInput
.
parent
().
addClass
(
'
has-error
'
);
failure
.
removeClass
(
'
hidden
'
);
...
...
web/build/app.js
View file @
baddcfc5
This diff is collapsed.
Click to expand it.
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