1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Fixed conflict between tooltip and mailcheck. Upgraded jquery mailcheck to v1.1.1

This commit is contained in:
Cameron
2015-08-17 12:24:46 -07:00
parent ec5db40d67
commit c06a3ff5c3
3 changed files with 14 additions and 12 deletions

View File

@@ -288,16 +288,22 @@ $(document).ready(function()
$('.e-email').on('blur', function() {
// alert('hello');
$(this).mailcheck({
suggested: function(element, suggestion) {
var id = $(element);
var hint = $(element).next('div').attr('data-hint');
var id = $(element).nextAll('div.e-email-hint');
// console.log("Hint obj", id);
var hint = id.attr('data-hint');
var mes = hint.replace('[x]',suggestion.full);
$(element).next('div').html(mes);
$(element).next('div').show('slow');
id.html(mes);
id.show('slow');
},
empty: function(element) {
$(element).next('div').hide('slow');
$(element).nextAll('div.e-email-hint').hide('slow');
}
});
});