1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

HTML5 Validation fixes.

This commit is contained in:
Cameron
2016-01-30 18:39:01 -08:00
parent ee28ffb622
commit a31602108b
5 changed files with 30 additions and 13 deletions

View File

@@ -307,7 +307,7 @@ if (!function_exists('asortbyindex'))
if (!function_exists('r_emote'))
{
/**
* @DEPRECATED
* Still in use.
*/
function r_emote()
{
@@ -331,10 +331,24 @@ if (!function_exists('r_emote'))
$value = ($value2 ? $value2 : $value);
$value = ($value == '&|') ? ':((' : $value;
$value = " ".$value." ";
//TODO CSS class
$str .= "\n<a href=\"javascript:addtext('$value',true)\"><img src='$key' alt='' /></a> ";
// $str .= "\n<a class='addEmote' data-emote=\"".$value."\" href=\"javascript:addtext('$value',true)\"><img src='$key' alt='' /></a> ";
$str .= "\n<a class='addEmote' data-emote=\"".$value."\" href=\"#\"><img src='$key' alt='' /></a> ";
}
$JS = "
$('.addEmote').click(function(){
val = $(this).attr('data-emote')
addtext(val,true);
return false;
});
";
e107::js('footer-inline',$JS);
return "<div class='spacer'>".$str."</div>";
}
}