Skip to content
Snippets Groups Projects
Commit a476a875 authored by Peter Rotich's avatar Peter Rotich
Browse files

Show tip on focus

parent b3a3c818
No related branches found
No related tags found
No related merge requests found
...@@ -40,21 +40,16 @@ jQuery(function($) { ...@@ -40,21 +40,16 @@ jQuery(function($) {
}).live('mouseout', function() { }).live('mouseout', function() {
clearTimeout(tip_timer); clearTimeout(tip_timer);
}); });
$('body').delegate('.tip_close', 'click', function(e) { $('body').delegate('.tip_close', 'click', function(e) {
e.preventDefault(); e.preventDefault();
$(this).parent().parent().remove(); $(this).parent().parent().remove();
}).delegate('.tip_menu .assign', 'click', function(e) {
e.preventDefault();
elem = $(this).parent().parent().parent().parent();
$('.tip_body', elem).slideToggle(function() {
$('.assign_panel', elem).slideToggle();
});
}).delegate('.assign_panel .cancel', 'click', function(e) {
e.preventDefault();
elem = $(this).parent().parent().parent();
$('.assign_panel', elem).slideToggle(function() {
$('.tip_body', elem).slideToggle();
});
}); });
$('form#install input[type="text"], input[type="password"]').focus(function() {
$('.tip_box').fadeOut();
$(this).next('a').trigger('click');
}).blur(function() {
$('.tip_box').fadeOut().remove();
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment