Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
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
dataplatform
atlas
Commits
a0bb4638
Commit
a0bb4638
authored
May 12, 2017
by
Kalyani
Committed by
Madhan Neethiraj
May 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1771: confirmation dialog while deleting tag appears incorrectly in IE-9
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
30ec76c8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
69 additions
and
61 deletions
+69
-61
pnotify.buttons.js
...boardv2/public/js/external_lib/pnotify/pnotify.buttons.js
+0
-8
pnotify.confirm.js
...boardv2/public/js/external_lib/pnotify/pnotify.confirm.js
+0
-7
pnotify.custom.min.css
...dv2/public/js/external_lib/pnotify/pnotify.custom.min.css
+10
-2
pnotify.custom.min.js
...rdv2/public/js/external_lib/pnotify/pnotify.custom.min.js
+31
-0
pnotify.js
dashboardv2/public/js/external_lib/pnotify/pnotify.js
+0
-31
main.js
dashboardv2/public/js/main.js
+3
-3
Utils.js
dashboardv2/public/js/utils/Utils.js
+21
-4
TagAttributeDetailLayoutView.js
...ardv2/public/js/views/tag/TagAttributeDetailLayoutView.js
+1
-0
TagLayoutView.js
dashboardv2/public/js/views/tag/TagLayoutView.js
+2
-5
addTagModalView.js
dashboardv2/public/js/views/tag/addTagModalView.js
+1
-1
No files found.
dashboardv2/public/js/external_lib/pnotify/pnotify.buttons.js
deleted
100644 → 0
View file @
30ec76c8
(
function
(
d
,
e
){
"function"
===
typeof
define
&&
define
.
amd
?
define
(
"pnotify.buttons"
,[
"jquery"
,
"pnotify"
],
e
):
"object"
===
typeof
exports
&&
"undefined"
!==
typeof
module
?
module
.
exports
=
e
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
e
(
d
.
jQuery
,
d
.
PNotify
)})(
"undefined"
!==
typeof
window
?
window
:
this
,
function
(
d
,
e
){
e
.
prototype
.
options
.
buttons
=
{
closer
:
!
0
,
closer_hover
:
!
0
,
sticker
:
!
0
,
sticker_hover
:
!
0
,
show_on_nonblock
:
!
1
,
labels
:{
close
:
"Close"
,
stick
:
"Stick"
,
unstick
:
"Unstick"
},
classes
:{
closer
:
null
,
pin_up
:
null
,
pin_down
:
null
}};
e
.
prototype
.
modules
.
buttons
=
{
closer
:
null
,
sticker
:
null
,
init
:
function
(
a
,
b
){
var
c
=
this
;
a
.
elem
.
on
({
mouseenter
:
function
(
b
){
!
c
.
options
.
sticker
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
c
.
options
.
show_on_nonblock
||
c
.
sticker
.
trigger
(
"pnotify:buttons:toggleStick"
).
css
(
"visibility"
,
"visible"
);
!
c
.
options
.
closer
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
c
.
options
.
show_on_nonblock
||
c
.
closer
.
css
(
"visibility"
,
"visible"
)},
mouseleave
:
function
(
a
){
c
.
options
.
sticker_hover
&&
c
.
sticker
.
css
(
"visibility"
,
"hidden"
);
c
.
options
.
closer_hover
&&
c
.
closer
.
css
(
"visibility"
,
"hidden"
)}});
this
.
sticker
=
d
(
"<div />"
,{
"class"
:
"ui-pnotify-sticker"
,
"aria-role"
:
"button"
,
"aria-pressed"
:
a
.
options
.
hide
?
"false"
:
"true"
,
tabindex
:
"0"
,
title
:
a
.
options
.
hide
?
b
.
labels
.
stick
:
b
.
labels
.
unstick
,
css
:{
cursor
:
"pointer"
,
visibility
:
b
.
sticker_hover
?
"hidden"
:
"visible"
},
click
:
function
(){
a
.
options
.
hide
=!
a
.
options
.
hide
;
a
.
options
.
hide
?
a
.
queueRemove
():
a
.
cancelRemove
();
d
(
this
).
trigger
(
"pnotify:buttons:toggleStick"
)}}).
bind
(
"pnotify:buttons:toggleStick"
,
function
(){
var
b
=
null
===
c
.
options
.
classes
.
pin_up
?
a
.
styles
.
pin_up
:
c
.
options
.
classes
.
pin_up
,
e
=
null
===
c
.
options
.
classes
.
pin_down
?
a
.
styles
.
pin_down
:
c
.
options
.
classes
.
pin_down
;
d
(
this
).
attr
(
"title"
,
a
.
options
.
hide
?
c
.
options
.
labels
.
stick
:
c
.
options
.
labels
.
unstick
).
children
().
attr
(
"class"
,
""
).
addClass
(
a
.
options
.
hide
?
b
:
e
).
attr
(
"aria-pressed"
,
a
.
options
.
hide
?
"false"
:
"true"
)}).
append
(
"<span />"
).
trigger
(
"pnotify:buttons:toggleStick"
).
prependTo
(
a
.
container
);(
!
b
.
sticker
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
)
&&
this
.
sticker
.
css
(
"display"
,
"none"
);
this
.
closer
=
d
(
"<div />"
,{
"class"
:
"ui-pnotify-closer"
,
"aria-role"
:
"button"
,
tabindex
:
"0"
,
title
:
b
.
labels
.
close
,
css
:{
cursor
:
"pointer"
,
visibility
:
b
.
closer_hover
?
"hidden"
:
"visible"
},
click
:
function
(){
a
.
remove
(
!
1
);
c
.
sticker
.
css
(
"visibility"
,
"hidden"
);
c
.
closer
.
css
(
"visibility"
,
"hidden"
)}}).
append
(
d
(
"<span />"
,{
"class"
:
null
===
b
.
classes
.
closer
?
a
.
styles
.
closer
:
b
.
classes
.
closer
})).
prependTo
(
a
.
container
);(
!
b
.
closer
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
)
&&
this
.
closer
.
css
(
"display"
,
"none"
)},
update
:
function
(
a
,
b
){
!
b
.
closer
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
?
this
.
closer
.
css
(
"display"
,
"none"
):
b
.
closer
&&
this
.
closer
.
css
(
"display"
,
"block"
);
!
b
.
sticker
||
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
?
this
.
sticker
.
css
(
"display"
,
"none"
):
b
.
sticker
&&
this
.
sticker
.
css
(
"display"
,
"block"
);
this
.
sticker
.
trigger
(
"pnotify:buttons:toggleStick"
);
this
.
closer
.
find
(
"span"
).
attr
(
"class"
,
""
).
addClass
(
null
===
b
.
classes
.
closer
?
a
.
styles
.
closer
:
b
.
classes
.
closer
);
b
.
sticker_hover
?
this
.
sticker
.
css
(
"visibility"
,
"hidden"
):
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
||
this
.
sticker
.
css
(
"visibility"
,
"visible"
);
b
.
closer_hover
?
this
.
closer
.
css
(
"visibility"
,
"hidden"
):
a
.
options
.
nonblock
&&
a
.
options
.
nonblock
.
nonblock
&&!
b
.
show_on_nonblock
||
this
.
closer
.
css
(
"visibility"
,
"visible"
)}};
d
.
extend
(
e
.
styling
.
brighttheme
,{
closer
:
"brighttheme-icon-closer"
,
pin_up
:
"brighttheme-icon-sticker"
,
pin_down
:
"brighttheme-icon-sticker brighttheme-icon-stuck"
});
d
.
extend
(
e
.
styling
.
jqueryui
,
{
closer
:
"ui-icon ui-icon-close"
,
pin_up
:
"ui-icon ui-icon-pin-w"
,
pin_down
:
"ui-icon ui-icon-pin-s"
});
d
.
extend
(
e
.
styling
.
bootstrap2
,{
closer
:
"icon-remove"
,
pin_up
:
"icon-pause"
,
pin_down
:
"icon-play"
});
d
.
extend
(
e
.
styling
.
bootstrap3
,{
closer
:
"glyphicon glyphicon-remove"
,
pin_up
:
"glyphicon glyphicon-pause"
,
pin_down
:
"glyphicon glyphicon-play"
});
d
.
extend
(
e
.
styling
.
fontawesome
,{
closer
:
"fa fa-times"
,
pin_up
:
"fa fa-pause"
,
pin_down
:
"fa fa-play"
})});
dashboardv2/public/js/external_lib/pnotify/pnotify.confirm.js
deleted
100644 → 0
View file @
30ec76c8
(
function
(
e
,
c
){
"function"
===
typeof
define
&&
define
.
amd
?
define
(
"pnotify.confirm"
,[
"jquery"
,
"pnotify"
],
c
):
"object"
===
typeof
exports
&&
"undefined"
!==
typeof
module
?
module
.
exports
=
c
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
c
(
e
.
jQuery
,
e
.
PNotify
)})(
"undefined"
!==
typeof
window
?
window
:
this
,
function
(
e
,
c
){
c
.
prototype
.
options
.
confirm
=
{
confirm
:
!
1
,
prompt
:
!
1
,
prompt_class
:
""
,
prompt_default
:
""
,
prompt_multi_line
:
!
1
,
align
:
"right"
,
buttons
:[{
text
:
"Ok"
,
addClass
:
""
,
promptTrigger
:
!
0
,
click
:
function
(
b
,
a
){
b
.
remove
();
b
.
get
().
trigger
(
"pnotify.confirm"
,
[
b
,
a
])}},{
text
:
"Cancel"
,
addClass
:
""
,
click
:
function
(
b
){
b
.
remove
();
b
.
get
().
trigger
(
"pnotify.cancel"
,
b
)}}]};
c
.
prototype
.
modules
.
confirm
=
{
container
:
null
,
prompt
:
null
,
init
:
function
(
b
,
a
){
this
.
container
=
e
(
'<div class="ui-pnotify-action-bar" style="margin-top:5px;clear:both;" />'
).
css
(
"text-align"
,
a
.
align
).
appendTo
(
b
.
container
);
a
.
confirm
||
a
.
prompt
?
this
.
makeDialog
(
b
,
a
):
this
.
container
.
hide
()},
update
:
function
(
b
,
a
){
a
.
confirm
?(
this
.
makeDialog
(
b
,
a
),
this
.
container
.
show
()):
this
.
container
.
hide
().
empty
()},
afterOpen
:
function
(
b
,
a
){
a
.
prompt
&&
this
.
prompt
.
focus
()},
makeDialog
:
function
(
b
,
a
){
var
h
=!
1
,
l
=
this
,
g
,
d
;
this
.
container
.
empty
();
a
.
prompt
&&
(
this
.
prompt
=
e
(
"<"
+
(
a
.
prompt_multi_line
?
'textarea rows="5"'
:
'input type="text"'
)
+
' style="margin-bottom:5px;clear:both;" />'
).
addClass
((
"undefined"
===
typeof
b
.
styles
.
input
?
""
:
b
.
styles
.
input
)
+
" "
+
(
"undefined"
===
typeof
a
.
prompt_class
?
""
:
a
.
prompt_class
)).
val
(
a
.
prompt_default
).
appendTo
(
this
.
container
));
for
(
var
m
=
a
.
buttons
[
0
]
&&
a
.
buttons
[
0
]
!==
c
.
prototype
.
options
.
confirm
.
buttons
[
0
],
f
=
0
;
f
<
a
.
buttons
.
length
;
f
++
)
if
(
!
(
null
===
a
.
buttons
[
f
]
||
m
&&
c
.
prototype
.
options
.
confirm
.
buttons
[
f
]
&&
c
.
prototype
.
options
.
confirm
.
buttons
[
f
]
===
a
.
buttons
[
f
])){
g
=
a
.
buttons
[
f
];
h
?
this
.
container
.
append
(
" "
):
h
=!
0
;
d
=
e
(
'<button type="button" class="ui-pnotify-action-button" />'
).
addClass
((
"undefined"
===
typeof
b
.
styles
.
btn
?
""
:
b
.
styles
.
btn
)
+
" "
+
(
"undefined"
===
typeof
g
.
addClass
?
""
:
g
.
addClass
)).
text
(
g
.
text
).
appendTo
(
this
.
container
).
on
(
"click"
,
function
(
k
){
return
function
(){
"function"
==
typeof
k
.
click
&&
k
.
click
(
b
,
a
.
prompt
?
l
.
prompt
.
val
():
null
)}}(
g
));
a
.
prompt
&&
!
a
.
prompt_multi_line
&&
g
.
promptTrigger
&&
this
.
prompt
.
keypress
(
function
(
b
){
return
function
(
a
){
13
==
a
.
keyCode
&&
b
.
click
()}}(
d
));
b
.
styles
.
text
&&
d
.
wrapInner
(
'<span class="'
+
b
.
styles
.
text
+
'"></span>'
);
b
.
styles
.
btnhover
&&
d
.
hover
(
function
(
a
){
return
function
(){
a
.
addClass
(
b
.
styles
.
btnhover
)}}(
d
),
function
(
a
){
return
function
(){
a
.
removeClass
(
b
.
styles
.
btnhover
)}}(
d
));
if
(
b
.
styles
.
btnactive
)
d
.
on
(
"mousedown"
,
function
(
a
){
return
function
(){
a
.
addClass
(
b
.
styles
.
btnactive
)}}(
d
)).
on
(
"mouseup"
,
function
(
a
){
return
function
(){
a
.
removeClass
(
b
.
styles
.
btnactive
)}}(
d
));
if
(
b
.
styles
.
btnfocus
)
d
.
on
(
"focus"
,
function
(
a
){
return
function
(){
a
.
addClass
(
b
.
styles
.
btnfocus
)}}(
d
)).
on
(
"blur"
,
function
(
a
){
return
function
(){
a
.
removeClass
(
b
.
styles
.
btnfocus
)}}(
d
))}}};
e
.
extend
(
c
.
styling
.
jqueryui
,{
btn
:
"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
,
btnhover
:
"ui-state-hover"
,
btnactive
:
"ui-state-active"
,
btnfocus
:
"ui-state-focus"
,
input
:
""
,
text
:
"ui-button-text"
});
e
.
extend
(
c
.
styling
.
bootstrap2
,{
btn
:
"btn"
,
input
:
""
});
e
.
extend
(
c
.
styling
.
bootstrap3
,{
btn
:
"btn btn-default"
,
input
:
"form-control"
});
e
.
extend
(
c
.
styling
.
fontawesome
,{
btn
:
"btn btn-default"
,
input
:
"form-control"
})});
dashboardv2/public/js/external_lib/pnotify/pnotify.custom.min.css
View file @
a0bb4638
.ui-pnotify
{
top
:
36px
;
right
:
36px
;
position
:
absolute
;
height
:
auto
;
z-index
:
2
}
body
>
.ui-pnotify
{
position
:
fixed
;
z-index
:
100040
}
.ui-pnotify-modal-overlay
{
background-color
:
rgba
(
0
,
0
,
0
,
.4
);
top
:
0
;
left
:
0
;
position
:
absolute
;
height
:
100%
;
width
:
100%
;
z-index
:
1
}
body
>
.ui-pnotify-modal-overlay
{
position
:
fixed
;
z-index
:
100039
}
.ui-pnotify.ui-pnotify-in
{
display
:
block
!important
}
.ui-pnotify.ui-pnotify-move
{
transition
:
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-slow
{
transition
:
opacity
.6s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.6s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-normal
{
transition
:
opacity
.4s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.4s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-fast
{
transition
:
opacity
.2s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.2s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-in
{
opacity
:
1
}
.ui-pnotify
.ui-pnotify-shadow
{
-webkit-box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
);
-moz-box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
)}
.ui-pnotify-container
{
background-position
:
0
0
;
padding
:
.8em
;
height
:
100%
;
margin
:
0
}
.ui-pnotify-container
:after
{
content
:
" "
;
visibility
:
hidden
;
display
:
block
;
height
:
0
;
clear
:
both
}
.ui-pnotify-container.ui-pnotify-sharp
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
}
.ui-pnotify-title
{
display
:
block
;
margin-bottom
:
.4em
;
margin-top
:
0
}
.ui-pnotify-text
{
display
:
block
}
.ui-pnotify-icon
,
.ui-pnotify-icon
span
{
display
:
block
;
float
:
left
;
margin-right
:
.2em
}
.ui-pnotify.stack-bottomleft
,
.ui-pnotify.stack-topleft
{
left
:
25px
;
right
:
auto
}
.ui-pnotify.stack-bottomleft
,
.ui-pnotify.stack-bottomright
{
bottom
:
25px
;
top
:
auto
}
.ui-pnotify.stack-modal
{
left
:
50%
;
right
:
auto
;
margin-left
:
-150px
}
.brighttheme
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
}
.brighttheme.ui-pnotify-container
{
padding
:
18px
}
.brighttheme
.ui-pnotify-title
{
margin-bottom
:
12px
}
.brighttheme-notice
{
background-color
:
#FFFFA2
;
border
:
0
solid
#FF0
;
color
:
#4F4F00
}
.brighttheme-info
{
background-color
:
#8FCEDD
;
border
:
0
solid
#0286A5
;
color
:
#012831
}
.brighttheme-success
{
background-color
:
#AFF29A
;
border
:
0
solid
#35DB00
;
color
:
#104300
}
.brighttheme-error
{
background-color
:
#FFABA2
;
background-image
:
repeating-linear-gradient
(
135deg
,
transparent
,
transparent
35px
,
rgba
(
255
,
255
,
255
,
.3
)
35px
,
rgba
(
255
,
255
,
255
,
.3
)
70px
);
border
:
0
solid
#FF1800
;
color
:
#4F0800
}
.brighttheme-icon-closer
,
.brighttheme-icon-info
,
.brighttheme-icon-notice
,
.brighttheme-icon-sticker
,
.brighttheme-icon-success
{
position
:
relative
;
width
:
16px
;
height
:
16px
;
font-size
:
12px
;
font-weight
:
700
;
line-height
:
16px
;
font-family
:
"Courier New"
,
Courier
,
monospace
;
border-radius
:
50%
}
.brighttheme-icon-closer
:after
,
.brighttheme-icon-info
:after
,
.brighttheme-icon-notice
:after
,
.brighttheme-icon-sticker
:after
,
.brighttheme-icon-success
:after
{
position
:
absolute
;
top
:
0
;
left
:
4px
}
.brighttheme-icon-notice
{
background-color
:
#2E2E00
;
color
:
#FFFFA2
;
margin-top
:
2px
}
.brighttheme-icon-notice
:after
{
content
:
"!"
}
.brighttheme-icon-info
{
background-color
:
#012831
;
color
:
#8FCEDD
;
margin-top
:
2px
}
.brighttheme-icon-info
:after
{
content
:
"i"
}
.brighttheme-icon-success
{
background-color
:
#104300
;
color
:
#AFF29A
;
margin-top
:
2px
}
.brighttheme-icon-success
:after
{
content
:
"\002713"
}
.brighttheme-icon-error
{
position
:
relative
;
width
:
0
;
height
:
0
;
border-left
:
8px
solid
transparent
;
border-right
:
8px
solid
transparent
;
border-bottom
:
16px
solid
#2E0400
;
font-size
:
0
;
line-height
:
0
;
color
:
#FFABA2
;
margin-top
:
1px
}
.brighttheme-icon-error
:after
{
position
:
absolute
;
top
:
1px
;
left
:
-4px
;
font-size
:
12px
;
font-weight
:
700
;
line-height
:
16px
;
font-family
:
"Courier New"
,
Courier
,
monospace
;
content
:
"!"
}
.brighttheme-icon-closer
,
.brighttheme-icon-sticker
{
display
:
inline-block
}
.brighttheme-icon-closer
:after
{
top
:
-4px
;
content
:
"\002715"
}
.brighttheme-icon-sticker
:after
{
top
:
-5px
;
content
:
"\01D1BC"
;
-moz-transform
:
rotate
(
-90deg
);
-webkit-transform
:
rotate
(
-90deg
);
-o-transform
:
rotate
(
-90deg
);
-ms-transform
:
rotate
(
-90deg
);
transform
:
rotate
(
-90deg
)}
.brighttheme-icon-sticker.brighttheme-icon-stuck
:after
{
-moz-transform
:
rotate
(
180deg
);
-webkit-transform
:
rotate
(
180deg
);
-o-transform
:
rotate
(
180deg
);
-ms-transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
)}
.brighttheme
.ui-pnotify-action-bar
{
padding-top
:
12px
}
.brighttheme
.ui-pnotify-action-bar
input
,
.brighttheme
.ui-pnotify-action-bar
textarea
{
display
:
block
;
width
:
100%
;
margin-bottom
:
12px
!important
}
.brighttheme
.ui-pnotify-action-button
{
text-transform
:
uppercase
;
font-weight
:
700
;
padding
:
4px
8px
;
border
:
none
;
background
:
0
0
}
.brighttheme
.ui-pnotify-action-button.btn-primary
{
border
:
none
;
border-radius
:
0
}
.brighttheme-notice
.ui-pnotify-action-button.btn-primary
{
background-color
:
#FF0
;
color
:
#4F4F00
}
.brighttheme-info
.ui-pnotify-action-button.btn-primary
{
background-color
:
#0286A5
;
color
:
#012831
}
.brighttheme-success
.ui-pnotify-action-button.btn-primary
{
background-color
:
#35DB00
;
color
:
#104300
}
.brighttheme-error
.ui-pnotify-action-button.btn-primary
{
background-color
:
#FF1800
;
color
:
#4F0800
}
.ui-pnotify-closer
,
.ui-pnotify-sticker
{
float
:
right
;
margin-left
:
.2em
}
\ No newline at end of file
/*!
Author : Hunter Perrin
Version : 3.2.0
Link : http://sciactive.com/pnotify/
*/
.ui-pnotify
{
top
:
36px
;
right
:
36px
;
position
:
absolute
;
height
:
auto
;
z-index
:
2
}
body
>
.ui-pnotify
{
position
:
fixed
;
z-index
:
100040
}
.ui-pnotify-modal-overlay
{
background-color
:
rgba
(
0
,
0
,
0
,
.4
);
top
:
0
;
left
:
0
;
position
:
absolute
;
height
:
100%
;
width
:
100%
;
z-index
:
1
}
body
>
.ui-pnotify-modal-overlay
{
position
:
fixed
;
z-index
:
100039
}
.ui-pnotify.ui-pnotify-in
{
display
:
block
!important
}
.ui-pnotify.ui-pnotify-move
{
transition
:
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-slow
{
transition
:
opacity
.4s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.4s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-normal
{
transition
:
opacity
.25s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.25s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-fast
{
transition
:
opacity
.1s
linear
;
opacity
:
0
}
.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move
{
transition
:
opacity
.1s
linear
,
left
.5s
ease
,
top
.5s
ease
,
right
.5s
ease
,
bottom
.5s
ease
}
.ui-pnotify.ui-pnotify-fade-in
{
opacity
:
1
}
.ui-pnotify
.ui-pnotify-shadow
{
-webkit-box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
);
-moz-box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0
6px
28px
0
rgba
(
0
,
0
,
0
,
.1
)}
.ui-pnotify-container
{
background-position
:
0
0
;
padding
:
.8em
;
height
:
100%
;
margin
:
0
}
.ui-pnotify-container
:after
{
content
:
" "
;
visibility
:
hidden
;
display
:
block
;
height
:
0
;
clear
:
both
}
.ui-pnotify-container.ui-pnotify-sharp
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
}
.ui-pnotify-title
{
display
:
block
;
margin-bottom
:
.4em
;
margin-top
:
0
}
.ui-pnotify-text
{
display
:
block
}
.ui-pnotify-icon
,
.ui-pnotify-icon
span
{
display
:
block
;
float
:
left
;
margin-right
:
.2em
}
.ui-pnotify.stack-bottomleft
,
.ui-pnotify.stack-topleft
{
left
:
25px
;
right
:
auto
}
.ui-pnotify.stack-bottomleft
,
.ui-pnotify.stack-bottomright
{
bottom
:
25px
;
top
:
auto
}
.ui-pnotify.stack-modal
{
left
:
50%
;
right
:
auto
;
margin-left
:
-150px
}
.brighttheme
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
}
.brighttheme.ui-pnotify-container
{
padding
:
18px
}
.brighttheme
.ui-pnotify-title
{
margin-bottom
:
12px
}
.brighttheme-notice
{
background-color
:
#ffffa2
;
border
:
0
solid
#ff0
;
color
:
#4f4f00
}
.brighttheme-info
{
background-color
:
#8fcedd
;
border
:
0
solid
#0286a5
;
color
:
#012831
}
.brighttheme-success
{
background-color
:
#aff29a
;
border
:
0
solid
#35db00
;
color
:
#104300
}
.brighttheme-error
{
background-color
:
#ffaba2
;
background-image
:
repeating-linear-gradient
(
135deg
,
transparent
,
transparent
35px
,
rgba
(
255
,
255
,
255
,
.3
)
35px
,
rgba
(
255
,
255
,
255
,
.3
)
70px
);
border
:
0
solid
#ff1800
;
color
:
#4f0800
}
.brighttheme-icon-closer
,
.brighttheme-icon-info
,
.brighttheme-icon-notice
,
.brighttheme-icon-sticker
,
.brighttheme-icon-success
{
position
:
relative
;
width
:
16px
;
height
:
16px
;
font-size
:
12px
;
font-weight
:
700
;
line-height
:
16px
;
font-family
:
"Courier New"
,
Courier
,
monospace
;
border-radius
:
50%
}
.brighttheme-icon-closer
:after
,
.brighttheme-icon-info
:after
,
.brighttheme-icon-notice
:after
,
.brighttheme-icon-sticker
:after
,
.brighttheme-icon-success
:after
{
position
:
absolute
;
top
:
0
;
left
:
4px
}
.brighttheme-icon-notice
{
background-color
:
#2e2e00
;
color
:
#ffffa2
;
margin-top
:
2px
}
.brighttheme-icon-notice
:after
{
content
:
"!"
}
.brighttheme-icon-info
{
background-color
:
#012831
;
color
:
#8fcedd
;
margin-top
:
2px
}
.brighttheme-icon-info
:after
{
content
:
"i"
}
.brighttheme-icon-success
{
background-color
:
#104300
;
color
:
#aff29a
;
margin-top
:
2px
}
.brighttheme-icon-success
:after
{
content
:
"\002713"
}
.brighttheme-icon-error
{
position
:
relative
;
width
:
0
;
height
:
0
;
border-left
:
8px
solid
transparent
;
border-right
:
8px
solid
transparent
;
border-bottom
:
16px
solid
#2e0400
;
font-size
:
0
;
line-height
:
0
;
color
:
#ffaba2
;
margin-top
:
1px
}
.brighttheme-icon-error
:after
{
position
:
absolute
;
top
:
1px
;
left
:
-4px
;
font-size
:
12px
;
font-weight
:
700
;
line-height
:
16px
;
font-family
:
"Courier New"
,
Courier
,
monospace
;
content
:
"!"
}
.brighttheme-icon-closer
,
.brighttheme-icon-sticker
{
display
:
inline-block
}
.brighttheme-icon-closer
:after
{
top
:
-4px
;
content
:
"\002715"
}
.brighttheme-icon-sticker
:after
{
top
:
-5px
;
content
:
"\01D1BC"
;
-moz-transform
:
rotate
(
-90deg
);
-webkit-transform
:
rotate
(
-90deg
);
-o-transform
:
rotate
(
-90deg
);
-ms-transform
:
rotate
(
-90deg
);
transform
:
rotate
(
-90deg
)}
.brighttheme-icon-sticker.brighttheme-icon-stuck
:after
{
-moz-transform
:
rotate
(
180deg
);
-webkit-transform
:
rotate
(
180deg
);
-o-transform
:
rotate
(
180deg
);
-ms-transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
)}
.brighttheme
.ui-pnotify-action-bar
{
padding-top
:
12px
}
.brighttheme
.ui-pnotify-action-bar
input
,
.brighttheme
.ui-pnotify-action-bar
textarea
{
display
:
block
;
width
:
100%
;
margin-bottom
:
12px
!important
}
.brighttheme
.ui-pnotify-action-button
{
text-transform
:
uppercase
;
font-weight
:
700
;
padding
:
4px
8px
;
border
:
none
;
background
:
0
0
}
.brighttheme
.ui-pnotify-action-button.btn-primary
{
border
:
none
;
border-radius
:
0
}
.brighttheme-notice
.ui-pnotify-action-button.btn-primary
{
background-color
:
#ff0
;
color
:
#4f4f00
}
.brighttheme-info
.ui-pnotify-action-button.btn-primary
{
background-color
:
#0286a5
;
color
:
#012831
}
.brighttheme-success
.ui-pnotify-action-button.btn-primary
{
background-color
:
#35db00
;
color
:
#104300
}
.brighttheme-error
.ui-pnotify-action-button.btn-primary
{
background-color
:
#ff1800
;
color
:
#4f0800
}
.ui-pnotify-closer
,
.ui-pnotify-sticker
{
float
:
right
;
margin-left
:
.2em
}
.ui-pnotify-history-container
{
position
:
absolute
;
top
:
0
;
right
:
18px
;
width
:
70px
;
border-top
:
none
;
padding
:
0
;
-webkit-border-top-left-radius
:
0
;
-moz-border-top-left-radius
:
0
;
border-top-left-radius
:
0
;
-webkit-border-top-right-radius
:
0
;
-moz-border-top-right-radius
:
0
;
border-top-right-radius
:
0
;
z-index
:
10000
}
.ui-pnotify-history-container.ui-pnotify-history-fixed
{
position
:
fixed
}
.ui-pnotify-history-container
.ui-pnotify-history-header
{
padding
:
2px
;
text-align
:
center
}
.ui-pnotify-history-container
button
{
cursor
:
pointer
;
display
:
block
;
width
:
100%
}
.ui-pnotify-history-container
.ui-pnotify-history-pulldown
{
display
:
block
;
margin
:
0
auto
}
.ui-pnotify-history-brighttheme
{
background-color
:
#8fcedd
;
border
:
0
solid
#0286a5
;
color
:
#012831
}
.ui-pnotify-history-brighttheme
button
{
text-transform
:
uppercase
;
font-weight
:
700
;
padding
:
4px
8px
;
border
:
none
;
background
:
0
0
}
.ui-pnotify-history-brighttheme
.ui-pnotify-history-pulldown
::after
{
display
:
block
;
font-size
:
16px
;
line-height
:
14px
;
padding-bottom
:
4px
;
content
:
"⌄"
;
text-align
:
center
;
font-weight
:
700
;
font-family
:
Arial
,
sans-serif
}
.ui-pnotify-container
{
position
:
relative
;
left
:
0
}
@media
(
max-width
:
480px
){
.ui-pnotify-mobile-able.ui-pnotify
{
position
:
fixed
;
top
:
0
;
right
:
0
;
left
:
0
;
width
:
auto
!important
;
font-size
:
1.2em
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
}
.ui-pnotify-mobile-able.ui-pnotify
.ui-pnotify-shadow
{
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
border-bottom-width
:
5px
}
.ui-pnotify-mobile-able
.ui-pnotify-container
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
}
.ui-pnotify-mobile-able.ui-pnotify.stack-bottomleft
,
.ui-pnotify-mobile-able.ui-pnotify.stack-topleft
{
left
:
0
;
right
:
0
}
.ui-pnotify-mobile-able.ui-pnotify.stack-bottomleft
,
.ui-pnotify-mobile-able.ui-pnotify.stack-bottomright
{
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
auto
}
.ui-pnotify-mobile-able.ui-pnotify.stack-bottomleft
.ui-pnotify-shadow
,
.ui-pnotify-mobile-able.ui-pnotify.stack-bottomright
.ui-pnotify-shadow
{
border-top-width
:
5px
;
border-bottom-width
:
1px
}}
.ui-pnotify.ui-pnotify-nonblock-fade
{
opacity
:
.2
}
.ui-pnotify.ui-pnotify-nonblock-hide
{
display
:
none
!important
}
dashboardv2/public/js/external_lib/pnotify/pnotify.custom.min.js
0 → 100644
View file @
a0bb4638
/*
PNotify 3.2.0 sciactive.com/pnotify/
(C) 2015 Hunter Perrin; Google, Inc.
license Apache-2.0
*/
!
function
(
t
,
i
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify"
,[
"jquery"
],
function
(
s
){
return
i
(
s
,
t
)}):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
i
(
require
(
"jquery"
),
global
||
t
):
t
.
PNotify
=
i
(
t
.
jQuery
,
t
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
t
,
i
){
var
s
=
function
(
i
){
var
e
,
o
,
n
=
{
dir1
:
"down"
,
dir2
:
"left"
,
push
:
"bottom"
,
spacing1
:
36
,
spacing2
:
36
,
context
:
t
(
"body"
),
modal
:
!
1
},
a
=
t
(
i
),
r
=
function
(){
o
=
t
(
"body"
),
c
.
prototype
.
options
.
stack
.
context
=
o
,
a
=
t
(
i
),
a
.
bind
(
"resize"
,
function
(){
e
&&
clearTimeout
(
e
),
e
=
setTimeout
(
function
(){
c
.
positionAll
(
!
0
)},
10
)})},
h
=
function
(
i
){
var
s
=
t
(
"<div />"
,{
class
:
"ui-pnotify-modal-overlay"
});
return
s
.
prependTo
(
i
.
context
),
i
.
overlay_close
&&
s
.
click
(
function
(){
c
.
removeStack
(
i
)}),
s
},
c
=
function
(
t
){
this
.
state
=
"initializing"
,
this
.
timer
=
null
,
this
.
animTimer
=
null
,
this
.
styles
=
null
,
this
.
elem
=
null
,
this
.
container
=
null
,
this
.
title_container
=
null
,
this
.
text_container
=
null
,
this
.
animating
=!
1
,
this
.
timerHide
=!
1
,
this
.
parseOptions
(
t
),
this
.
init
()};
return
t
.
extend
(
c
.
prototype
,{
version
:
"3.2.0"
,
options
:{
title
:
!
1
,
title_escape
:
!
1
,
text
:
!
1
,
text_escape
:
!
1
,
styling
:
"brighttheme"
,
addclass
:
""
,
cornerclass
:
""
,
auto_display
:
!
0
,
width
:
"300px"
,
min_height
:
"16px"
,
type
:
"notice"
,
icon
:
!
0
,
animation
:
"fade"
,
animate_speed
:
"normal"
,
shadow
:
!
0
,
hide
:
!
0
,
delay
:
8
e3
,
mouse_reset
:
!
0
,
remove
:
!
0
,
insert_brs
:
!
0
,
destroy
:
!
0
,
stack
:
n
},
modules
:{},
runModules
:
function
(
t
,
i
){
var
s
;
for
(
var
e
in
this
.
modules
)
s
=
"object"
==
typeof
i
&&
e
in
i
?
i
[
e
]:
i
,
"function"
==
typeof
this
.
modules
[
e
][
t
]
&&
(
this
.
modules
[
e
].
notice
=
this
,
this
.
modules
[
e
].
options
=
"object"
==
typeof
this
.
options
[
e
]?
this
.
options
[
e
]:{},
this
.
modules
[
e
][
t
](
this
,
"object"
==
typeof
this
.
options
[
e
]?
this
.
options
[
e
]:{},
s
))},
init
:
function
(){
var
i
=
this
;
return
this
.
modules
=
{},
t
.
extend
(
!
0
,
this
.
modules
,
c
.
prototype
.
modules
),
"object"
==
typeof
this
.
options
.
styling
?
this
.
styles
=
this
.
options
.
styling
:
this
.
styles
=
c
.
styling
[
this
.
options
.
styling
],
this
.
elem
=
t
(
"<div />"
,{
class
:
"ui-pnotify "
+
this
.
options
.
addclass
,
css
:{
display
:
"none"
},
"aria-live"
:
"assertive"
,
"aria-role"
:
"alertdialog"
,
mouseenter
:
function
(
t
){
if
(
i
.
options
.
mouse_reset
&&
"out"
===
i
.
animating
){
if
(
!
i
.
timerHide
)
return
;
i
.
cancelRemove
()}
i
.
options
.
hide
&&
i
.
options
.
mouse_reset
&&
i
.
cancelRemove
()},
mouseleave
:
function
(
t
){
i
.
options
.
hide
&&
i
.
options
.
mouse_reset
&&
"out"
!==
i
.
animating
&&
i
.
queueRemove
(),
c
.
positionAll
()}}),
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-"
+
this
.
options
.
animate_speed
),
this
.
container
=
t
(
"<div />"
,{
class
:
this
.
styles
.
container
+
" ui-pnotify-container "
+
(
"error"
===
this
.
options
.
type
?
this
.
styles
.
error
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success
:
this
.
styles
.
notice
),
role
:
"alert"
}).
appendTo
(
this
.
elem
),
""
!==
this
.
options
.
cornerclass
&&
this
.
container
.
removeClass
(
"ui-corner-all"
).
addClass
(
this
.
options
.
cornerclass
),
this
.
options
.
shadow
&&
this
.
container
.
addClass
(
"ui-pnotify-shadow"
),
!
1
!==
this
.
options
.
icon
&&
t
(
"<div />"
,{
class
:
"ui-pnotify-icon"
}).
append
(
t
(
"<span />"
,{
class
:
!
0
===
this
.
options
.
icon
?
"error"
===
this
.
options
.
type
?
this
.
styles
.
error_icon
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info_icon
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success_icon
:
this
.
styles
.
notice_icon
:
this
.
options
.
icon
})).
prependTo
(
this
.
container
),
this
.
title_container
=
t
(
"<h4 />"
,{
class
:
"ui-pnotify-title"
}).
appendTo
(
this
.
container
),
!
1
===
this
.
options
.
title
?
this
.
title_container
.
hide
():
this
.
options
.
title_escape
?
this
.
title_container
.
text
(
this
.
options
.
title
):
this
.
title_container
.
html
(
this
.
options
.
title
),
this
.
text_container
=
t
(
"<div />"
,{
class
:
"ui-pnotify-text"
,
"aria-role"
:
"alert"
}).
appendTo
(
this
.
container
),
!
1
===
this
.
options
.
text
?
this
.
text_container
.
hide
():
this
.
options
.
text_escape
?
this
.
text_container
.
text
(
this
.
options
.
text
):
this
.
text_container
.
html
(
this
.
options
.
insert_brs
?
String
(
this
.
options
.
text
).
replace
(
/
\n
/g
,
"<br />"
):
this
.
options
.
text
),
"string"
==
typeof
this
.
options
.
width
&&
this
.
elem
.
css
(
"width"
,
this
.
options
.
width
),
"string"
==
typeof
this
.
options
.
min_height
&&
this
.
container
.
css
(
"min-height"
,
this
.
options
.
min_height
),
"top"
===
this
.
options
.
stack
.
push
?
c
.
notices
=
t
.
merge
([
this
],
c
.
notices
):
c
.
notices
=
t
.
merge
(
c
.
notices
,[
this
]),
"top"
===
this
.
options
.
stack
.
push
&&
this
.
queuePosition
(
!
1
,
1
),
this
.
options
.
stack
.
animation
=!
1
,
this
.
runModules
(
"init"
),
this
.
state
=
"closed"
,
this
.
options
.
auto_display
&&
this
.
open
(),
this
},
update
:
function
(
i
){
var
s
=
this
.
options
;
return
this
.
parseOptions
(
s
,
i
),
this
.
elem
.
removeClass
(
"ui-pnotify-fade-slow ui-pnotify-fade-normal ui-pnotify-fade-fast"
),
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-"
+
this
.
options
.
animate_speed
),
this
.
options
.
cornerclass
!==
s
.
cornerclass
&&
this
.
container
.
removeClass
(
"ui-corner-all "
+
s
.
cornerclass
).
addClass
(
this
.
options
.
cornerclass
),
this
.
options
.
shadow
!==
s
.
shadow
&&
(
this
.
options
.
shadow
?
this
.
container
.
addClass
(
"ui-pnotify-shadow"
):
this
.
container
.
removeClass
(
"ui-pnotify-shadow"
)),
!
1
===
this
.
options
.
addclass
?
this
.
elem
.
removeClass
(
s
.
addclass
):
this
.
options
.
addclass
!==
s
.
addclass
&&
this
.
elem
.
removeClass
(
s
.
addclass
).
addClass
(
this
.
options
.
addclass
),
!
1
===
this
.
options
.
title
?
this
.
title_container
.
slideUp
(
"fast"
):
this
.
options
.
title
!==
s
.
title
&&
(
this
.
options
.
title_escape
?
this
.
title_container
.
text
(
this
.
options
.
title
):
this
.
title_container
.
html
(
this
.
options
.
title
),
!
1
===
s
.
title
&&
this
.
title_container
.
slideDown
(
200
)),
!
1
===
this
.
options
.
text
?
this
.
text_container
.
slideUp
(
"fast"
):
this
.
options
.
text
!==
s
.
text
&&
(
this
.
options
.
text_escape
?
this
.
text_container
.
text
(
this
.
options
.
text
):
this
.
text_container
.
html
(
this
.
options
.
insert_brs
?
String
(
this
.
options
.
text
).
replace
(
/
\n
/g
,
"<br />"
):
this
.
options
.
text
),
!
1
===
s
.
text
&&
this
.
text_container
.
slideDown
(
200
)),
this
.
options
.
type
!==
s
.
type
&&
this
.
container
.
removeClass
(
this
.
styles
.
error
+
" "
+
this
.
styles
.
notice
+
" "
+
this
.
styles
.
success
+
" "
+
this
.
styles
.
info
).
addClass
(
"error"
===
this
.
options
.
type
?
this
.
styles
.
error
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success
:
this
.
styles
.
notice
),(
this
.
options
.
icon
!==
s
.
icon
||!
0
===
this
.
options
.
icon
&&
this
.
options
.
type
!==
s
.
type
)
&&
(
this
.
container
.
find
(
"div.ui-pnotify-icon"
).
remove
(),
!
1
!==
this
.
options
.
icon
&&
t
(
"<div />"
,{
class
:
"ui-pnotify-icon"
}).
append
(
t
(
"<span />"
,{
class
:
!
0
===
this
.
options
.
icon
?
"error"
===
this
.
options
.
type
?
this
.
styles
.
error_icon
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info_icon
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success_icon
:
this
.
styles
.
notice_icon
:
this
.
options
.
icon
})).
prependTo
(
this
.
container
)),
this
.
options
.
width
!==
s
.
width
&&
this
.
elem
.
animate
({
width
:
this
.
options
.
width
}),
this
.
options
.
min_height
!==
s
.
min_height
&&
this
.
container
.
animate
({
minHeight
:
this
.
options
.
min_height
}),
this
.
options
.
hide
?
s
.
hide
||
this
.
queueRemove
():
this
.
cancelRemove
(),
this
.
queuePosition
(
!
0
),
this
.
runModules
(
"update"
,
s
),
this
},
open
:
function
(){
this
.
state
=
"opening"
,
this
.
runModules
(
"beforeOpen"
);
var
t
=
this
;
return
this
.
elem
.
parent
().
length
||
this
.
elem
.
appendTo
(
this
.
options
.
stack
.
context
?
this
.
options
.
stack
.
context
:
o
),
"top"
!==
this
.
options
.
stack
.
push
&&
this
.
position
(
!
0
),
this
.
animateIn
(
function
(){
t
.
queuePosition
(
!
0
),
t
.
options
.
hide
&&
t
.
queueRemove
(),
t
.
state
=
"open"
,
t
.
runModules
(
"afterOpen"
)}),
this
},
remove
:
function
(
s
){
this
.
state
=
"closing"
,
this
.
timerHide
=!!
s
,
this
.
runModules
(
"beforeClose"
);
var
e
=
this
;
return
this
.
timer
&&
(
i
.
clearTimeout
(
this
.
timer
),
this
.
timer
=
null
),
this
.
animateOut
(
function
(){
if
(
e
.
state
=
"closed"
,
e
.
runModules
(
"afterClose"
),
e
.
queuePosition
(
!
0
),
e
.
options
.
remove
&&
e
.
elem
.
detach
(),
e
.
runModules
(
"beforeDestroy"
),
e
.
options
.
destroy
&&
null
!==
c
.
notices
){
var
i
=
t
.
inArray
(
e
,
c
.
notices
);
-
1
!==
i
&&
c
.
notices
.
splice
(
i
,
1
)}
e
.
runModules
(
"afterDestroy"
)}),
this
},
get
:
function
(){
return
this
.
elem
},
parseOptions
:
function
(
i
,
s
){
this
.
options
=
t
.
extend
(
!
0
,{},
c
.
prototype
.
options
),
this
.
options
.
stack
=
c
.
prototype
.
options
.
stack
;
for
(
var
e
,
o
=
[
i
,
s
],
n
=
0
;
n
<
o
.
length
&&
void
0
!==
(
e
=
o
[
n
]);
n
++
)
if
(
"object"
!=
typeof
e
)
this
.
options
.
text
=
e
;
else
for
(
var
a
in
e
)
this
.
modules
[
a
]?
t
.
extend
(
!
0
,
this
.
options
[
a
],
e
[
a
]):
this
.
options
[
a
]
=
e
[
a
]},
animateIn
:
function
(
t
){
this
.
animating
=
"in"
;
var
i
=
this
,
s
=
function
(){
i
.
animTimer
&&
clearTimeout
(
i
.
animTimer
),
"in"
===
i
.
animating
&&
(
i
.
elem
.
is
(
":visible"
)?(
t
&&
t
.
call
(),
i
.
animating
=!
1
):
i
.
animTimer
=
setTimeout
(
s
,
40
))};
"fade"
===
this
.
options
.
animation
?(
this
.
elem
.
one
(
"webkitTransitionEnd mozTransitionEnd MSTransitionEnd oTransitionEnd transitionend"
,
s
).
addClass
(
"ui-pnotify-in"
),
this
.
elem
.
css
(
"opacity"
),
this
.
elem
.
addClass
(
"ui-pnotify-fade-in"
),
this
.
animTimer
=
setTimeout
(
s
,
650
)):(
this
.
elem
.
addClass
(
"ui-pnotify-in"
),
s
())},
animateOut
:
function
(
i
){
this
.
animating
=
"out"
;
var
s
=
this
,
e
=
function
(){
if
(
s
.
animTimer
&&
clearTimeout
(
s
.
animTimer
),
"out"
===
s
.
animating
)
if
(
"0"
!=
s
.
elem
.
css
(
"opacity"
)
&&
s
.
elem
.
is
(
":visible"
))
s
.
animTimer
=
setTimeout
(
e
,
40
);
else
{
if
(
s
.
elem
.
removeClass
(
"ui-pnotify-in"
),
s
.
options
.
stack
.
overlay
){
var
o
=!
1
;
t
.
each
(
c
.
notices
,
function
(
t
,
i
){
i
!=
s
&&
i
.
options
.
stack
===
s
.
options
.
stack
&&
"closed"
!=
i
.
state
&&
(
o
=!
0
)}),
o
||
s
.
options
.
stack
.
overlay
.
hide
()}
i
&&
i
.
call
(),
s
.
animating
=!
1
}};
"fade"
===
this
.
options
.
animation
?(
this
.
elem
.
one
(
"webkitTransitionEnd mozTransitionEnd MSTransitionEnd oTransitionEnd transitionend"
,
e
).
removeClass
(
"ui-pnotify-fade-in"
),
this
.
animTimer
=
setTimeout
(
e
,
650
)):(
this
.
elem
.
removeClass
(
"ui-pnotify-in"
),
e
())},
position
:
function
(
t
){
var
i
=
this
.
options
.
stack
,
s
=
this
.
elem
;
if
(
void
0
===
i
.
context
&&
(
i
.
context
=
o
),
i
){
"number"
!=
typeof
i
.
nextpos1
&&
(
i
.
nextpos1
=
i
.
firstpos1
),
"number"
!=
typeof
i
.
nextpos2
&&
(
i
.
nextpos2
=
i
.
firstpos2
),
"number"
!=
typeof
i
.
addpos2
&&
(
i
.
addpos2
=
0
);
var
e
=!
s
.
hasClass
(
"ui-pnotify-in"
);
if
(
!
e
||
t
){
i
.
modal
&&
(
i
.
overlay
?
i
.
overlay
.
show
():
i
.
overlay
=
h
(
i
)),
s
.
addClass
(
"ui-pnotify-move"
);
var
n
,
r
,
c
;
switch
(
i
.
dir1
){
case
"down"
:
c
=
"top"
;
break
;
case
"up"
:
c
=
"bottom"
;
break
;
case
"left"
:
c
=
"right"
;
break
;
case
"right"
:
c
=
"left"
}
n
=
parseInt
(
s
.
css
(
c
).
replace
(
/
(?:\.
.*|
[^
0-9.
])
/g
,
""
)),
isNaN
(
n
)
&&
(
n
=
0
),
void
0
!==
i
.
firstpos1
||
e
||
(
i
.
firstpos1
=
n
,
i
.
nextpos1
=
i
.
firstpos1
);
var
p
;
switch
(
i
.
dir2
){
case
"down"
:
p
=
"top"
;
break
;
case
"up"
:
p
=
"bottom"
;
break
;
case
"left"
:
p
=
"right"
;
break
;
case
"right"
:
p
=
"left"
}
switch
(
r
=
parseInt
(
s
.
css
(
p
).
replace
(
/
(?:\.
.*|
[^
0-9.
])
/g
,
""
)),
isNaN
(
r
)
&&
(
r
=
0
),
void
0
!==
i
.
firstpos2
||
e
||
(
i
.
firstpos2
=
r
,
i
.
nextpos2
=
i
.
firstpos2
),(
"down"
===
i
.
dir1
&&
i
.
nextpos1
+
s
.
height
()
>
(
i
.
context
.
is
(
o
)?
a
.
height
():
i
.
context
.
prop
(
"scrollHeight"
))
||
"up"
===
i
.
dir1
&&
i
.
nextpos1
+
s
.
height
()
>
(
i
.
context
.
is
(
o
)?
a
.
height
():
i
.
context
.
prop
(
"scrollHeight"
))
||
"left"
===
i
.
dir1
&&
i
.
nextpos1
+
s
.
width
()
>
(
i
.
context
.
is
(
o
)?
a
.
width
():
i
.
context
.
prop
(
"scrollWidth"
))
||
"right"
===
i
.
dir1
&&
i
.
nextpos1
+
s
.
width
()
>
(
i
.
context
.
is
(
o
)?
a
.
width
():
i
.
context
.
prop
(
"scrollWidth"
)))
&&
(
i
.
nextpos1
=
i
.
firstpos1
,
i
.
nextpos2
+=
i
.
addpos2
+
(
void
0
===
i
.
spacing2
?
25
:
i
.
spacing2
),
i
.
addpos2
=
0
),
"number"
==
typeof
i
.
nextpos2
&&
(
i
.
animation
?
s
.
css
(
p
,
i
.
nextpos2
+
"px"
):(
s
.
removeClass
(
"ui-pnotify-move"
),
s
.
css
(
p
,
i
.
nextpos2
+
"px"
),
s
.
css
(
p
),
s
.
addClass
(
"ui-pnotify-move"
))),
i
.
dir2
){
case
"down"
:
case
"up"
:
s
.
outerHeight
(
!
0
)
>
i
.
addpos2
&&
(
i
.
addpos2
=
s
.
height
());
break
;
case
"left"
:
case
"right"
:
s
.
outerWidth
(
!
0
)
>
i
.
addpos2
&&
(
i
.
addpos2
=
s
.
width
())}
switch
(
"number"
==
typeof
i
.
nextpos1
&&
(
i
.
animation
?
s
.
css
(
c
,
i
.
nextpos1
+
"px"
):(
s
.
removeClass
(
"ui-pnotify-move"
),
s
.
css
(
c
,
i
.
nextpos1
+
"px"
),
s
.
css
(
c
),
s
.
addClass
(
"ui-pnotify-move"
))),
i
.
dir1
){
case
"down"
:
case
"up"
:
i
.
nextpos1
+=
s
.
height
()
+
(
void
0
===
i
.
spacing1
?
25
:
i
.
spacing1
);
break
;
case
"left"
:
case
"right"
:
i
.
nextpos1
+=
s
.
width
()
+
(
void
0
===
i
.
spacing1
?
25
:
i
.
spacing1
)}}
return
this
}},
queuePosition
:
function
(
t
,
i
){
return
e
&&
clearTimeout
(
e
),
i
||
(
i
=
10
),
e
=
setTimeout
(
function
(){
c
.
positionAll
(
t
)},
i
),
this
},
cancelRemove
:
function
(){
return
this
.
timer
&&
i
.
clearTimeout
(
this
.
timer
),
this
.
animTimer
&&
i
.
clearTimeout
(
this
.
animTimer
),
"closing"
===
this
.
state
&&
(
this
.
state
=
"open"
,
this
.
animating
=!
1
,
this
.
elem
.
addClass
(
"ui-pnotify-in"
),
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-in"
)),
this
},
queueRemove
:
function
(){
var
t
=
this
;
return
this
.
cancelRemove
(),
this
.
timer
=
i
.
setTimeout
(
function
(){
t
.
remove
(
!
0
)},
isNaN
(
this
.
options
.
delay
)?
0
:
this
.
options
.
delay
),
this
}}),
t
.
extend
(
c
,{
notices
:[],
reload
:
s
,
removeAll
:
function
(){
t
.
each
(
c
.
notices
,
function
(
t
,
i
){
i
.
remove
&&
i
.
remove
(
!
1
)})},
removeStack
:
function
(
i
){
t
.
each
(
c
.
notices
,
function
(
t
,
s
){
s
.
remove
&&
s
.
options
.
stack
===
i
&&
s
.
remove
(
!
1
)})},
positionAll
:
function
(
i
){
if
(
e
&&
clearTimeout
(
e
),
e
=
null
,
c
.
notices
&&
c
.
notices
.
length
)
t
.
each
(
c
.
notices
,
function
(
t
,
s
){
var
e
=
s
.
options
.
stack
;
e
&&
(
e
.
overlay
&&
e
.
overlay
.
hide
(),
e
.
nextpos1
=
e
.
firstpos1
,
e
.
nextpos2
=
e
.
firstpos2
,
e
.
addpos2
=
0
,
e
.
animation
=
i
)}),
t
.
each
(
c
.
notices
,
function
(
t
,
i
){
i
.
position
()});
else
{
var
s
=
c
.
prototype
.
options
.
stack
;
s
&&
(
delete
s
.
nextpos1
,
delete
s
.
nextpos2
)}},
styling
:{
brighttheme
:{
container
:
"brighttheme"
,
notice
:
"brighttheme-notice"
,
notice_icon
:
"brighttheme-icon-notice"
,
info
:
"brighttheme-info"
,
info_icon
:
"brighttheme-icon-info"
,
success
:
"brighttheme-success"
,
success_icon
:
"brighttheme-icon-success"
,
error
:
"brighttheme-error"
,
error_icon
:
"brighttheme-icon-error"
},
bootstrap3
:{
container
:
"alert"
,
notice
:
"alert-warning"
,
notice_icon
:
"glyphicon glyphicon-exclamation-sign"
,
info
:
"alert-info"
,
info_icon
:
"glyphicon glyphicon-info-sign"
,
success
:
"alert-success"
,
success_icon
:
"glyphicon glyphicon-ok-sign"
,
error
:
"alert-danger"
,
error_icon
:
"glyphicon glyphicon-warning-sign"
}}}),
c
.
styling
.
fontawesome
=
t
.
extend
({},
c
.
styling
.
bootstrap3
),
t
.
extend
(
c
.
styling
.
fontawesome
,{
notice_icon
:
"fa fa-exclamation-circle"
,
info_icon
:
"fa fa-info"
,
success_icon
:
"fa fa-check"
,
error_icon
:
"fa fa-warning"
}),
i
.
document
.
body
?
r
():
t
(
r
),
c
};
return
s
(
i
)});
//# sourceMappingURL=pnotify.js.map
// Animate
!
function
(
n
,
i
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.animate"
,[
"jquery"
,
"pnotify"
],
i
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
i
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
i
(
n
.
jQuery
,
n
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
n
,
i
){
return
i
.
prototype
.
options
.
animate
=
{
animate
:
!
1
,
in_class
:
""
,
out_class
:
""
},
i
.
prototype
.
modules
.
animate
=
{
init
:
function
(
n
,
i
){
this
.
setUpAnimations
(
n
,
i
),
n
.
attention
=
function
(
i
,
t
){
n
.
elem
.
one
(
"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend"
,
function
(){
n
.
elem
.
removeClass
(
i
),
t
&&
t
.
call
(
n
)}).
addClass
(
"animated "
+
i
)}},
update
:
function
(
n
,
i
,
t
){
i
.
animate
!=
t
.
animate
&&
this
.
setUpAnimations
(
n
,
i
)},
setUpAnimations
:
function
(
n
,
i
){
if
(
i
.
animate
){
n
.
options
.
animation
=
"none"
,
n
.
elem
.
removeClass
(
"ui-pnotify-fade-slow ui-pnotify-fade-normal ui-pnotify-fade-fast"
),
n
.
_animateIn
||
(
n
.
_animateIn
=
n
.
animateIn
),
n
.
_animateOut
||
(
n
.
_animateOut
=
n
.
animateOut
),
n
.
animateIn
=
this
.
animateIn
.
bind
(
this
),
n
.
animateOut
=
this
.
animateOut
.
bind
(
this
);
var
t
=
400
;
"slow"
===
n
.
options
.
animate_speed
?
t
=
600
:
"fast"
===
n
.
options
.
animate_speed
?
t
=
200
:
n
.
options
.
animate_speed
>
0
&&
(
t
=
n
.
options
.
animate_speed
),
t
/=
1
e3
,
n
.
elem
.
addClass
(
"animated"
).
css
({
"-webkit-animation-duration"
:
t
+
"s"
,
"-moz-animation-duration"
:
t
+
"s"
,
"animation-duration"
:
t
+
"s"
})}
else
n
.
_animateIn
&&
n
.
_animateOut
&&
(
n
.
animateIn
=
n
.
_animateIn
,
delete
n
.
_animateIn
,
n
.
animateOut
=
n
.
_animateOut
,
delete
n
.
_animateOut
,
n
.
elem
.
addClass
(
"animated"
))},
animateIn
:
function
(
n
){
this
.
notice
.
animating
=
"in"
;
var
i
=
this
;
n
=
function
(){
i
.
notice
.
elem
.
removeClass
(
i
.
options
.
in_class
),
this
&&
this
.
call
(),
i
.
notice
.
animating
=!
1
}.
bind
(
n
),
this
.
notice
.
elem
.
show
().
one
(
"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend"
,
n
).
removeClass
(
this
.
options
.
out_class
).
addClass
(
"ui-pnotify-in"
).
addClass
(
this
.
options
.
in_class
)},
animateOut
:
function
(
n
){
this
.
notice
.
animating
=
"out"
;
var
i
=
this
;
n
=
function
(){
i
.
notice
.
elem
.
removeClass
(
"ui-pnotify-in "
+
i
.
options
.
out_class
),
this
&&
this
.
call
(),
i
.
notice
.
animating
=!
1
}.
bind
(
n
),
this
.
notice
.
elem
.
one
(
"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend"
,
n
).
removeClass
(
this
.
options
.
in_class
).
addClass
(
this
.
options
.
out_class
)}},
i
});
//# sourceMappingURL=pnotify.animate.js.map
// Buttons
!
function
(
o
,
s
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.buttons"
,[
"jquery"
,
"pnotify"
],
s
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
s
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
s
(
o
.
jQuery
,
o
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
o
,
s
){
return
s
.
prototype
.
options
.
buttons
=
{
closer
:
!
0
,
closer_hover
:
!
0
,
sticker
:
!
0
,
sticker_hover
:
!
0
,
show_on_nonblock
:
!
1
,
labels
:{
close
:
"Close"
,
stick
:
"Stick"
,
unstick
:
"Unstick"
},
classes
:{
closer
:
null
,
pin_up
:
null
,
pin_down
:
null
}},
s
.
prototype
.
modules
.
buttons
=
{
init
:
function
(
s
,
i
){
var
n
=
this
;
s
.
elem
.
on
({
mouseenter
:
function
(
o
){
!
n
.
options
.
sticker
||
s
.
options
.
nonblock
&&
s
.
options
.
nonblock
.
nonblock
&&!
n
.
options
.
show_on_nonblock
||
n
.
sticker
.
trigger
(
"pnotify:buttons:toggleStick"
).
css
(
"visibility"
,
"visible"
),
!
n
.
options
.
closer
||
s
.
options
.
nonblock
&&
s
.
options
.
nonblock
.
nonblock
&&!
n
.
options
.
show_on_nonblock
||
n
.
closer
.
css
(
"visibility"
,
"visible"
)},
mouseleave
:
function
(
o
){
n
.
options
.
sticker_hover
&&
n
.
sticker
.
css
(
"visibility"
,
"hidden"
),
n
.
options
.
closer_hover
&&
n
.
closer
.
css
(
"visibility"
,
"hidden"
)}}),
this
.
sticker
=
o
(
"<div />"
,{
class
:
"ui-pnotify-sticker"
,
"aria-role"
:
"button"
,
"aria-pressed"
:
s
.
options
.
hide
?
"false"
:
"true"
,
tabindex
:
"0"
,
title
:
s
.
options
.
hide
?
i
.
labels
.
stick
:
i
.
labels
.
unstick
,
css
:{
cursor
:
"pointer"
,
visibility
:
i
.
sticker_hover
?
"hidden"
:
"visible"
},
click
:
function
(){
s
.
options
.
hide
=!
s
.
options
.
hide
,
s
.
options
.
hide
?
s
.
queueRemove
():
s
.
cancelRemove
(),
o
(
this
).
trigger
(
"pnotify:buttons:toggleStick"
)}}).
bind
(
"pnotify:buttons:toggleStick"
,
function
(){
var
i
=
null
===
n
.
options
.
classes
.
pin_up
?
s
.
styles
.
pin_up
:
n
.
options
.
classes
.
pin_up
,
e
=
null
===
n
.
options
.
classes
.
pin_down
?
s
.
styles
.
pin_down
:
n
.
options
.
classes
.
pin_down
;
o
(
this
).
attr
(
"title"
,
s
.
options
.
hide
?
n
.
options
.
labels
.
stick
:
n
.
options
.
labels
.
unstick
).
children
().
attr
(
"class"
,
""
).
addClass
(
s
.
options
.
hide
?
i
:
e
).
attr
(
"aria-pressed"
,
s
.
options
.
hide
?
"false"
:
"true"
)}).
append
(
"<span />"
).
trigger
(
"pnotify:buttons:toggleStick"
).
prependTo
(
s
.
container
),(
!
i
.
sticker
||
s
.
options
.
nonblock
&&
s
.
options
.
nonblock
.
nonblock
&&!
i
.
show_on_nonblock
)
&&
this
.
sticker
.
css
(
"display"
,
"none"
),
this
.
closer
=
o
(
"<div />"
,{
class
:
"ui-pnotify-closer"
,
"aria-role"
:
"button"
,
tabindex
:
"0"
,
title
:
i
.
labels
.
close
,
css
:{
cursor
:
"pointer"
,
visibility
:
i
.
closer_hover
?
"hidden"
:
"visible"
},
click
:
function
(){
s
.
remove
(
!
1
),
n
.
sticker
.
css
(
"visibility"
,
"hidden"
),
n
.
closer
.
css
(
"visibility"
,
"hidden"
)}}).
append
(
o
(
"<span />"
,{
class
:
null
===
i
.
classes
.
closer
?
s
.
styles
.
closer
:
i
.
classes
.
closer
})).
prependTo
(
s
.
container
),(
!
i
.
closer
||
s
.
options
.
nonblock
&&
s
.
options
.
nonblock
.
nonblock
&&!
i
.
show_on_nonblock
)
&&
this
.
closer
.
css
(
"display"
,
"none"
)},
update
:
function
(
o
,
s
){
!
s
.
closer
||
o
.
options
.
nonblock
&&
o
.
options
.
nonblock
.
nonblock
&&!
s
.
show_on_nonblock
?
this
.
closer
.
css
(
"display"
,
"none"
):
s
.
closer
&&
this
.
closer
.
css
(
"display"
,
"block"
),
!
s
.
sticker
||
o
.
options
.
nonblock
&&
o
.
options
.
nonblock
.
nonblock
&&!
s
.
show_on_nonblock
?
this
.
sticker
.
css
(
"display"
,
"none"
):
s
.
sticker
&&
this
.
sticker
.
css
(
"display"
,
"block"
),
this
.
sticker
.
trigger
(
"pnotify:buttons:toggleStick"
),
this
.
closer
.
find
(
"span"
).
attr
(
"class"
,
""
).
addClass
(
null
===
s
.
classes
.
closer
?
o
.
styles
.
closer
:
s
.
classes
.
closer
),
s
.
sticker_hover
?
this
.
sticker
.
css
(
"visibility"
,
"hidden"
):
o
.
options
.
nonblock
&&
o
.
options
.
nonblock
.
nonblock
&&!
s
.
show_on_nonblock
||
this
.
sticker
.
css
(
"visibility"
,
"visible"
),
s
.
closer_hover
?
this
.
closer
.
css
(
"visibility"
,
"hidden"
):
o
.
options
.
nonblock
&&
o
.
options
.
nonblock
.
nonblock
&&!
s
.
show_on_nonblock
||
this
.
closer
.
css
(
"visibility"
,
"visible"
)}},
o
.
extend
(
s
.
styling
.
brighttheme
,{
closer
:
"brighttheme-icon-closer"
,
pin_up
:
"brighttheme-icon-sticker"
,
pin_down
:
"brighttheme-icon-sticker brighttheme-icon-stuck"
}),
o
.
extend
(
s
.
styling
.
bootstrap3
,{
closer
:
"glyphicon glyphicon-remove"
,
pin_up
:
"glyphicon glyphicon-pause"
,
pin_down
:
"glyphicon glyphicon-play"
}),
o
.
extend
(
s
.
styling
.
fontawesome
,{
closer
:
"fa fa-times"
,
pin_up
:
"fa fa-pause"
,
pin_down
:
"fa fa-play"
}),
s
});
//# sourceMappingURL=pnotify.buttons.js.map
// Callbacks
!
function
(
o
,
t
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.callbacks"
,[
"jquery"
,
"pnotify"
],
t
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
t
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
t
(
o
.
jQuery
,
o
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
o
,
t
){
var
i
=
t
.
prototype
.
init
,
e
=
t
.
prototype
.
open
,
n
=
t
.
prototype
.
remove
;
return
t
.
prototype
.
init
=
function
(){
this
.
options
.
before_init
&&
this
.
options
.
before_init
(
this
.
options
),
i
.
apply
(
this
,
arguments
),
this
.
options
.
after_init
&&
this
.
options
.
after_init
(
this
)},
t
.
prototype
.
open
=
function
(){
var
o
;
this
.
options
.
before_open
&&
(
o
=
this
.
options
.
before_open
(
this
)),
!
1
!==
o
&&
(
e
.
apply
(
this
,
arguments
),
this
.
options
.
after_open
&&
this
.
options
.
after_open
(
this
))},
t
.
prototype
.
remove
=
function
(
o
){
var
t
;
this
.
options
.
before_close
&&
(
t
=
this
.
options
.
before_close
(
this
,
o
)),
!
1
!==
t
&&
(
n
.
apply
(
this
,
arguments
),
this
.
options
.
after_close
&&
this
.
options
.
after_close
(
this
,
o
))},
t
});
//# sourceMappingURL=pnotify.callbacks.js.map
// Confirm
!
function
(
t
,
n
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.confirm"
,[
"jquery"
,
"pnotify"
],
n
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
n
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
n
(
t
.
jQuery
,
t
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
t
,
n
){
return
n
.
prototype
.
options
.
confirm
=
{
confirm
:
!
1
,
prompt
:
!
1
,
prompt_class
:
""
,
prompt_default
:
""
,
prompt_multi_line
:
!
1
,
align
:
"right"
,
buttons
:[{
text
:
"Ok"
,
addClass
:
""
,
promptTrigger
:
!
0
,
click
:
function
(
t
,
n
){
t
.
remove
(),
t
.
get
().
trigger
(
"pnotify.confirm"
,[
t
,
n
])}},{
text
:
"Cancel"
,
addClass
:
""
,
click
:
function
(
t
){
t
.
remove
(),
t
.
get
().
trigger
(
"pnotify.cancel"
,
t
)}}]},
n
.
prototype
.
modules
.
confirm
=
{
init
:
function
(
n
,
o
){
this
.
container
=
t
(
'<div class="ui-pnotify-action-bar" style="margin-top:5px;clear:both;" />'
).
css
(
"text-align"
,
o
.
align
).
appendTo
(
n
.
container
),
o
.
confirm
||
o
.
prompt
?
this
.
makeDialog
(
n
,
o
):
this
.
container
.
hide
()},
update
:
function
(
t
,
n
){
n
.
confirm
?(
this
.
makeDialog
(
t
,
n
),
this
.
container
.
show
()):
this
.
container
.
hide
().
empty
()},
afterOpen
:
function
(
t
,
n
){
n
.
prompt
&&
this
.
prompt
.
focus
()},
makeDialog
:
function
(
o
,
e
){
var
i
,
s
,
r
=!
1
,
p
=
this
;
this
.
container
.
empty
(),
e
.
prompt
&&
(
this
.
prompt
=
t
(
"<"
+
(
e
.
prompt_multi_line
?
'textarea rows="5"'
:
'input type="text"'
)
+
' style="margin-bottom:5px;clear:both;" />'
).
addClass
((
void
0
===
o
.
styles
.
input
?
""
:
o
.
styles
.
input
)
+
" "
+
(
void
0
===
e
.
prompt_class
?
""
:
e
.
prompt_class
)).
val
(
e
.
prompt_default
).
appendTo
(
this
.
container
));
for
(
var
u
=
e
.
buttons
[
0
]
&&
e
.
buttons
[
0
]
!==
n
.
prototype
.
options
.
confirm
.
buttons
[
0
],
c
=
0
;
c
<
e
.
buttons
.
length
;
c
++
)
null
===
e
.
buttons
[
c
]
||
u
&&
n
.
prototype
.
options
.
confirm
.
buttons
[
c
]
&&
n
.
prototype
.
options
.
confirm
.
buttons
[
c
]
===
e
.
buttons
[
c
]
||
(
i
=
e
.
buttons
[
c
],
r
?
this
.
container
.
append
(
" "
):
r
=!
0
,
s
=
t
(
'<button type="button" class="ui-pnotify-action-button" />'
).
addClass
((
void
0
===
o
.
styles
.
btn
?
""
:
o
.
styles
.
btn
)
+
" "
+
(
void
0
===
i
.
addClass
?
""
:
i
.
addClass
)).
text
(
i
.
text
).
appendTo
(
this
.
container
).
on
(
"click"
,
function
(
t
){
return
function
(){
"function"
==
typeof
t
.
click
&&
t
.
click
(
o
,
e
.
prompt
?
p
.
prompt
.
val
():
null
)}}(
i
)),
e
.
prompt
&&!
e
.
prompt_multi_line
&&
i
.
promptTrigger
&&
this
.
prompt
.
keypress
(
function
(
t
){
return
function
(
n
){
13
==
n
.
keyCode
&&
t
.
click
()}}(
s
)),
o
.
styles
.
text
&&
s
.
wrapInner
(
'<span class="'
+
o
.
styles
.
text
+
'"></span>'
),
o
.
styles
.
btnhover
&&
s
.
hover
(
function
(
t
){
return
function
(){
t
.
addClass
(
o
.
styles
.
btnhover
)}}(
s
),
function
(
t
){
return
function
(){
t
.
removeClass
(
o
.
styles
.
btnhover
)}}(
s
)),
o
.
styles
.
btnactive
&&
s
.
on
(
"mousedown"
,
function
(
t
){
return
function
(){
t
.
addClass
(
o
.
styles
.
btnactive
)}}(
s
)).
on
(
"mouseup"
,
function
(
t
){
return
function
(){
t
.
removeClass
(
o
.
styles
.
btnactive
)}}(
s
)),
o
.
styles
.
btnfocus
&&
s
.
on
(
"focus"
,
function
(
t
){
return
function
(){
t
.
addClass
(
o
.
styles
.
btnfocus
)}}(
s
)).
on
(
"blur"
,
function
(
t
){
return
function
(){
t
.
removeClass
(
o
.
styles
.
btnfocus
)}}(
s
)))}},
t
.
extend
(
n
.
styling
.
bootstrap3
,{
btn
:
"btn btn-default"
,
input
:
"form-control"
}),
t
.
extend
(
n
.
styling
.
fontawesome
,{
btn
:
"btn btn-default"
,
input
:
"form-control"
}),
n
});
//# sourceMappingURL=pnotify.confirm.js.map
// Desktop
!
function
(
i
,
t
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.desktop"
,[
"jquery"
,
"pnotify"
],
t
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
t
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
t
(
i
.
jQuery
,
i
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
i
,
t
){
var
o
,
n
=
function
(
i
,
t
){
return
(
n
=
"Notification"
in
window
?
function
(
i
,
t
){
return
new
Notification
(
i
,
t
)}:
"mozNotification"
in
navigator
?
function
(
i
,
t
){
return
navigator
.
mozNotification
.
createNotification
(
i
,
t
.
body
,
t
.
icon
).
show
()}:
"webkitNotifications"
in
window
?
function
(
i
,
t
){
return
window
.
webkitNotifications
.
createNotification
(
t
.
icon
,
i
,
t
.
body
)}:
function
(
i
,
t
){
return
null
})(
i
,
t
)};
return
t
.
prototype
.
options
.
desktop
=
{
desktop
:
!
1
,
fallback
:
!
0
,
icon
:
null
,
tag
:
null
,
title
:
null
,
text
:
null
},
t
.
prototype
.
modules
.
desktop
=
{
genNotice
:
function
(
i
,
t
){
null
===
t
.
icon
?
this
.
icon
=
"http://sciactive.com/pnotify/includes/desktop/"
+
i
.
options
.
type
+
".png"
:
!
1
===
t
.
icon
?
this
.
icon
=
null
:
this
.
icon
=
t
.
icon
,
null
!==
this
.
tag
&&
null
===
t
.
tag
||
(
this
.
tag
=
null
===
t
.
tag
?
"PNotify-"
+
Math
.
round
(
1
e6
*
Math
.
random
()):
t
.
tag
),
i
.
desktop
=
n
(
t
.
title
||
i
.
options
.
title
,{
icon
:
this
.
icon
,
body
:
t
.
text
||
i
.
options
.
text
,
tag
:
this
.
tag
}),
!
(
"close"
in
i
.
desktop
)
&&
"cancel"
in
i
.
desktop
&&
(
i
.
desktop
.
close
=
function
(){
i
.
desktop
.
cancel
()}),
i
.
desktop
.
onclick
=
function
(){
i
.
elem
.
trigger
(
"click"
)},
i
.
desktop
.
onclose
=
function
(){
"closing"
!==
i
.
state
&&
"closed"
!==
i
.
state
&&
i
.
remove
()}},
init
:
function
(
i
,
n
){
if
(
n
.
desktop
){
if
(
0
!==
(
o
=
t
.
desktop
.
checkPermission
()))
return
void
(
n
.
fallback
||
(
i
.
options
.
auto_display
=!
1
));
this
.
genNotice
(
i
,
n
)}},
update
:
function
(
i
,
t
,
n
){
0
!==
o
&&
t
.
fallback
||!
t
.
desktop
||
this
.
genNotice
(
i
,
t
)},
beforeOpen
:
function
(
i
,
t
){
0
!==
o
&&
t
.
fallback
||!
t
.
desktop
||
i
.
elem
.
css
({
left
:
"-10000px"
}).
removeClass
(
"ui-pnotify-in"
)},
afterOpen
:
function
(
i
,
t
){
0
!==
o
&&
t
.
fallback
||!
t
.
desktop
||
(
i
.
elem
.
css
({
left
:
"-10000px"
}).
removeClass
(
"ui-pnotify-in"
),
"show"
in
i
.
desktop
&&
i
.
desktop
.
show
())},
beforeClose
:
function
(
i
,
t
){
0
!==
o
&&
t
.
fallback
||!
t
.
desktop
||
i
.
elem
.
css
({
left
:
"-10000px"
}).
removeClass
(
"ui-pnotify-in"
)},
afterClose
:
function
(
i
,
t
){
0
!==
o
&&
t
.
fallback
||!
t
.
desktop
||
(
i
.
elem
.
css
({
left
:
"-10000px"
}).
removeClass
(
"ui-pnotify-in"
),
"close"
in
i
.
desktop
&&
i
.
desktop
.
close
())}},
t
.
desktop
=
{
permission
:
function
(){
"undefined"
!=
typeof
Notification
&&
"requestPermission"
in
Notification
?
Notification
.
requestPermission
():
"webkitNotifications"
in
window
&&
window
.
webkitNotifications
.
requestPermission
()},
checkPermission
:
function
(){
return
"undefined"
!=
typeof
Notification
&&
"permission"
in
Notification
?
"granted"
===
Notification
.
permission
?
0
:
1
:
"webkitNotifications"
in
window
&&
0
==
window
.
webkitNotifications
.
checkPermission
()?
0
:
1
}},
o
=
t
.
desktop
.
checkPermission
(),
t
});
//# sourceMappingURL=pnotify.desktop.js.map
// History
!
function
(
t
,
i
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.history"
,[
"jquery"
,
"pnotify"
],
i
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
i
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
i
(
t
.
jQuery
,
t
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
t
,
i
){
var
e
,
o
;
return
t
(
function
(){
t
(
"body"
).
on
(
"pnotify.history-all"
,
function
(){
t
.
each
(
i
.
notices
,
function
(){
this
.
modules
.
history
.
inHistory
&&
(
this
.
elem
.
is
(
":visible"
)?
this
.
options
.
hide
&&
this
.
queueRemove
():
this
.
open
&&
this
.
open
())})}).
on
(
"pnotify.history-last"
,
function
(){
var
t
,
e
=
"top"
===
i
.
prototype
.
options
.
stack
.
push
,
o
=
e
?
0
:
-
1
;
do
{
if
(
t
=-
1
===
o
?
i
.
notices
.
slice
(
o
):
i
.
notices
.
slice
(
o
,
o
+
1
),
!
t
[
0
])
return
!
1
;
o
=
e
?
o
+
1
:
o
-
1
}
while
(
!
t
[
0
].
modules
.
history
.
inHistory
||
t
[
0
].
elem
.
is
(
":visible"
));
t
[
0
].
open
&&
t
[
0
].
open
()})}),
i
.
prototype
.
options
.
history
=
{
history
:
!
0
,
menu
:
!
1
,
fixed
:
!
0
,
maxonscreen
:
1
/
0
,
labels
:{
redisplay
:
"Redisplay"
,
all
:
"All"
,
last
:
"Last"
}},
i
.
prototype
.
modules
.
history
=
{
init
:
function
(
i
,
n
){
if
(
i
.
options
.
destroy
=!
1
,
this
.
inHistory
=
n
.
history
,
n
.
menu
&&
void
0
===
e
){
e
=
t
(
"<div />"
,{
class
:
"ui-pnotify-history-container "
+
i
.
styles
.
hi_menu
,
mouseleave
:
function
(){
e
.
css
(
"top"
,
"-"
+
o
+
"px"
)}}).
append
(
t
(
"<div />"
,{
class
:
"ui-pnotify-history-header"
,
text
:
n
.
labels
.
redisplay
})).
append
(
t
(
"<button />"
,{
class
:
"ui-pnotify-history-all "
+
i
.
styles
.
hi_btn
,
text
:
n
.
labels
.
all
,
mouseenter
:
function
(){
t
(
this
).
addClass
(
i
.
styles
.
hi_btnhov
)},
mouseleave
:
function
(){
t
(
this
).
removeClass
(
i
.
styles
.
hi_btnhov
)},
click
:
function
(){
return
t
(
this
).
trigger
(
"pnotify.history-all"
),
!
1
}})).
append
(
t
(
"<button />"
,{
class
:
"ui-pnotify-history-last "
+
i
.
styles
.
hi_btn
,
text
:
n
.
labels
.
last
,
mouseenter
:
function
(){
t
(
this
).
addClass
(
i
.
styles
.
hi_btnhov
)},
mouseleave
:
function
(){
t
(
this
).
removeClass
(
i
.
styles
.
hi_btnhov
)},
click
:
function
(){
return
t
(
this
).
trigger
(
"pnotify.history-last"
),
!
1
}})).
appendTo
(
"body"
);
var
s
=
t
(
"<span />"
,{
class
:
"ui-pnotify-history-pulldown "
+
i
.
styles
.
hi_hnd
,
mouseenter
:
function
(){
e
.
css
(
"top"
,
"0"
)}}).
appendTo
(
e
);
o
=
s
.
offset
().
top
+
2
,
e
.
css
(
"top"
,
"-"
+
o
+
"px"
),
n
.
fixed
&&
e
.
addClass
(
"ui-pnotify-history-fixed"
)}},
update
:
function
(
t
,
i
){
this
.
inHistory
=
i
.
history
,
i
.
fixed
&&
e
?
e
.
addClass
(
"ui-pnotify-history-fixed"
):
e
&&
e
.
removeClass
(
"ui-pnotify-history-fixed"
)},
beforeOpen
:
function
(
e
,
o
){
if
(
i
.
notices
&&
i
.
notices
.
length
>
o
.
maxonscreen
){
var
n
;
n
=
"top"
!==
e
.
options
.
stack
.
push
?
i
.
notices
.
slice
(
0
,
i
.
notices
.
length
-
o
.
maxonscreen
):
i
.
notices
.
slice
(
o
.
maxonscreen
,
i
.
notices
.
length
),
t
.
each
(
n
,
function
(){
this
.
remove
&&
this
.
remove
()})}}},
t
.
extend
(
i
.
styling
.
brighttheme
,{
hi_menu
:
"ui-pnotify-history-brighttheme"
,
hi_btn
:
""
,
hi_btnhov
:
""
,
hi_hnd
:
""
}),
t
.
extend
(
i
.
styling
.
bootstrap3
,{
hi_menu
:
"well"
,
hi_btn
:
"btn btn-default"
,
hi_btnhov
:
""
,
hi_hnd
:
"glyphicon glyphicon-chevron-down"
}),
t
.
extend
(
i
.
styling
.
fontawesome
,{
hi_menu
:
"well"
,
hi_btn
:
"btn btn-default"
,
hi_btnhov
:
""
,
hi_hnd
:
"fa fa-chevron-down"
}),
i
});
//# sourceMappingURL=pnotify.history.js.map
// Mobile
!
function
(
i
,
o
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.mobile"
,[
"jquery"
,
"pnotify"
],
o
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
o
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
o
(
i
.
jQuery
,
i
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
i
,
o
){
return
o
.
prototype
.
options
.
mobile
=
{
swipe_dismiss
:
!
0
,
styling
:
!
0
},
o
.
prototype
.
modules
.
mobile
=
{
init
:
function
(
i
,
o
){
var
t
=
this
,
e
=
null
,
n
=
null
,
s
=
null
;
this
.
swipe_dismiss
=
o
.
swipe_dismiss
,
this
.
doMobileStyling
(
i
,
o
),
i
.
elem
.
on
({
touchstart
:
function
(
o
){
t
.
swipe_dismiss
&&
(
e
=
o
.
originalEvent
.
touches
[
0
].
screenX
,
s
=
i
.
elem
.
width
(),
i
.
container
.
css
(
"left"
,
"0"
))},
touchmove
:
function
(
o
){
if
(
e
&&
t
.
swipe_dismiss
){
var
a
=
o
.
originalEvent
.
touches
[
0
].
screenX
;
n
=
a
-
e
;
var
c
=
(
1
-
Math
.
abs
(
n
)
/
s
)
*
i
.
options
.
opacity
;
i
.
elem
.
css
(
"opacity"
,
c
),
i
.
container
.
css
(
"left"
,
n
)}},
touchend
:
function
(){
if
(
e
&&
t
.
swipe_dismiss
){
if
(
Math
.
abs
(
n
)
>
40
){
var
o
=
n
<
0
?
-
2
*
s
:
2
*
s
;
i
.
elem
.
animate
({
opacity
:
0
},
100
),
i
.
container
.
animate
({
left
:
o
},
100
),
i
.
remove
()}
else
i
.
elem
.
animate
({
opacity
:
i
.
options
.
opacity
},
100
),
i
.
container
.
animate
({
left
:
0
},
100
);
e
=
null
,
n
=
null
,
s
=
null
}},
touchcancel
:
function
(){
e
&&
t
.
swipe_dismiss
&&
(
i
.
elem
.
animate
({
opacity
:
i
.
options
.
opacity
},
100
),
i
.
container
.
animate
({
left
:
0
},
100
),
e
=
null
,
n
=
null
,
s
=
null
)}})},
update
:
function
(
i
,
o
){
this
.
swipe_dismiss
=
o
.
swipe_dismiss
,
this
.
doMobileStyling
(
i
,
o
)},
doMobileStyling
:
function
(
o
,
t
){
t
.
styling
?(
o
.
elem
.
addClass
(
"ui-pnotify-mobile-able"
),
i
(
window
).
width
()
<=
480
?(
o
.
options
.
stack
.
mobileOrigSpacing1
||
(
o
.
options
.
stack
.
mobileOrigSpacing1
=
o
.
options
.
stack
.
spacing1
,
o
.
options
.
stack
.
mobileOrigSpacing2
=
o
.
options
.
stack
.
spacing2
),
o
.
options
.
stack
.
spacing1
=
0
,
o
.
options
.
stack
.
spacing2
=
0
):(
o
.
options
.
stack
.
mobileOrigSpacing1
||
o
.
options
.
stack
.
mobileOrigSpacing2
)
&&
(
o
.
options
.
stack
.
spacing1
=
o
.
options
.
stack
.
mobileOrigSpacing1
,
delete
o
.
options
.
stack
.
mobileOrigSpacing1
,
o
.
options
.
stack
.
spacing2
=
o
.
options
.
stack
.
mobileOrigSpacing2
,
delete
o
.
options
.
stack
.
mobileOrigSpacing2
)):(
o
.
elem
.
removeClass
(
"ui-pnotify-mobile-able"
),
o
.
options
.
stack
.
mobileOrigSpacing1
&&
(
o
.
options
.
stack
.
spacing1
=
o
.
options
.
stack
.
mobileOrigSpacing1
,
delete
o
.
options
.
stack
.
mobileOrigSpacing1
),
o
.
options
.
stack
.
mobileOrigSpacing2
&&
(
o
.
options
.
stack
.
spacing2
=
o
.
options
.
stack
.
mobileOrigSpacing2
,
delete
o
.
options
.
stack
.
mobileOrigSpacing2
))}},
o
});
//# sourceMappingURL=pnotify.mobile.js.map
// Nonblock
!
function
(
o
,
e
){
"function"
==
typeof
define
&&
define
.
amd
?
define
(
"pnotify.nonblock"
,[
"jquery"
,
"pnotify"
],
e
):
"object"
==
typeof
exports
&&
"undefined"
!=
typeof
module
?
module
.
exports
=
e
(
require
(
"jquery"
),
require
(
"./pnotify"
)):
e
(
o
.
jQuery
,
o
.
PNotify
)}(
"undefined"
!=
typeof
window
?
window
:
this
,
function
(
o
,
e
){
var
n
,
t
=
function
(
e
,
n
){
var
t
;
if
(
e
=
e
.
toLowerCase
(),
document
.
createEvent
&&
this
.
dispatchEvent
){
if
(
e
=
e
.
replace
(
/^on/
,
""
),
e
.
match
(
/^
(
dbl
)?
click$|^mouse
(
move|down|up|over|out|enter|leave
)
$|^contextmenu$/
)?(
o
(
this
).
offset
(),
t
=
document
.
createEvent
(
"MouseEvents"
),
t
.
initMouseEvent
(
e
,
n
.
bubbles
,
n
.
cancelable
,
n
.
view
,
n
.
detail
,
n
.
screenX
,
n
.
screenY
,
n
.
clientX
,
n
.
clientY
,
n
.
ctrlKey
,
n
.
altKey
,
n
.
shiftKey
,
n
.
metaKey
,
n
.
button
,
n
.
relatedTarget
)):
e
.
match
(
/^
(
focus|blur|select|change|reset
)
$|^key
(
press|down|up
)
$/
)?(
t
=
document
.
createEvent
(
"UIEvents"
),
t
.
initUIEvent
(
e
,
n
.
bubbles
,
n
.
cancelable
,
n
.
view
,
n
.
detail
)):
e
.
match
(
/^
(
scroll|resize|
(
un
)?
load|abort|error
)
$/
)
&&
(
t
=
document
.
createEvent
(
"HTMLEvents"
),
t
.
initEvent
(
e
,
n
.
bubbles
,
n
.
cancelable
)),
!
t
)
return
;
this
.
dispatchEvent
(
t
)}
else
e
.
match
(
/^on/
)
||
(
e
=
"on"
+
e
),
t
=
document
.
createEventObject
(
n
),
this
.
fireEvent
(
e
,
t
)},
i
=
function
(
e
,
i
,
c
){
e
.
elem
.
addClass
(
"ui-pnotify-nonblock-hide"
);
var
l
=
document
.
elementFromPoint
(
i
.
clientX
,
i
.
clientY
);
e
.
elem
.
removeClass
(
"ui-pnotify-nonblock-hide"
);
var
s
=
o
(
l
),
a
=
s
.
css
(
"cursor"
);
"auto"
===
a
&&
"A"
===
l
.
tagName
&&
(
a
=
"pointer"
),
e
.
elem
.
css
(
"cursor"
,
"auto"
!==
a
?
a
:
"default"
),
n
&&
n
.
get
(
0
)
==
l
||
(
n
&&
(
t
.
call
(
n
.
get
(
0
),
"mouseleave"
,
i
.
originalEvent
),
t
.
call
(
n
.
get
(
0
),
"mouseout"
,
i
.
originalEvent
)),
t
.
call
(
l
,
"mouseenter"
,
i
.
originalEvent
),
t
.
call
(
l
,
"mouseover"
,
i
.
originalEvent
)),
t
.
call
(
l
,
c
,
i
.
originalEvent
),
n
=
s
};
return
e
.
prototype
.
options
.
nonblock
=
{
nonblock
:
!
1
},
e
.
prototype
.
modules
.
nonblock
=
{
init
:
function
(
o
,
e
){
var
t
=
this
;
o
.
elem
.
on
({
mouseenter
:
function
(
e
){
t
.
options
.
nonblock
&&
e
.
stopPropagation
(),
t
.
options
.
nonblock
&&
o
.
elem
.
addClass
(
"ui-pnotify-nonblock-fade"
)},
mouseleave
:
function
(
e
){
t
.
options
.
nonblock
&&
e
.
stopPropagation
(),
n
=
null
,
o
.
elem
.
css
(
"cursor"
,
"auto"
),
t
.
options
.
nonblock
&&
"out"
!==
o
.
animating
&&
o
.
elem
.
removeClass
(
"ui-pnotify-nonblock-fade"
)},
mouseover
:
function
(
o
){
t
.
options
.
nonblock
&&
o
.
stopPropagation
()},
mouseout
:
function
(
o
){
t
.
options
.
nonblock
&&
o
.
stopPropagation
()},
mousemove
:
function
(
e
){
t
.
options
.
nonblock
&&
(
e
.
stopPropagation
(),
i
(
o
,
e
,
"onmousemove"
))},
mousedown
:
function
(
e
){
t
.
options
.
nonblock
&&
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
i
(
o
,
e
,
"onmousedown"
))},
mouseup
:
function
(
e
){
t
.
options
.
nonblock
&&
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
i
(
o
,
e
,
"onmouseup"
))},
click
:
function
(
e
){
t
.
options
.
nonblock
&&
(
e
.
stopPropagation
(),
i
(
o
,
e
,
"onclick"
))},
dblclick
:
function
(
e
){
t
.
options
.
nonblock
&&
(
e
.
stopPropagation
(),
i
(
o
,
e
,
"ondblclick"
))}})}},
e
});
//# sourceMappingURL=pnotify.nonblock.js.map
dashboardv2/public/js/external_lib/pnotify/pnotify.js
deleted
100644 → 0
View file @
30ec76c8
/*
PNotify 3.0.0 sciactive.com/pnotify/
(C) 2015 Hunter Perrin; Google, Inc.
license Apache-2.0
*/
(
function
(
b
,
k
){
"function"
===
typeof
define
&&
define
.
amd
?
define
(
"pnotify"
,[
"jquery"
],
function
(
q
){
return
k
(
q
,
b
)}):
"object"
===
typeof
exports
&&
"undefined"
!==
typeof
module
?
module
.
exports
=
k
(
require
(
"jquery"
),
global
||
b
):
b
.
PNotify
=
k
(
b
.
jQuery
,
b
)})(
"undefined"
!==
typeof
window
?
window
:
this
,
function
(
b
,
k
){
var
q
=
function
(
l
){
var
k
=
{
dir1
:
"down"
,
dir2
:
"left"
,
push
:
"bottom"
,
spacing1
:
36
,
spacing2
:
36
,
context
:
b
(
"body"
),
modal
:
!
1
},
g
,
h
,
n
=
b
(
l
),
r
=
function
(){
h
=
b
(
"body"
);
d
.
prototype
.
options
.
stack
.
context
=
h
;
n
=
b
(
l
);
n
.
bind
(
"resize"
,
function
(){
g
&&
clearTimeout
(
g
);
g
=
setTimeout
(
function
(){
d
.
positionAll
(
!
0
)},
10
)})},
s
=
function
(
c
){
var
a
=
b
(
"<div />"
,{
"class"
:
"ui-pnotify-modal-overlay"
});
a
.
prependTo
(
c
.
context
);
c
.
overlay_close
&&
a
.
click
(
function
(){
d
.
removeStack
(
c
)});
return
a
},
d
=
function
(
c
){
this
.
parseOptions
(
c
);
this
.
init
()};
b
.
extend
(
d
.
prototype
,{
version
:
"3.0.0"
,
options
:{
title
:
!
1
,
title_escape
:
!
1
,
text
:
!
1
,
text_escape
:
!
1
,
styling
:
"brighttheme"
,
addclass
:
""
,
cornerclass
:
""
,
auto_display
:
!
0
,
width
:
"300px"
,
min_height
:
"16px"
,
type
:
"notice"
,
icon
:
!
0
,
animation
:
"fade"
,
animate_speed
:
"normal"
,
shadow
:
!
0
,
hide
:
!
0
,
delay
:
8
E3
,
mouse_reset
:
!
0
,
remove
:
!
0
,
insert_brs
:
!
0
,
destroy
:
!
0
,
stack
:
k
},
modules
:{},
runModules
:
function
(
c
,
a
){
var
p
,
b
;
for
(
b
in
this
.
modules
)
p
=
"object"
===
typeof
a
&&
b
in
a
?
a
[
b
]:
a
,
"function"
===
typeof
this
.
modules
[
b
][
c
]
&&
(
this
.
modules
[
b
].
notice
=
this
,
this
.
modules
[
b
].
options
=
"object"
===
typeof
this
.
options
[
b
]?
this
.
options
[
b
]:{},
this
.
modules
[
b
][
c
](
this
,
"object"
===
typeof
this
.
options
[
b
]?
this
.
options
[
b
]:{},
p
))},
state
:
"initializing"
,
timer
:
null
,
animTimer
:
null
,
styles
:
null
,
elem
:
null
,
container
:
null
,
title_container
:
null
,
text_container
:
null
,
animating
:
!
1
,
timerHide
:
!
1
,
init
:
function
(){
var
c
=
this
;
this
.
modules
=
{};
b
.
extend
(
!
0
,
this
.
modules
,
d
.
prototype
.
modules
);
this
.
styles
=
"object"
===
typeof
this
.
options
.
styling
?
this
.
options
.
styling
:
d
.
styling
[
this
.
options
.
styling
];
this
.
elem
=
b
(
"<div />"
,{
"class"
:
"ui-pnotify "
+
this
.
options
.
addclass
,
css
:{
display
:
"none"
},
"aria-live"
:
"assertive"
,
"aria-role"
:
"alertdialog"
,
mouseenter
:
function
(
a
){
if
(
c
.
options
.
mouse_reset
&&
"out"
===
c
.
animating
){
if
(
!
c
.
timerHide
)
return
;
c
.
cancelRemove
()}
c
.
options
.
hide
&&
c
.
options
.
mouse_reset
&&
c
.
cancelRemove
()},
mouseleave
:
function
(
a
){
c
.
options
.
hide
&&
c
.
options
.
mouse_reset
&&
"out"
!==
c
.
animating
&&
c
.
queueRemove
();
d
.
positionAll
()}});
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-"
+
this
.
options
.
animate_speed
);
this
.
container
=
b
(
"<div />"
,{
"class"
:
this
.
styles
.
container
+
" ui-pnotify-container "
+
(
"error"
===
this
.
options
.
type
?
this
.
styles
.
error
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success
:
this
.
styles
.
notice
),
role
:
"alert"
}).
appendTo
(
this
.
elem
);
""
!==
this
.
options
.
cornerclass
&&
this
.
container
.
removeClass
(
"ui-corner-all"
).
addClass
(
this
.
options
.
cornerclass
);
this
.
options
.
shadow
&&
this
.
container
.
addClass
(
"ui-pnotify-shadow"
);
!
1
!==
this
.
options
.
icon
&&
b
(
"<div />"
,{
"class"
:
"ui-pnotify-icon"
}).
append
(
b
(
"<span />"
,{
"class"
:
!
0
===
this
.
options
.
icon
?
"error"
===
this
.
options
.
type
?
this
.
styles
.
error_icon
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info_icon
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success_icon
:
this
.
styles
.
notice_icon
:
this
.
options
.
icon
})).
prependTo
(
this
.
container
);
this
.
title_container
=
b
(
"<h4 />"
,{
"class"
:
"ui-pnotify-title"
}).
appendTo
(
this
.
container
);
!
1
===
this
.
options
.
title
?
this
.
title_container
.
hide
():
this
.
options
.
title_escape
?
this
.
title_container
.
text
(
this
.
options
.
title
):
this
.
title_container
.
html
(
this
.
options
.
title
);
this
.
text_container
=
b
(
"<div />"
,{
"class"
:
"ui-pnotify-text"
,
"aria-role"
:
"alert"
}).
appendTo
(
this
.
container
);
!
1
===
this
.
options
.
text
?
this
.
text_container
.
hide
():
this
.
options
.
text_escape
?
this
.
text_container
.
text
(
this
.
options
.
text
):
this
.
text_container
.
html
(
this
.
options
.
insert_brs
?
String
(
this
.
options
.
text
).
replace
(
/
\n
/g
,
"<br />"
):
this
.
options
.
text
);
"string"
===
typeof
this
.
options
.
width
&&
this
.
elem
.
css
(
"width"
,
this
.
options
.
width
);
"string"
===
typeof
this
.
options
.
min_height
&&
this
.
container
.
css
(
"min-height"
,
this
.
options
.
min_height
);
d
.
notices
=
"top"
===
this
.
options
.
stack
.
push
?
b
.
merge
([
this
],
d
.
notices
):
b
.
merge
(
d
.
notices
,[
this
]);
"top"
===
this
.
options
.
stack
.
push
&&
this
.
queuePosition
(
!
1
,
1
);
this
.
options
.
stack
.
animation
=
!
1
;
this
.
runModules
(
"init"
);
this
.
options
.
auto_display
&&
this
.
open
();
return
this
},
update
:
function
(
c
){
var
a
=
this
.
options
;
this
.
parseOptions
(
a
,
c
);
this
.
elem
.
removeClass
(
"ui-pnotify-fade-slow ui-pnotify-fade-normal ui-pnotify-fade-fast"
);
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-"
+
this
.
options
.
animate_speed
);
this
.
options
.
cornerclass
!==
a
.
cornerclass
&&
this
.
container
.
removeClass
(
"ui-corner-all "
+
a
.
cornerclass
).
addClass
(
this
.
options
.
cornerclass
);
this
.
options
.
shadow
!==
a
.
shadow
&&
(
this
.
options
.
shadow
?
this
.
container
.
addClass
(
"ui-pnotify-shadow"
):
this
.
container
.
removeClass
(
"ui-pnotify-shadow"
));
!
1
===
this
.
options
.
addclass
?
this
.
elem
.
removeClass
(
a
.
addclass
):
this
.
options
.
addclass
!==
a
.
addclass
&&
this
.
elem
.
removeClass
(
a
.
addclass
).
addClass
(
this
.
options
.
addclass
);
!
1
===
this
.
options
.
title
?
this
.
title_container
.
slideUp
(
"fast"
):
this
.
options
.
title
!==
a
.
title
&&
(
this
.
options
.
title_escape
?
this
.
title_container
.
text
(
this
.
options
.
title
):
this
.
title_container
.
html
(
this
.
options
.
title
),
!
1
===
a
.
title
&&
this
.
title_container
.
slideDown
(
200
));
!
1
===
this
.
options
.
text
?
this
.
text_container
.
slideUp
(
"fast"
):
this
.
options
.
text
!==
a
.
text
&&
(
this
.
options
.
text_escape
?
this
.
text_container
.
text
(
this
.
options
.
text
):
this
.
text_container
.
html
(
this
.
options
.
insert_brs
?
String
(
this
.
options
.
text
).
replace
(
/
\n
/g
,
"<br />"
):
this
.
options
.
text
),
!
1
===
a
.
text
&&
this
.
text_container
.
slideDown
(
200
));
this
.
options
.
type
!==
a
.
type
&&
this
.
container
.
removeClass
(
this
.
styles
.
error
+
" "
+
this
.
styles
.
notice
+
" "
+
this
.
styles
.
success
+
" "
+
this
.
styles
.
info
).
addClass
(
"error"
===
this
.
options
.
type
?
this
.
styles
.
error
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success
:
this
.
styles
.
notice
);
if
(
this
.
options
.
icon
!==
a
.
icon
||!
0
===
this
.
options
.
icon
&&
this
.
options
.
type
!==
a
.
type
)
this
.
container
.
find
(
"div.ui-pnotify-icon"
).
remove
(),
!
1
!==
this
.
options
.
icon
&&
b
(
"<div />"
,{
"class"
:
"ui-pnotify-icon"
}).
append
(
b
(
"<span />"
,{
"class"
:
!
0
===
this
.
options
.
icon
?
"error"
===
this
.
options
.
type
?
this
.
styles
.
error_icon
:
"info"
===
this
.
options
.
type
?
this
.
styles
.
info_icon
:
"success"
===
this
.
options
.
type
?
this
.
styles
.
success_icon
:
this
.
styles
.
notice_icon
:
this
.
options
.
icon
})).
prependTo
(
this
.
container
);
this
.
options
.
width
!==
a
.
width
&&
this
.
elem
.
animate
({
width
:
this
.
options
.
width
});
this
.
options
.
min_height
!==
a
.
min_height
&&
this
.
container
.
animate
({
minHeight
:
this
.
options
.
min_height
});
this
.
options
.
hide
?
a
.
hide
||
this
.
queueRemove
():
this
.
cancelRemove
();
this
.
queuePosition
(
!
0
);
this
.
runModules
(
"update"
,
a
);
return
this
},
open
:
function
(){
this
.
state
=
"opening"
;
this
.
runModules
(
"beforeOpen"
);
var
c
=
this
;
this
.
elem
.
parent
().
length
||
this
.
elem
.
appendTo
(
this
.
options
.
stack
.
context
?
this
.
options
.
stack
.
context
:
h
);
"top"
!==
this
.
options
.
stack
.
push
&&
this
.
position
(
!
0
);
this
.
animateIn
(
function
(){
c
.
queuePosition
(
!
0
);
c
.
options
.
hide
&&
c
.
queueRemove
();
c
.
state
=
"open"
;
c
.
runModules
(
"afterOpen"
)});
return
this
},
remove
:
function
(
c
){
this
.
state
=
"closing"
;
this
.
timerHide
=!!
c
;
this
.
runModules
(
"beforeClose"
);
var
a
=
this
;
this
.
timer
&&
(
l
.
clearTimeout
(
this
.
timer
),
this
.
timer
=
null
);
this
.
animateOut
(
function
(){
a
.
state
=
"closed"
;
a
.
runModules
(
"afterClose"
);
a
.
queuePosition
(
!
0
);
a
.
options
.
remove
&&
a
.
elem
.
detach
();
a
.
runModules
(
"beforeDestroy"
);
if
(
a
.
options
.
destroy
&&
null
!==
d
.
notices
){
var
c
=
b
.
inArray
(
a
,
d
.
notices
);
-
1
!==
c
&&
d
.
notices
.
splice
(
c
,
1
)}
a
.
runModules
(
"afterDestroy"
)});
return
this
},
get
:
function
(){
return
this
.
elem
},
parseOptions
:
function
(
c
,
a
){
this
.
options
=
b
.
extend
(
!
0
,{},
d
.
prototype
.
options
);
this
.
options
.
stack
=
d
.
prototype
.
options
.
stack
;
for
(
var
p
=
[
c
,
a
],
m
,
f
=
0
;
f
<
p
.
length
;
f
++
){
m
=
p
[
f
];
if
(
"undefined"
===
typeof
m
)
break
;
if
(
"object"
!==
typeof
m
)
this
.
options
.
text
=
m
;
else
for
(
var
e
in
m
)
this
.
modules
[
e
]?
b
.
extend
(
!
0
,
this
.
options
[
e
],
m
[
e
]):
this
.
options
[
e
]
=
m
[
e
]}},
animateIn
:
function
(
c
){
this
.
animating
=
"in"
;
var
a
=
this
;
c
=
function
(){
a
.
animTimer
&&
clearTimeout
(
a
.
animTimer
);
"in"
===
a
.
animating
&&
(
a
.
elem
.
is
(
":visible"
)?(
this
&&
this
.
call
(),
a
.
animating
=!
1
):
a
.
animTimer
=
setTimeout
(
c
,
40
))}.
bind
(
c
);
"fade"
===
this
.
options
.
animation
?(
this
.
elem
.
one
(
"webkitTransitionEnd mozTransitionEnd MSTransitionEnd oTransitionEnd transitionend"
,
c
).
addClass
(
"ui-pnotify-in"
),
this
.
elem
.
css
(
"opacity"
),
this
.
elem
.
addClass
(
"ui-pnotify-fade-in"
),
this
.
animTimer
=
setTimeout
(
c
,
650
)):(
this
.
elem
.
addClass
(
"ui-pnotify-in"
),
c
())},
animateOut
:
function
(
c
){
this
.
animating
=
"out"
;
var
a
=
this
;
c
=
function
(){
a
.
animTimer
&&
clearTimeout
(
a
.
animTimer
);
"out"
===
a
.
animating
&&
(
"0"
!=
a
.
elem
.
css
(
"opacity"
)
&&
a
.
elem
.
is
(
":visible"
)?
a
.
animTimer
=
setTimeout
(
c
,
40
):(
a
.
elem
.
removeClass
(
"ui-pnotify-in"
),
this
&&
this
.
call
(),
a
.
animating
=!
1
))}.
bind
(
c
);
"fade"
===
this
.
options
.
animation
?(
this
.
elem
.
one
(
"webkitTransitionEnd mozTransitionEnd MSTransitionEnd oTransitionEnd transitionend"
,
c
).
removeClass
(
"ui-pnotify-fade-in"
),
this
.
animTimer
=
setTimeout
(
c
,
650
)):(
this
.
elem
.
removeClass
(
"ui-pnotify-in"
),
c
())},
position
:
function
(
c
){
var
a
=
this
.
options
.
stack
,
b
=
this
.
elem
;
"undefined"
===
typeof
a
.
context
&&
(
a
.
context
=
h
);
if
(
a
){
"number"
!==
typeof
a
.
nextpos1
&&
(
a
.
nextpos1
=
a
.
firstpos1
);
"number"
!==
typeof
a
.
nextpos2
&&
(
a
.
nextpos2
=
a
.
firstpos2
);
"number"
!==
typeof
a
.
addpos2
&&
(
a
.
addpos2
=
0
);
var
d
=!
b
.
hasClass
(
"ui-pnotify-in"
);
if
(
!
d
||
c
){
a
.
modal
&&
(
a
.
overlay
?
a
.
overlay
.
show
():
a
.
overlay
=
s
(
a
));
b
.
addClass
(
"ui-pnotify-move"
);
var
f
;
switch
(
a
.
dir1
){
case
"down"
:
f
=
"top"
;
break
;
case
"up"
:
f
=
"bottom"
;
break
;
case
"left"
:
f
=
"right"
;
break
;
case
"right"
:
f
=
"left"
}
c
=
parseInt
(
b
.
css
(
f
).
replace
(
/
(?:\.
.*|
[^
0-9.
])
/g
,
""
));
isNaN
(
c
)
&&
(
c
=
0
);
"undefined"
!==
typeof
a
.
firstpos1
||
d
||
(
a
.
firstpos1
=
c
,
a
.
nextpos1
=
a
.
firstpos1
);
var
e
;
switch
(
a
.
dir2
){
case
"down"
:
e
=
"top"
;
break
;
case
"up"
:
e
=
"bottom"
;
break
;
case
"left"
:
e
=
"right"
;
break
;
case
"right"
:
e
=
"left"
}
c
=
parseInt
(
b
.
css
(
e
).
replace
(
/
(?:\.
.*|
[^
0-9.
])
/g
,
""
));
isNaN
(
c
)
&&
(
c
=
0
);
"undefined"
!==
typeof
a
.
firstpos2
||
d
||
(
a
.
firstpos2
=
c
,
a
.
nextpos2
=
a
.
firstpos2
);
if
(
"down"
===
a
.
dir1
&&
a
.
nextpos1
+
b
.
height
()
>
(
a
.
context
.
is
(
h
)?
n
.
height
():
a
.
context
.
prop
(
"scrollHeight"
))
||
"up"
===
a
.
dir1
&&
a
.
nextpos1
+
b
.
height
()
>
(
a
.
context
.
is
(
h
)?
n
.
height
():
a
.
context
.
prop
(
"scrollHeight"
))
||
"left"
===
a
.
dir1
&&
a
.
nextpos1
+
b
.
width
()
>
(
a
.
context
.
is
(
h
)?
n
.
width
():
a
.
context
.
prop
(
"scrollWidth"
))
||
"right"
===
a
.
dir1
&&
a
.
nextpos1
+
b
.
width
()
>
(
a
.
context
.
is
(
h
)?
n
.
width
():
a
.
context
.
prop
(
"scrollWidth"
)))
a
.
nextpos1
=
a
.
firstpos1
,
a
.
nextpos2
+=
a
.
addpos2
+
(
"undefined"
===
typeof
a
.
spacing2
?
25
:
a
.
spacing2
),
a
.
addpos2
=
0
;
"number"
===
typeof
a
.
nextpos2
&&
(
a
.
animation
?
b
.
css
(
e
,
a
.
nextpos2
+
"px"
):(
b
.
removeClass
(
"ui-pnotify-move"
),
b
.
css
(
e
,
a
.
nextpos2
+
"px"
),
b
.
css
(
e
),
b
.
addClass
(
"ui-pnotify-move"
)));
switch
(
a
.
dir2
){
case
"down"
:
case
"up"
:
b
.
outerHeight
(
!
0
)
>
a
.
addpos2
&&
(
a
.
addpos2
=
b
.
height
());
break
;
case
"left"
:
case
"right"
:
b
.
outerWidth
(
!
0
)
>
a
.
addpos2
&&
(
a
.
addpos2
=
b
.
width
())}
"number"
===
typeof
a
.
nextpos1
&&
(
a
.
animation
?
b
.
css
(
f
,
a
.
nextpos1
+
"px"
):(
b
.
removeClass
(
"ui-pnotify-move"
),
b
.
css
(
f
,
a
.
nextpos1
+
"px"
),
b
.
css
(
f
),
b
.
addClass
(
"ui-pnotify-move"
)));
switch
(
a
.
dir1
){
case
"down"
:
case
"up"
:
a
.
nextpos1
+=
b
.
height
()
+
(
"undefined"
===
typeof
a
.
spacing1
?
25
:
a
.
spacing1
);
break
;
case
"left"
:
case
"right"
:
a
.
nextpos1
+=
b
.
width
()
+
(
"undefined"
===
typeof
a
.
spacing1
?
25
:
a
.
spacing1
)}}
return
this
}},
queuePosition
:
function
(
b
,
a
){
g
&&
clearTimeout
(
g
);
a
||
(
a
=
10
);
g
=
setTimeout
(
function
(){
d
.
positionAll
(
b
)},
a
);
return
this
},
cancelRemove
:
function
(){
this
.
timer
&&
l
.
clearTimeout
(
this
.
timer
);
this
.
animTimer
&&
l
.
clearTimeout
(
this
.
animTimer
);
"closing"
===
this
.
state
&&
(
this
.
state
=
"open"
,
this
.
animating
=!
1
,
this
.
elem
.
addClass
(
"ui-pnotify-in"
),
"fade"
===
this
.
options
.
animation
&&
this
.
elem
.
addClass
(
"ui-pnotify-fade-in"
));
return
this
},
queueRemove
:
function
(){
var
b
=
this
;
this
.
cancelRemove
();
this
.
timer
=
l
.
setTimeout
(
function
(){
b
.
remove
(
!
0
)},
isNaN
(
this
.
options
.
delay
)?
0
:
this
.
options
.
delay
);
return
this
}});
b
.
extend
(
d
,{
notices
:[],
reload
:
q
,
removeAll
:
function
(){
b
.
each
(
d
.
notices
,
function
(){
this
.
remove
&&
this
.
remove
(
!
1
)})},
removeStack
:
function
(
c
){
b
.
each
(
d
.
notices
,
function
(){
this
.
remove
&&
this
.
options
.
stack
===
c
&&
this
.
remove
(
!
1
)})},
positionAll
:
function
(
c
){
g
&&
clearTimeout
(
g
);
g
=
null
;
if
(
d
.
notices
&&
d
.
notices
.
length
)
b
.
each
(
d
.
notices
,
function
(){
var
a
=
this
.
options
.
stack
;
a
&&
(
a
.
overlay
&&
a
.
overlay
.
hide
(),
a
.
nextpos1
=
a
.
firstpos1
,
a
.
nextpos2
=
a
.
firstpos2
,
a
.
addpos2
=
0
,
a
.
animation
=
c
)}),
b
.
each
(
d
.
notices
,
function
(){
this
.
position
()});
else
{
var
a
=
d
.
prototype
.
options
.
stack
;
a
&&
(
delete
a
.
nextpos1
,
delete
a
.
nextpos2
)}},
styling
:{
brighttheme
:{
container
:
"brighttheme"
,
notice
:
"brighttheme-notice"
,
notice_icon
:
"brighttheme-icon-notice"
,
info
:
"brighttheme-info"
,
info_icon
:
"brighttheme-icon-info"
,
success
:
"brighttheme-success"
,
success_icon
:
"brighttheme-icon-success"
,
error
:
"brighttheme-error"
,
error_icon
:
"brighttheme-icon-error"
},
jqueryui
:{
container
:
"ui-widget ui-widget-content ui-corner-all"
,
notice
:
"ui-state-highlight"
,
notice_icon
:
"ui-icon ui-icon-info"
,
info
:
""
,
info_icon
:
"ui-icon ui-icon-info"
,
success
:
"ui-state-default"
,
success_icon
:
"ui-icon ui-icon-circle-check"
,
error
:
"ui-state-error"
,
error_icon
:
"ui-icon ui-icon-alert"
},
bootstrap3
:{
container
:
"alert"
,
notice
:
"alert-warning"
,
notice_icon
:
"glyphicon glyphicon-exclamation-sign"
,
info
:
"alert-info"
,
info_icon
:
"glyphicon glyphicon-info-sign"
,
success
:
"alert-success"
,
success_icon
:
"glyphicon glyphicon-ok-sign"
,
error
:
"alert-danger"
,
error_icon
:
"glyphicon glyphicon-warning-sign"
}}});
d
.
styling
.
fontawesome
=
b
.
extend
({},
d
.
styling
.
bootstrap3
);
b
.
extend
(
d
.
styling
.
fontawesome
,{
notice_icon
:
"fa fa-exclamation-circle"
,
info_icon
:
"fa fa-info"
,
success_icon
:
"fa fa-check"
,
error_icon
:
"fa fa-warning"
});
l
.
document
.
body
?
r
():
b
(
r
);
return
d
};
return
q
(
k
)});
dashboardv2/public/js/main.js
View file @
a0bb4638
...
...
@@ -139,9 +139,9 @@ require.config({
'moment'
:
'libs/moment/js/moment.min'
,
'jquery-ui'
:
'external_lib/jquery-ui/jquery-ui.min'
,
'datetimepicker'
:
'external_lib/datetimepicker/bootstrap-datetimepicker'
,
'pnotify'
:
'external_lib/pnotify/pnotify'
,
'pnotify.buttons'
:
'external_lib/pnotify/pnotify.
buttons
'
,
'pnotify.confirm'
:
'external_lib/pnotify/pnotify.c
onfirm
'
,
'pnotify'
:
'external_lib/pnotify/pnotify
.custom.min
'
,
'pnotify.buttons'
:
'external_lib/pnotify/pnotify.
custom.min
'
,
'pnotify.confirm'
:
'external_lib/pnotify/pnotify.c
ustom.min
'
,
'jquery-placeholder'
:
'libs/jquery-placeholder/js/jquery.placeholder'
,
'platform'
:
'libs/platform/platform'
},
...
...
dashboardv2/public/js/utils/Utils.js
View file @
a0bb4638
...
...
@@ -49,7 +49,19 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
};
var
notify
=
function
(
options
)
{
return
new
pnotify
(
_
.
extend
({
icon
:
true
,
hide
:
true
,
delay
:
3000
,
remove
:
true
},
options
));
return
new
pnotify
(
_
.
extend
({
icon
:
true
,
hide
:
true
,
delay
:
3000
,
remove
:
true
,
buttons
:
{
classes
:
{
closer
:
'fa fa-times'
,
pin_up
:
'fa fa-pause'
,
pin_down
:
'fa fa-play'
}
}
},
options
));
}
Utils
.
notifyInfo
=
function
(
options
)
{
notify
({
...
...
@@ -80,6 +92,12 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
};
Utils
.
notifyConfirm
=
function
(
options
)
{
var
modal
=
{};
if
(
options
&&
options
.
modal
)
{
var
myStack
=
{
"dir1"
:
"down"
,
"dir2"
:
"right"
,
"push"
:
"top"
,
'modal'
:
true
};
modal
[
'addclass'
]
=
'stack-modal'
;
modal
[
'stack'
]
=
myStack
;
}
notify
(
_
.
extend
({
title
:
'Confirmation'
,
hide
:
false
,
...
...
@@ -93,13 +111,12 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
history
:
{
history
:
false
}
},
options
)).
get
().
on
(
'pnotify.confirm'
,
function
()
{
$
(
'.ui-pnotify-modal-overlay'
).
remove
().
fadeOut
();
},
modal
,
options
)).
get
().
on
(
'pnotify.confirm'
,
function
()
{
if
(
options
.
ok
)
{
options
.
ok
();
}
}).
on
(
'pnotify.cancel'
,
function
()
{
$
(
'.ui-pnotify-modal-overlay'
).
remove
().
fadeOut
();
if
(
options
.
cancel
)
{
options
.
cancel
();
}
...
...
dashboardv2/public/js/views/tag/TagAttributeDetailLayoutView.js
View file @
a0bb4638
...
...
@@ -216,6 +216,7 @@ define(['require',
}
});
var
notifyObj
=
{
modal
:
true
,
confirm
:
{
confirm
:
true
,
buttons
:
[{
...
...
dashboardv2/public/js/views/tag/TagLayoutView.js
View file @
a0bb4638
...
...
@@ -258,6 +258,7 @@ define(['require',
}
});
var
notifyObj
=
{
modal
:
true
,
confirm
:
{
confirm
:
true
,
buttons
:
[{
...
...
@@ -372,6 +373,7 @@ define(['require',
this
.
tagName
=
this
.
ui
.
tagsParent
.
find
(
'li.active'
).
find
(
"a"
).
data
(
'name'
);
this
.
tagDeleteData
=
this
.
ui
.
tagsParent
.
find
(
'li.active'
);
var
notifyObj
=
{
modal
:
true
,
ok
:
function
(
argument
)
{
that
.
onNotifyOk
();
},
...
...
@@ -379,11 +381,6 @@ define(['require',
}
var
text
=
"Are you sure you want to delete the tag"
notifyObj
[
'text'
]
=
text
;
notifyObj
[
'stack'
]
=
{
'dir1'
:
'down'
,
'dir2'
:
'right'
,
'modal'
:
true
};
Utils
.
notifyConfirm
(
notifyObj
);
},
onNotifyOk
:
function
(
data
)
{
...
...
dashboardv2/public/js/views/tag/addTagModalView.js
View file @
a0bb4638
...
...
@@ -118,6 +118,7 @@ define(['require',
}
var
notifyObj
=
{
text
:
text
,
modal
:
true
,
ok
:
function
(
argument
)
{
if
(
obj
.
guid
.
length
)
{
that
.
saveTagData
(
obj
);
...
...
@@ -157,7 +158,6 @@ define(['require',
]
}
}
Utils
.
notifyConfirm
(
notifyObj
)
}
else
{
if
(
obj
.
guid
.
length
)
{
...
...
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