[extensions-web] js: Remove the "out of date" tipsy



commit 26b528567886ac1a1864ab6217b7edbd6104921a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Feb 14 12:29:02 2012 -0500

    js: Remove the "out of date" tipsy
    
    All it did was pile up useless messages. Not necessary with the new
    filter UI and with the default being "compatible".

 sweettooth/static/js/extensions.js |   31 -------------------------------
 sweettooth/static/js/main.js       |    1 -
 2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 62e853d..6e1e9c0 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -60,10 +60,6 @@ function($, messages, dbusProxy, extensionUtils) {
             return this;
         };
 
-        $.fn.addOutOfDateIndicator = function() {
-            return this;
-        };
-
         $.fn.addLaunchExtensionPrefsButton = function() {
             return this;
         };
@@ -243,9 +239,6 @@ function($, messages, dbusProxy, extensionUtils) {
                         if (extension.hasPrefs && extension.state !== ExtensionState.OUT_OF_DATE)
                             $elem.addLaunchExtensionPrefsButton(true);
 
-                        if (extension.state === ExtensionState.OUT_OF_DATE)
-                            $elem.addOutOfDateIndicator(true);
-
                         $.ajax({
                             url: "/ajax/detail/",
                             dataType: "json",
@@ -343,30 +336,6 @@ function($, messages, dbusProxy, extensionUtils) {
         });
     };
 
-    $.fn.addOutOfDateIndicator = function(force) {
-        function indicator($elem) {
-            $elem.
-                addClass('out-of-date').
-                attr('title', "This extension is incompatible with your version of GNOME").
-                tipsy({ gravity: 'c', fade: true });
-        }
-
-        return this.each(function() {
-            var $elem = $(this);
-            if (force) {
-                indicator($elem);
-            } else {
-                var svm = $elem.data('svm');
-                if (!svm)
-                    return;
-
-                var vpk = extensionUtils.grabProperExtensionVersion(svm, dbusProxy.ShellVersion);
-                if (vpk === null)
-                    indicator($elem);
-            }
-        });
-    };
-
     $.fn.addLaunchExtensionPrefsButton = function(force) {
         function launchExtensionPrefsButton($elem, uuid) {
             $elem.
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index ad60688..79611f6 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -120,7 +120,6 @@ require(['jquery', 'messages', 'modal',
         $('#extensions-list').
             paginatorify('/ajax/extensions-list/').
             bind('page-loaded', function() {
-                $('li.extension').addOutOfDateIndicator();
                 $('#extensions-list .before-paginator').fsUIify();
 
                 // Scroll the page back up to the top.



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