mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Pointers: add default width (400px) that fixes positioning in IE7, add href attrib to the Close link, see #18693
git-svn-id: https://develop.svn.wordpress.org/trunk@18987 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8,12 +8,13 @@
|
||||
$.widget("wp.pointer", {
|
||||
options: {
|
||||
pointerClass: 'wp-pointer',
|
||||
pointerWidth: 400,
|
||||
content: function( respond, event, t ) {
|
||||
return $(this).text();
|
||||
},
|
||||
buttons: function( event, t ) {
|
||||
var close = ( wpPointerL10n ) ? wpPointerL10n.close : 'Close',
|
||||
button = $('<a>' + close + '</a>');
|
||||
button = $('<a href="#">' + close + '</a>');
|
||||
|
||||
return button.bind( 'click.pointer', function() {
|
||||
t.element.pointer('close');
|
||||
@@ -50,8 +51,7 @@
|
||||
.append( this.arrow )
|
||||
.attr('id', 'wp-pointer-' + identifier++)
|
||||
.addClass( this.options.pointerClass )
|
||||
.css('position', positioning)
|
||||
.hide()
|
||||
.css({'position': positioning, 'width': this.options.pointerWidth+'px', 'display': 'none'})
|
||||
.appendTo( this.options.document.body );
|
||||
},
|
||||
|
||||
@@ -299,4 +299,4 @@
|
||||
}, extend);
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user