Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
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
PSDI Army
yii2
Commits
6b374529
Commit
6b374529
authored
Dec 25, 2013
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auth clients "Choice" widget javascript advanced.
parent
ba1c5d60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
authchoice.js
extensions/yii/authclient/widgets/assets/authchoice.js
+9
-5
No files found.
extensions/yii/authclient/widgets/assets/authchoice.js
View file @
6b374529
jQuery
(
function
(
$
)
{
var
authChoicePopup
;
$
.
fn
.
authchoice
=
function
(
options
)
{
options
=
$
.
extend
({
popup
:
{
...
...
@@ -17,13 +15,17 @@ jQuery(function($) {
},
options
);
return
this
.
each
(
function
()
{
var
container
=
$
(
this
);
var
$
container
=
$
(
this
);
container
.
find
(
'a'
).
on
(
'click'
,
function
(
e
)
{
$
container
.
find
(
'a'
).
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
if
(
authChoicePopup
!==
undefined
)
{
var
authChoicePopup
=
null
;
if
(
authChoicePopup
=
$container
.
data
(
'authChoicePopup'
))
{
authChoicePopup
.
close
();
}
var
url
=
this
.
href
;
var
popupOptions
=
options
.
popup
;
...
...
@@ -47,6 +49,8 @@ jQuery(function($) {
authChoicePopup
=
window
.
open
(
url
,
'yii_auth_choice'
,
popupFeature
);
authChoicePopup
.
focus
();
$container
.
data
(
'authChoicePopup'
,
authChoicePopup
);
});
});
};
...
...
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