Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5966021
foundation.alerts.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
foundation.alerts.js
View Options
/*jslint unparam: true, browser: true, indent: 2 */
;(
function
(
$
,
window
,
document
,
undefined
)
{
'use strict'
;
Foundation
.
libs
.
alerts
=
{
name
:
'alerts'
,
version
:
'4.0.0'
,
settings
:
{
speed
:
300
,
// fade out speed
callback
:
function
(){}
},
init
:
function
(
scope
,
method
,
options
)
{
this
.
scope
=
scope
||
this
.
scope
;
if
(
typeof
method
===
'object'
)
{
$
.
extend
(
true
,
this
.
settings
,
method
);
}
if
(
typeof
method
!=
'string'
)
{
if
(
!
this
.
settings
.
init
)
this
.
events
();
return
this
.
settings
.
init
;
}
else
{
return
this
[
method
].
call
(
this
,
options
);
}
},
events
:
function
()
{
var
self
=
this
;
$
(
this
.
scope
).
on
(
'click.fndtn.alerts'
,
'[data-alert] a.close'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
closest
(
"[data-alert]"
).
fadeOut
(
self
.
speed
,
function
()
{
$
(
this
).
remove
();
self
.
settings
.
callback
();
});
});
this
.
settings
.
init
=
true
;
},
off
:
function
()
{
$
(
this
.
scope
).
off
(
'.fndtn.alerts'
);
},
reflow
:
function
()
{}
};
}(
Foundation
.
zj
,
this
,
this
.
document
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 11:20 (5 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0f/0d/430814d450699c181e1308d03b9d
Default Alt Text
foundation.alerts.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment