diff options
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/ui.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/lib/ui.js b/js/lib/ui.js index 8d519a995..22475df93 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -18,8 +18,10 @@ elgg.ui.init = function () { $('.elgg-menu-page .elgg-menu-parent').live('click', elgg.ui.toggleMenu); $('.elgg-requires-confirmation').live('click', elgg.ui.requiresConfirmation); - - $('.elgg-input-date').datepicker(); + + if ($('.elgg-input-date').length) { + $('.elgg-input-date').datepicker(); + } } /** |