[extensions-web/wip/tomtryf/redesign: 18/18] main.js: Remove obsolete code for userPopup menu



commit 3db9af87b6b953faff86ef4873f196eae135649e
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Thu Feb 23 21:07:06 2017 +0200

    main.js: Remove obsolete code for userPopup menu

 sweettooth/static/js/main.js |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 26da94b..e88d849 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -61,28 +61,6 @@ function($, messages, modal, hashParamUtils, templates, staticfiles) {
             $(this).csrfEditable('/accounts/change_display_name/' + pk);
         });
 
-        var $userPopupLink = $('#global_domain_bar .user');
-        var $userPopup = $('#global_domain_bar .user_popup');
-        function closeUserSettings() {
-            if ($userPopupLink.hasClass('active')) {
-                $userPopupLink.removeClass('active');
-                $userPopup.animate({ top: '10px', opacity: 0 }, 200, function() {
-                    $(this).hide();
-                });
-                return true;
-            }
-        }
-
-        $userPopupLink.click(function() {
-            $userPopupLink.addClass('active');
-            $userPopup.
-                show().
-                css({ top: '-10px', opacity: 0 }).
-                animate({ top: '0', opacity: 1 }, 200);
-            modal.activateModal($userPopup, closeUserSettings);
-            return false;
-        });
-
         $('#local_extensions').addLocalExtensions();
         $('.extension.single-page').addExtensionSwitch();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]