js: do not handle with active property for editor

This commit is contained in:
Thomas Gelf 2016-03-24 12:06:33 +01:00
parent 46bb1f7c7f
commit 933b6c2256
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,9 @@
formElementFocus: function(ev)
{
var $input = $(ev.currentTarget);
if ($input.closest('form.editor').length) {
return;
}
var $dd = $input.closest('dd');
$dd.find('p.description').show();
if ($dd.attr('id') && $dd.attr('id').match(/button/)) {
@ -114,6 +117,7 @@
var $li = $input.closest('li');
var $dt = $dd.prev();
var $form = $dt.closest('form');
$form.find('dt, dd, li').removeClass('active');
$li.addClass('active');
$dt.addClass('active');