diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-06-12 21:45:06 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-06-12 21:45:06 -0400 |
commit | 13a7ca453d09672c7bbc7bef84eaf4e47b646da5 (patch) | |
tree | f88d62f47b3358c4523335179529b41f6fa75c8d /views/default/js | |
parent | 7b7e6c190f146525848d1849d2d903473f8d7682 (diff) | |
download | elgg-13a7ca453d09672c7bbc7bef84eaf4e47b646da5.tar.gz elgg-13a7ca453d09672c7bbc7bef84eaf4e47b646da5.tar.bz2 |
removed unnecessary cookie and fixed empty screen if cancel after failing registration
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/walled_garden.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/views/default/js/walled_garden.php b/views/default/js/walled_garden.php index 09a478e93..e228df507 100644 --- a/views/default/js/walled_garden.php +++ b/views/default/js/walled_garden.php @@ -5,7 +5,6 @@ * @since 1.8 */ -// note that this assumes the button view is not using single quotes $cancel_button = elgg_view('input/button', array( 'value' => elgg_echo('cancel'), 'class' => 'elgg-button-cancel mlm', @@ -52,22 +51,13 @@ elgg.walled_garden.load = function(view) { if (view == 'register' && $wg.hasClass('hidden')) { // this was a failed register, display the register form ASAP - $('#elgg-walledgarden-login').toggle(); + $('#elgg-walledgarden-login').toggle(false); $(id).toggle(); $wg.removeClass('hidden'); } else { $('#elgg-walledgarden-login').fadeToggle(); $(id).fadeToggle(); } - - if (view == 'register') { - $('.elgg-form-register').submit(function () { - // set short cookie indicating JS support - var date = new Date(); - date.setTime(date.getTime() + (60 * 1000)); - elgg.session.cookie('elgg_js_support', '1', { expires: date }); - }); - } } }); event.preventDefault(); |