public/javascripts/inputex/build/inputex.js
function(e) {
	
      var date = this.getValue(true);
      if (!!this.calendar) {
         
			if(!!date) {
         	// HACK: don't fire Field updatedEvt when selecting date
         	this.ignoreBeforeShowOverlayCall = true;
         	// select the previous date in calendar
        		this.calendar.select(date);
				this.ignoreBeforeShowOverlayCall = false;
         	this.calendar.cfg.setProperty("pagedate",(date.getMonth()+1)+"/"+date.getFullYear());
			}

         this.calendar.render(); // refresh calendar
      }
   }
function(e) {
	
      var date = this.getValue(true);
      if (!!this.calendar) {
         
			if(!!date) {
         	// HACK: don't fire Field updatedEvt when selecting date
         	this.ignoreBeforeShowOverlayCall = true;
         	// select the previous date in calendar
        		this.calendar.select(date);
				this.ignoreBeforeShowOverlayCall = false;
         	this.calendar.cfg.setProperty("pagedate",(date.getMonth()+1)+"/"+date.getFullYear());
			}

         this.calendar.render(); // refresh calendar
      }
   }
function ( e ) { var date = this . getValue ( true ) ; if ( ! ! this . calendar ) { if ( ! ! date ) { // HACK: don't fire Field updatedEvt when selecting date this . ignoreBeforeShowOverlayCall = true ; // select the previous date in calendar this . calendar . select ( date ) ; this . ignoreBeforeShowOverlayCall = false ; this . calendar . cfg . setProperty ( "pagedate" , ( date . getMonth ( ) + 1 ) + "/" + date . getFullYear ( ) ) ; } this . calendar . render ( ) ; // refresh calendar } }
Select the right date and display the right page on calendar, when the field has a value
Select the right date and display the right page on calendar when the field has a value