[extensions-web] reivew: Remove images from BINARY_TYPES, add '.compiled'



commit 6e4dcd448cd8e4172aaec049baad60c5aef11d29
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Feb 7 13:43:06 2012 -0500

    reivew: Remove images from BINARY_TYPES, add '.compiled'

 sweettooth/review/views.py     |    2 +-
 sweettooth/static/js/review.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 5bb519f..7c03a0e 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -36,7 +36,7 @@ IMAGE_TYPES = {
 }
 
 # Keep this in sync with the BINARY_TYPES list at the top of review.js
-BINARY_TYPES = set(['.mo', '.png', ',jpg', '.jpeg', '.gif', '.bmp'])
+BINARY_TYPES = set(['.mo', '.compiled'])
 
 # Stolen from ReviewBoard
 # See the top of diffutils.py for details
diff --git a/sweettooth/static/js/review.js b/sweettooth/static/js/review.js
index 3cc04e3..f353a54 100644
--- a/sweettooth/static/js/review.js
+++ b/sweettooth/static/js/review.js
@@ -5,7 +5,7 @@ define(['jquery', 'diff'], function($, diff) {
     var REVIEW_URL_BASE = '/review/ajax';
 
     var BINARY_TYPES = {};
-    $.each(['mo', 'png', 'jpg', 'jpeg', 'gif', 'bmp'], function() {
+    $.each(['mo', 'compiled'], function() {
         BINARY_TYPES[this] = true;
     });
 



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