[extensions-web] Don't use the "editable" class on the extension div



commit a944a7016e6b2443a8a6ee7a95587eaff6b76b3b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Dec 20 16:32:36 2011 -0500

    Don't use the "editable" class on the extension div
    
    This was conflicting with the "editable" style, adding an ugly yellow
    background color on the entire extensions page.

 .../templates/extensions/detail_edit.html          |    2 +-
 sweettooth/static/js/main.js                       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/detail_edit.html b/sweettooth/extensions/templates/extensions/detail_edit.html
index e0dbd15..2c9774b 100644
--- a/sweettooth/extensions/templates/extensions/detail_edit.html
+++ b/sweettooth/extensions/templates/extensions/detail_edit.html
@@ -120,4 +120,4 @@
 </div>
 {% endblock %}
 
-{% block extra-ext-class %}editable{% endblock %}
+{% block extra-ext-class %}can-edit{% endblock %}
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 8dd5018..adc00cc 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -136,7 +136,7 @@ require(['jquery', 'messages', 'extensions', 'uploader',
 
         $('div.extension').checkForUpdates();
 
-        var pk = $('.extension.single-page.editable').data('epk');
+        var pk = $('.extension.single-page.can-edit').data('epk');
         if (pk) {
             var inlineEditURL = '/ajax/edit/' + pk;
             $('#extension_name, #extension_url').csrfEditable(inlineEditURL);



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