File tree Expand file tree Collapse file tree 4 files changed +39
-13
lines changed Expand file tree Collapse file tree 4 files changed +39
-13
lines changed Original file line number Diff line number Diff line change 77
77
visibility : visible;
78
78
}
79
79
80
+ .noty_modal .someOtherTheme {
81
+ position : fixed;
82
+ width : 100% ;
83
+ height : 100% ;
84
+ background-color : # 000 ;
85
+ z-index : 10000 ;
86
+ opacity : 0.6 ;
87
+ display : none;
88
+ border : none;
89
+ left : 0 ;
90
+ top : 0
91
+ }
92
+
80
93
</ style >
81
94
82
95
</ head >
103
116
layout : theme == 'defaultTheme' ? 'topCenter' : 'bottomCenter' ,
104
117
theme : theme ,
105
118
closeWith : [ 'button' , 'click' ] ,
106
- maxVisible : 20
119
+ maxVisible : 20 ,
120
+ modal : true
107
121
} ) ;
108
122
console . log ( 'html: ' + n . options . id ) ;
109
123
}
110
124
111
125
function generateAll ( ) {
112
- generate ( 'alert' , 'defaultTheme' ) ;
113
- generate ( 'information' , 'defaultTheme' ) ;
114
- generate ( 'error' , 'defaultTheme' ) ;
115
- generate ( 'warning' , 'defaultTheme' ) ;
116
- generate ( 'success' , 'defaultTheme' ) ;
126
+ // generate('alert', 'defaultTheme');
127
+ // generate('information', 'defaultTheme');
128
+ // generate('error', 'defaultTheme');
129
+ // generate('warning', 'defaultTheme');
130
+ // generate('success', 'defaultTheme');
117
131
118
132
generate ( 'alert' , 'someOtherTheme' ) ;
119
133
generate ( 'information' , 'someOtherTheme' ) ;
Original file line number Diff line number Diff line change 1
1
/**
2
- * noty - jQuery Notification Plugin v2.2.0
2
+ * noty - jQuery Notification Plugin v2.2.2
3
3
* Contributors: https://github.com/needim/noty/graphs/contributors
4
4
*
5
5
* Examples and Documentation - http://needim.github.com/noty/
@@ -356,8 +356,14 @@ if (typeof Object.create !== 'function') {
356
356
} ;
357
357
358
358
$ . notyRenderer . createModalFor = function ( notification ) {
359
- if ( $ ( '.noty_modal' ) . length == 0 )
360
- $ ( '<div/>' ) . addClass ( 'noty_modal' ) . data ( 'noty_modal_count' , 0 ) . css ( notification . options . theme . modal . css ) . prependTo ( $ ( 'body' ) ) . fadeIn ( 'fast' ) ;
359
+ if ( $ ( '.noty_modal' ) . length == 0 ) {
360
+ var modal = $ ( '<div/>' ) . addClass ( 'noty_modal' ) . addClass ( notification . options . theme ) . data ( 'noty_modal_count' , 0 ) ;
361
+
362
+ if ( notification . options . theme . modal && notification . options . theme . modal . css )
363
+ modal . css ( notification . options . theme . modal . css ) ;
364
+
365
+ modal . prependTo ( $ ( 'body' ) ) . fadeIn ( 'fast' ) ;
366
+ }
361
367
} ;
362
368
363
369
$ . notyRenderer . getLayoutCountFor = function ( notification ) {
Original file line number Diff line number Diff line change 1
1
/**
2
- * noty - jQuery Notification Plugin v2.2.0
2
+ * noty - jQuery Notification Plugin v2.2.2
3
3
* Contributors: https://github.com/needim/noty/graphs/contributors
4
4
*
5
5
* Examples and Documentation - http://needim.github.com/noty/
@@ -356,8 +356,14 @@ if (typeof Object.create !== 'function') {
356
356
} ;
357
357
358
358
$ . notyRenderer . createModalFor = function ( notification ) {
359
- if ( $ ( '.noty_modal' ) . length == 0 )
360
- $ ( '<div/>' ) . addClass ( 'noty_modal' ) . data ( 'noty_modal_count' , 0 ) . css ( notification . options . theme . modal . css ) . prependTo ( $ ( 'body' ) ) . fadeIn ( 'fast' ) ;
359
+ if ( $ ( '.noty_modal' ) . length == 0 ) {
360
+ var modal = $ ( '<div/>' ) . addClass ( 'noty_modal' ) . addClass ( notification . options . theme ) . data ( 'noty_modal_count' , 0 ) ;
361
+
362
+ if ( notification . options . theme . modal && notification . options . theme . modal . css )
363
+ modal . css ( notification . options . theme . modal . css ) ;
364
+
365
+ modal . prependTo ( $ ( 'body' ) ) . fadeIn ( 'fast' ) ;
366
+ }
361
367
} ;
362
368
363
369
$ . notyRenderer . getLayoutCountFor = function ( notification ) {
You can’t perform that action at this time.
0 commit comments