Commit 376e450a authored by Luc Didry's avatar Luc Didry

Resolve strange bug with click event

parent a5412115
.ep_initialized
<li data-key="ep_countable-popup" data-type="button">
<a id="ep_countable-a" data-l10n-id="ep_countable.show_counters.title">
<button class="buttonicon buttonicon-gauge" data-l10n-id="ep_countable.show_counters.title"></button>
<button class="buttonicon buttonicon-gauge" data-l10n-id="ep_countable.show_counters.title" onClick="showCountablePopup();"></button>
</a>
</li>
<li class="separator"></li>
<script type="text/javascript">
window.onload = function() {
$('#ep_countable-a').click(function() {
$('#ep_countable-popup').toggleClass('selected');
$('#ep_countable-a').toggleClass('selected');
});
};
function showCountablePopup() {
$('#ep_countable-popup').toggleClass('selected');
$('#ep_countable-a').toggleClass('selected');
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment