Browse Source

! clear the tooltip on selection, helps with those who like to use back buttons

Signed-off-by: Spuds <spuds@simplemachines.org>
Spuds 12 years ago
parent
commit
2bf3e5cabb
1 changed files with 9 additions and 1 deletions
  1. 9 1
      Themes/default/scripts/smf_jquery_plugins.js

+ 9 - 1
Themes/default/scripts/smf_jquery_plugins.js

@@ -107,8 +107,9 @@
 			$('#' + oSettings.tooltipID).fadeOut('slow').trigger("unload").remove();
 		}
 		
+		// used to keep html encoded
 		function htmlspecialchars(string)
-		{ 
+		{
 			return $('<span>').text(string).html();
 		}
 		
@@ -176,6 +177,13 @@
 					return false;
 				});
 			}
+			
+			// clear the tip on a click
+			$(this).bind("click", function(event){
+				hideTooltip(this);
+				return true;
+			});
+
 		});
 	};