aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-13 18:40:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-13 18:40:26 +0000
commitad76668c68ff24ed823a02092d51bf2c0567123a (patch)
treeb6cb36ad86fedba1c7112c1310cab62e3d4e681e /js
parentbfe089a3626a52a34d5a74d981ca47be67fce2fb (diff)
downloadelgg-ad76668c68ff24ed823a02092d51bf2c0567123a.tar.gz
elgg-ad76668c68ff24ed823a02092d51bf2c0567123a.tar.bz2
Fixes #3110 - checking selector before running date picker js
git-svn-id: http://code.elgg.org/elgg/trunk@8688 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js')
-rw-r--r--js/lib/ui.js6
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();
+ }
}
/**