Committer: dpetrov
LJSUP-8991: Hiding placeholder "Enter tag" after you add a tagU trunk/htdocs/js/jquery_fn.js
Modified: trunk/htdocs/js/jquery_fn.js =================================================================== --- trunk/htdocs/js/jquery_fn.js 2011-06-06 07:17:09 UTC (rev 19232) +++ trunk/htdocs/js/jquery_fn.js 2011-06-06 07:17:16 UTC (rev 19233) @@ -129,14 +129,11 @@ var $this = jQuery( this ), placeholder = $this.attr( 'placeholder' ); + $this.wrap( '<span class="placeholder-wrapper" />' ); + if( !placeholder || placeholder.length === 0 ) { return; } var label = jQuery( "<label></label>") - .css({ - position: "absolute", - cursor: "text", - display: "none" - }) .addClass('placeholder-label') .mousedown(function( ev ) { setTimeout( function() { @@ -150,6 +147,7 @@ .blur( function() { blur_action( $this, label ) } ); blur_action( $this, label ); + } ); }