fixes js lint warnings

This commit is contained in:
Nur Rony 2016-12-23 19:58:19 +06:00
parent 8f962f02c4
commit ece31cc72b
1 changed files with 3 additions and 4 deletions

View File

@ -56,13 +56,12 @@
$dropdownContainer.removeClass('open');
});
$dropdownContainer.on('click' , '.dropdown-content a', (e) => {
$dropdown.prop('title', e.target.text.replace(/_+?/g,'-'));
$dropdownContainer.on('click', '.dropdown-content a', (e) => {
$dropdown.prop('title', e.target.text.replace(/_+?/g, '-'));
if ($dropdown.hasClass('has-tooltip')) {
$dropdown.tooltip('fixTitle');
}
})
});
});
};