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
Branches
Tags
No related merge requests found
......@@ -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; ?>&amp;js=initialise_elgg&amp;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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment