Issue #2367779 by andreyks | sanchiz: Fixed Regression in date_popup.js after code cleanup.