|
|
@@ -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;
|