diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 8b811d5a..b7f76822 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -77,7 +77,7 @@ }, /** - * Suppress submission unless it is handled through save() + * Suppress submission unless it is handled through ajaxSubmit() */ onsubmit: function(e) { return false; @@ -218,6 +218,17 @@ } }); + /** + * Link for editing the profile for a logged-in member + * through a popup. Required "greybox" javascript library. + */ + $('#EditMemberProfile').concrete({ + onclick: function(e) { + GB_show('Edit Profile', this.attr('href'), 290, 500); + return false; + } + }); + })(jQuery); jQuery(document).ready(function() { @@ -249,30 +260,8 @@ Behaviour.register({ Event.stop(event); } }, - - '#Menu-help' : { - onclick : function() { - var w = window.open(this.getElementsByTagName('a')[0].href, 'help'); - w.focus(); - return false; - } - }, - - '#Logo' : { - onclick : function() { - var w = window.open(this.getElementsByTagName('a')[0].href); - w.focus(); - return false; - } - }, - '#EditMemberProfile': { - onclick: function(e) { - var el = Event.element(e); - GB_show('Edit Profile', el.attributes.href.value, 290, 500); - Event.stop(e); - } - } + }); diff --git a/templates/Includes/CMSTopMenu.ss b/templates/Includes/CMSTopMenu.ss index 3a7e8e14..35fbd5c1 100644 --- a/templates/Includes/CMSTopMenu.ss +++ b/templates/Includes/CMSTopMenu.ss @@ -1,6 +1,6 @@