Coupon : Condition module : add tooltip on condition select

This commit is contained in:
gmorel
2014-01-05 20:17:30 +01:00
parent db09e0b224
commit b8c2c2d703
3 changed files with 8 additions and 2 deletions

View File

@@ -133,6 +133,10 @@ $(function($){
$.couponManager.onConditionChange = function() {
$('#category-condition').on('change', function () {
var $this = $(this);
var mainDiv = $('#condition-add-type');
var optionSelected = $('option:selected', this);
mainDiv.find('.typeToolTip').html(optionSelected.attr('data-description'));
// Only if add mode
if (false != $.couponManager.conditionToUpdateIndex) {
// Reload condition summaries ajax