Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Authy for WP
Commits
f5620dc1
Commit
f5620dc1
authored
Dec 03, 2012
by
Erick Hitter
Browse files
Display loading spinners in user modal when requests are pending.
Fixes #6.
parent
11efe4d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
authy-wp.php
View file @
f5620dc1
...
...
@@ -721,11 +721,26 @@ class Authy_WP {
table
th
label
{
font-size
:
12px
;
}
.submit
>
*
{
float
:
left
;
}
</style>
<script
type=
"text/javascript"
>
(
function
(
$
){
$
(
document
).
ready
(
function
()
{
$
(
'
.authy-wp-user-modal p.submit
'
).
append
(
'
<span class="spinner" style="display:none;"></span>
'
);
$
(
'
.authy-wp-user-modal p.submit .button
'
).
on
(
'
click.submitted
'
,
function
()
{
$
(
this
).
siblings
(
'
.spinner
'
).
show
();
}
);
}
);
})(
jQuery
);
</script>
</head>
<?php
// iframe body
?>
<body
<?php
body_class
(
'wp-admin wp-core-ui'
);
?>
>
?>
<body
<?php
body_class
(
'wp-admin wp-core-ui
authy-wp-user-modal
'
);
?>
>
<div
class=
"wrap"
>
<h2>
Authy for WP
</h2>
...
...
Write
Preview
Supports
Markdown
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