Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r17916: LJSUP-7377: Wishlist.

Committer: pkornilov
LJSUP-7377: Wishlist.
U   trunk/htdocs/js/jquery_fn.js
Modified: trunk/htdocs/js/jquery_fn.js
===================================================================
--- trunk/htdocs/js/jquery_fn.js	2010-12-13 10:02:56 UTC (rev 17915)
+++ trunk/htdocs/js/jquery_fn.js	2010-12-13 10:37:46 UTC (rev 17916)
@@ -92,9 +92,9 @@
 					$this.hasClass('placeholder') && $this.removeClass('placeholder').val('');
 				});
 				
-				if (this.value !== this.getAttribute('placeholder')) {
-					$this.removeClass('placeholder');
-				}
+				this.value !== this.getAttribute('placeholder')
+					? $this.removeClass('placeholder')
+					: $this.addClass('placeholder');
 			});
 			return this;
 		}
@@ -524,6 +524,8 @@
 		this.cellSeleted = function( date ){
 			if( o.onDaySelected && view.isActiveDate( date, model.monthDate ) ) {
 				o.onDaySelected( date );
+				// regenerate, TODO: it is hack
+				model.switchMonth(0);
 			}
 		};
 

Tags: js, livejournal, lusever
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