[extensions-web] Properly fill in errors when we have no proxy



commit 6cf4eb5192406a20b928b4bfc86bd8a37f35cebd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Oct 24 19:25:29 2011 -0400

    Properly fill in errors when we have no proxy

 sweettooth/static/js/extensions.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 4babe08..7f50e25 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -57,7 +57,12 @@ function($, messages, dbusProxy) {
         };
 
         $.fn.fillInErrors = function() {
-            $(this).append("GNOME Shell Extensions cannot automatically detect any errors.");
+            var $form = $(this);
+            var $textarea = $form.find('textarea[name=error]');
+            var $hidden = $form.find('input:hidden[name=has_errors]');
+            $textarea.text("GNOME Shell Extensions cannot automatically detect any errors.").
+                addClass('no-errors').attr('disabled', 'disabled');
+            $hidden.val('');
         };
 
         return;



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