Просмотр исходного кода

Remove old JS/CSS used for IE compatibility.

master
Samir Shah 4 лет назад
Родитель
Сommit
dc22aa161a

+ 0
- 21
src/oscar/static_src/oscar/js/oscar/ui.js Просмотреть файл

@@ -150,26 +150,6 @@ var oscar = (function(o, $) {
150 150
         }
151 151
     };
152 152
 
153
-    // IE compabibility hacks
154
-    o.compatibility = {
155
-        init: function() {
156
-            if (!o.compatibility.isIE()) return;
157
-            // Set the width of a select in an overflow hidden container.
158
-            // This is for add-to-basket forms within browing pages
159
-            $('.product_pod select').on({
160
-                mousedown: function(){
161
-                    $(this).addClass("select-open");
162
-                },
163
-                change: function(){
164
-                    $(this).removeClass("select-open");
165
-                }
166
-            });
167
-        },
168
-        isIE: function() {
169
-            return navigator.userAgent.toLowerCase().indexOf("msie") > -1;
170
-        }
171
-    };
172
-
173 153
     o.basket = {
174 154
         is_form_being_submitted: false,
175 155
         init: function(options) {
@@ -350,7 +330,6 @@ var oscar = (function(o, $) {
350 330
         o.page.init();
351 331
         o.responsive.init();
352 332
         o.responsive.initSlider();
353
-        o.compatibility.init();
354 333
     };
355 334
 
356 335
     return o;

+ 0
- 5
src/oscar/static_src/oscar/scss/page/forms.scss Просмотреть файл

@@ -5,11 +5,6 @@ form {
5 5
   @include clearfix;
6 6
 }
7 7
 
8
-// For IE: adds width for selects inside overflow hidden containers
9
-.select-open {
10
-  width: 300px !important;
11
-}
12
-
13 8
 // Additional errors
14 9
 .errorlist {
15 10
   margin: 0;

Загрузка…
Отмена
Сохранить