Replace "#" link with "javascript:null;"

This commit is contained in:
Vinyl Darkscratch
2016-11-11 03:30:50 -08:00
committed by GitHub
parent 75c1d80824
commit f7adfbde76

View File

@@ -563,7 +563,7 @@
var flash = $('.w2p_flash');
web2py.hide_flash();
flash.html(message).addClass(status);
if (flash.html()) flash.append('<a id="closeflash" href="#" style="text-decoration: inherit; color: inherit;"> &times; </a>').slideDown();
if (flash.html()) flash.append('<a id="closeflash" href="javascript:null;" style="text-decoration: inherit; color: inherit;"> &times; </a>').slideDown();
},
hide_flash: function () {
$('.w2p_flash').fadeOut(0).html('');
@@ -767,4 +767,4 @@ web2py_event_handlers = jQuery.web2py.event_handlers;
web2py_trap_link = jQuery.web2py.trap_link;
web2py_calc_entropy = jQuery.web2py.calc_entropy;
*/
/* compatibility code - end*/
/* compatibility code - end*/