diff --git a/unl_theme/views/default/page_elements/header.php b/unl_theme/views/default/page_elements/header.php index 6781a6a1596dcf09d7ab3ae13bc594a4e3a4bf62..327b44e3255008d0f5ddabf115886287962db81c 100644 --- a/unl_theme/views/default/page_elements/header.php +++ b/unl_theme/views/default/page_elements/header.php @@ -28,8 +28,7 @@ $release = get_version(true); ?> <meta name="ElggRelease" content="<?php echo $release; ?>" /> <meta name="ElggVersion" content="<?php echo $version; ?>" /> -<!-- <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-1.2.6.pack.js"></script> --> -<script type="text/javascript">var $ = window.$ = window.jQuery;</script> +<script type="text/javascript">window.$ = window.jQuery = WDN.jQuery;</script> <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" src="<?php echo $vars['url']; ?>_css/js.php?lastcache=<?php echo $vars['config']->lastcache; ?>&js=initialise_elgg&viewtype=<?php echo $vars['view']; ?>"></script> <?php @@ -47,8 +46,11 @@ if (isset($pickerinuse) && $pickerinuse == true) { ?> echo $feedref; echo elgg_view('metatags',$vars); ?> +<?php +if ($vars[title] == "Edit profile") { +?> <script type="text/javascript"> -(function($){ +(function(){ // Edit Profile Stuff function updateLL () { var city = $("input[name=form_data_profile_city]").val(), state = $("input[name=form_data_profile_state]").val(), country = $("input[name=form_data_profile_country]").val(); @@ -69,5 +71,8 @@ echo elgg_view('metatags',$vars); updateLL(); }); }); -})(jQuery); +})(); </script> +<?php +} +?> \ No newline at end of file