mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-07 08:07:16 +00:00
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:
@@ -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');
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user