Skip to content

Commit

Permalink
Fixed issue #08623: preview image of "multiple numeric" question type…
Browse files Browse the repository at this point in the history
… is not hidden after choosing

Dev Added event listener for closing the select element
Dev Fixed invalid JS
  • Loading branch information
tpartner committed Feb 12, 2014
1 parent 1a8e586 commit d7500eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/admin/admin_core.js
Expand Up @@ -144,9 +144,9 @@ function qTypeDropdownInit()
});
$(document).ready(function() {
$('body').on('mouseenter mouseleave', 'li.questionType', function(e) {
if (e.type = 'mouseenter')
if (e.type == 'mouseenter')
{
// Hide all others if we show a new one.
// Hide all others if we show a new one.
$('#question_type option').qtip('hide');
$($(e.currentTarget).data().select2Data.element).qtip('option', 'position.target', $(e.currentTarget)).qtip('show');
}
Expand All @@ -157,6 +157,9 @@ function qTypeDropdownInit()


});
$('#question_type').on('close', function(e) {
$('#question_type option').qtip('hide');
});
});
}

Expand Down

0 comments on commit d7500eb

Please sign in to comment.