Skip to content

Commit d860f99

Browse files
First modification
1 parent 1d975b7 commit d860f99

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

css/style.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**********************************************/
44

55
body{
6-
background-color: #fff !important;
6+
background-color: #fff;
77
}
88

99
#wrapper{
@@ -162,8 +162,6 @@ body{
162162
color: #444;
163163
}
164164

165-
166-
167165
@supports (pointer-events: none) and
168166
((-webkit-appearance: none) or
169167
(-moz-appearance: none) or
@@ -225,7 +223,7 @@ body{
225223

226224
/* FF only temp fix */
227225
@-moz-document url-prefix() {
228-
.custom-dropdown__select { padding-right: 2em }
226+
.custom-dropdown__select { padding-right: 2em }
229227
.custom-dropdown--large .custom-dropdown__select { padding-right: 3em }
230228
.custom-dropdown--small .custom-dropdown__select { padding-right: 1em }
231229
}

js/scripts.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function($, window){
1+
((function($, window){
22
$(document).ready(function(){
33
//Add Class for background image
44
$('body').addClass('homeShopSelector');
@@ -9,8 +9,6 @@
99
$('#multishopselector_block_home form').submit(function(){
1010
if (selectChoose.length) {
1111
$(this).attr('action',$(this).find('select').val());
12-
} else {
13-
$(this).attr('action',link);
1412
}
1513
});
1614
//Place connexion block in the middle of the page
@@ -22,9 +20,7 @@
2220
}
2321
};
2422
blockSelectShopCenter();
25-
$(window).resize(function(){
26-
blockSelectShopCenter();
27-
});
23+
$(window).resize(function(){blockSelectShopCenter();});
2824
$('.slogan_langues .menu__button').html('Connexion');
2925
});
30-
})(jQuery, window);
26+
})(jQuery, window));

multishopselector.php

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function __construct()
2424
if(!Configuration::get("PS_MULTISHOP_FEATURE_ACTIVE"))
2525
{
2626
$this->warning = $this->l("Your site has only one store. Multi-store feature must be enabled to use this module");
27-
exit;
2827
}
2928

3029
}

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a6f1281c2c1c4355bf331fa728dd5b19)](https://www.codacy.com/app/VirtuoWorks/prestashop-multishopselector?utm_source=github.com&utm_medium=referral&utm_content=VirtuoWorks/prestashop-multishopselector&utm_campaign=Badge_Grade)
1+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a8056eb1db984613b65a391f3b7bb08b)](https://www.codacy.com/app/marcboussoulade/prestashop-multishopselector?utm_source=github.com&utm_medium=referral&utm_content=VirtuoWorks/prestashop-multishopselector&utm_campaign=Badge_Grade)
22

33
# PrestaShop Multishop Selector
44

0 commit comments

Comments
 (0)