Skip to content
Snippets Groups Projects
Commit fbd6d677 authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Edit profile javascript now only loads on the edit profile page

parent 3f094804
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,7 @@ $release = get_version(true); ...@@ -28,8 +28,7 @@ $release = get_version(true);
?> ?>
<meta name="ElggRelease" content="<?php echo $release; ?>" /> <meta name="ElggRelease" content="<?php echo $release; ?>" />
<meta name="ElggVersion" content="<?php echo $version; ?>" /> <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">window.$ = window.jQuery = WDN.jQuery;</script>
<script type="text/javascript">var $ = window.$ = window.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']; ?>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; ?>&amp;js=initialise_elgg&amp;viewtype=<?php echo $vars['view']; ?>"></script> <script type="text/javascript" src="<?php echo $vars['url']; ?>_css/js.php?lastcache=<?php echo $vars['config']->lastcache; ?>&amp;js=initialise_elgg&amp;viewtype=<?php echo $vars['view']; ?>"></script>
<?php <?php
...@@ -47,8 +46,11 @@ if (isset($pickerinuse) && $pickerinuse == true) { ?> ...@@ -47,8 +46,11 @@ if (isset($pickerinuse) && $pickerinuse == true) { ?>
echo $feedref; echo $feedref;
echo elgg_view('metatags',$vars); echo elgg_view('metatags',$vars);
?> ?>
<?php
if ($vars[title] == "Edit profile") {
?>
<script type="text/javascript"> <script type="text/javascript">
(function($){ (function(){
// Edit Profile Stuff // Edit Profile Stuff
function updateLL () { 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(); 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); ...@@ -69,5 +71,8 @@ echo elgg_view('metatags',$vars);
updateLL(); updateLL();
}); });
}); });
})(jQuery); })();
</script> </script>
<?php
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment