Call preventDefault() on pointer 'Dismiss'. props SergeyBiryukov, johnbillion, fixes #19361.

git-svn-id: https://develop.svn.wordpress.org/trunk@19481 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-11-29 18:56:13 +00:00
parent 666e76c5dc
commit 3118dd18d7
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,8 @@
var close = ( wpPointerL10n ) ? wpPointerL10n.dismiss : 'Dismiss',
button = $('<a class="close" href="#">' + close + '</a>');
return button.bind( 'click.pointer', function() {
return button.bind( 'click.pointer', function(e) {
e.preventDefault();
t.element.pointer('close');
});
},