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:
@@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user