Skip to content

Commit

Permalink
fix(js): correctly init datepicker when ajax loaded
Browse files Browse the repository at this point in the history
fixes #3850
  • Loading branch information
jdalsem committed Feb 19, 2015
1 parent 256df5b commit aecc004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/default/input/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@

$attributes = elgg_format_attributes($vars);
echo "<input type=\"text\" $attributes />";

if (elgg_is_xhr()) {
echo elgg_format_element('script', null, 'elgg.ui.initDatePicker();');
}

0 comments on commit aecc004

Please sign in to comment.