Skip to content

Commit

Permalink
Gritter Accessibility Changes
Browse files Browse the repository at this point in the history
Adding in return false on the click function instead of the javascript
void in the link href.
  • Loading branch information
heitzke committed Jul 15, 2013
1 parent 25bdf6f commit fc199cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/jquery.gritter.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
_custom_timer: 0,
_item_count: 0,
_is_setup: 0,
_tpl_close: '<a class="gritter-close" href="javascript:void(0);" tabindex="1">Close Notification</a>',
_tpl_close: '<a class="gritter-close" href="#" tabindex="1">Close Notification</a>',
_tpl_title: '<span class="gritter-title">[[title]]</span>',
_tpl_item: '<div id="gritter-item-[[number]]" class="gritter-item-wrapper [[item_class]]" style="display:none" role="alert"><div class="gritter-top"></div><div class="gritter-item">[[close]][[image]]<div class="[[class_name]]">[[title]]<p>[[text]]</p></div><div style="clear:both"></div></div><div class="gritter-bottom"></div></div>',
_tpl_wrap: '<div id="gritter-notice-wrapper"></div>',
Expand Down Expand Up @@ -182,6 +182,7 @@
// Clicking (X) makes the perdy thing close
$(item).find('.gritter-close').click(function(){
Gritter.removeSpecific(number, {}, null, true);
return false;
});

return number;
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.gritter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc199cc

Please sign in to comment.