File tree Expand file tree Collapse file tree 5 files changed +23
-16
lines changed Expand file tree Collapse file tree 5 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 235
235
if ( conf . selectors ) {
236
236
var monthSelector = $ ( "<select/>" ) . attr ( "id" , css . month ) ,
237
237
yearSelector = $ ( "<select/>" ) . attr ( "id" , css . year ) ;
238
- title . append ( monthSelector . add ( yearSelector ) ) ;
238
+ title . html ( monthSelector . add ( yearSelector ) ) ;
239
239
}
240
240
241
241
// day titles
Original file line number Diff line number Diff line change 172
172
// data-tooltip
173
173
if ( tipAttr ) {
174
174
tip = $ ( tipAttr ) ;
175
-
176
- // autogenerated tooltip
177
- } else if ( title ) {
178
- tip = $ ( conf . layout ) . addClass ( conf . tipClass ) . appendTo ( document . body )
179
- . hide ( ) . append ( title ) ;
180
-
175
+
181
176
// single tip element for all
182
177
} else if ( conf . tip ) {
183
178
tip = $ ( conf . tip ) . eq ( 0 ) ;
184
179
180
+ // autogenerated tooltip
181
+ } else if ( title ) {
182
+ tip = $ ( conf . layout ) . addClass ( conf . tipClass ) . appendTo ( document . body )
183
+ . hide ( ) . append ( title ) ;
184
+
185
185
// manual tooltip
186
186
} else {
187
187
tip = trigger . next ( ) ;
199
199
// get position
200
200
var pos = getPosition ( trigger , tip , conf ) ;
201
201
202
-
202
+ // restore title for single tooltip element
203
+ if ( conf . tip ) {
204
+ tip . html ( trigger . data ( "title" ) ) ;
205
+ }
206
+
203
207
// onBeforeShow
204
208
e = e || $ . Event ( ) ;
205
209
e . type = "onBeforeShow" ;
Original file line number Diff line number Diff line change 7
7
<!-- HTML5 date input -->
8
8
< input type ="date " name ="mydate " data-value ="2010-12-01 " min ="2010-12-01 " />
9
9
10
+ < input type ="date " name ="mydate " data-value ="2010-12-01 " min ="2010-12-01 " />
11
+
10
12
<!-- make it happen -->
11
13
< script >
12
- $ ( ":date" ) . dateinput ( { selectors : true } ) ;
14
+ $ ( ":date:first" ) . dateinput ( { selectors : true } ) ;
15
+
16
+ $ ( ":date:last" ) . dateinput ( { selectors : false } ) ;
13
17
</ script >
14
18
Original file line number Diff line number Diff line change 31
31
$ ( "a[rel]" ) . overlay ( {
32
32
closeOnClick : false ,
33
33
34
- _mask : {
35
-
34
+ mask : {
36
35
color : '#ccc' ,
37
36
closeSpeed : 200
38
37
}
39
38
} ) ;
40
- </ script >
39
+ </ script >
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ <h3>Manual tooltip</h3>
108
108
109
109
< h3 > Same tip element</ h3 >
110
110
111
- < a class ="trigger "> trigger 1</ a >
112
- < a class ="trigger "> trigger 2</ a >
113
- < a class ="trigger "> trigger 3</ a >
111
+ < a class ="trigger " title =" you can now use different tip " > trigger 1</ a >
112
+ < a class ="trigger " title =" you can now truly use different tip " > trigger 2</ a >
113
+ < a class ="trigger " title =" different tip again " > trigger 3</ a >
114
114
115
115
< div id ="sametip " class ="tooltip ">
116
116
The same tooltip for multiple triggers
@@ -150,7 +150,7 @@ <h3>Slide effect</h3>
150
150
< a class ="trigger " title ="This is the title "> trigger 3</ a >
151
151
152
152
< script >
153
- $ ( "#slide a" ) . tooltip ( { effect : 'fade ' , opacity : 0.5 } ) ;
153
+ $ ( "#slide a" ) . tooltip ( { effect : 'slide ' , opacity : 0.7 } ) ;
154
154
</ script >
155
155
156
156
</ div >
You can’t perform that action at this time.
0 commit comments