can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r21682: LJSUP-11743: User can listen many tracks...

Committer: dpetrov
LJSUP-11743: User can listen many tracks
U   trunk/htdocs/js/jquery/jquery.lj.modalWindow.js
Modified: trunk/htdocs/js/jquery/jquery.lj.modalWindow.js
===================================================================
--- trunk/htdocs/js/jquery/jquery.lj.modalWindow.js	2012-04-10 07:55:10 UTC (rev 21681)
+++ trunk/htdocs/js/jquery/jquery.lj.modalWindow.js	2012-04-10 08:24:43 UTC (rev 21682)
@@ -50,6 +50,11 @@
 		_create: function () {
 			this._visible = false;
 			this._makeNodes();
+			this.hide();
+			$(document.body)
+				.append(this._faderNode)
+				.append(this._popupNode);
+
 		},
 
 		/**
@@ -148,10 +153,8 @@
 			this._visible = true;
 			this.updatePosition();
 
-			$(document.body)
-				.append(this._faderNode)
-				.append(this._popupNode);
-			
+			this._faderNode.show();
+			this._popupNode.show();
 			this._trigger('show');
 		},
 
@@ -161,8 +164,8 @@
 		 */
 		hide: function () {
 			this._visible = false;
-			this._faderNode.detach();
-			this._popupNode.detach();
+			this._faderNode.hide();
+			this._popupNode.hide();
 			this._trigger('hide');
 		}
 	};

Tags: can3p, dpetrov, 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