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:
Andrew Ozz
2011-10-18 07:03:31 +00:00
parent 527935e883
commit 6bdce8d62f
3 changed files with 6 additions and 6 deletions

View File

@@ -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);