can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19233: LJSUP-8991: Hiding placeholder "Enter ta...

Committer: dpetrov
LJSUP-8991: Hiding placeholder "Enter tag" after you add a tag
U   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 );
+
 	} );
 }
 

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments