Last active
April 5, 2016 21:24
-
-
Save clovisdasilvaneto/b14f703ad2869c87e16ebfc6210c5031 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Liferay.component( | |
name, | |
function() { | |
var datepicker = new A.DatePicker({ | |
trigger: '#' + inputId, | |
mask: '%d/%m/%Y', | |
popover: { | |
zIndex: 1 | |
}, | |
after: { | |
selectionChange: function (event) { | |
var ipt = this.get('activeInput'); | |
if (ipt.ancestor('.not-future-date')) { | |
Liferay.notFuctureDateVaccination(ipt, event); | |
} else if (ipt.ancestor('.future-date')) { | |
Liferay.isFuctureDateVaccination(ipt, event); | |
} | |
} | |
} | |
}); | |
return datepicker; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment