MDL-56261 tags: Do not follow the empty anchor link on more/less toggle
Some browsers tend to follow the empty <a href="#"> link and scroll to the top of the page.
This commit is contained in:
@@ -75,10 +75,12 @@
|
||||
|
||||
{{#js}}
|
||||
require(['jquery'], function($) {
|
||||
$('.tag_list .tagmorelink').click(function() {
|
||||
$('.tag_list .tagmorelink').click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('.tag_list').removeClass('hideoverlimit');
|
||||
});
|
||||
$('.tag_list .taglesslink').click(function() {
|
||||
$('.tag_list .taglesslink').click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('.tag_list').addClass('hideoverlimit');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user