Mouse-over box `continue` bug
-
If i have “Mouse-over box” on, when i click “continue” my page is reloading.
It’s happens because<a>has emptyhrefattribute. To fix this i proposefootnotes/class/task.php:372should be like that
$l_str_ExcerptText .= " ..." . sprintf(__("%scontinue%s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), '<a href="#" onclick="footnote_moveToAnchor(\'footnote_plugin_reference_'.$l_str_Index.'\', event);">', '</a>');And in
footnotes/templates/public/reference-container.html:28it would be worth modifying the function:function footnote_moveToAnchor(p_str_TargetID, e) { if (e instanceof MouseEvent) { e.preventDefault(); } footnote_expand_reference_container(); var l_obj_Target = jQuery("#" + p_str_TargetID); if(l_obj_Target.length) { jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight/2 }, 1000); } }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Mouse-over box `continue` bug’ is closed to new replies.