Skip to content

Commit

Permalink
fix: decode store list query and add set transparent color for defaul…
Browse files Browse the repository at this point in the history
…t store banner (#727)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Jan 7, 2020
1 parent d24c88e commit 443c677
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/src/js/store-lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
submitForm: function( event ) {
event.preventDefault();

const queryString = $.param( storeLists.query );
const queryString = decodeURIComponent( $.param( storeLists.query ) );

window.history.pushState( null, null, `?${queryString}` );
window.location.reload();
Expand Down Expand Up @@ -275,9 +275,9 @@
}

$( window ).on( 'resize', function() {
const win = $(this);
const container = $(this);

if ( win.width() < 767 ) {
if ( container.width() < 767 ) {
$( '#dokan-seller-listing-wrap' ).removeClass( 'list-view' );
$( '#dokan-seller-listing-wrap' ).addClass( 'grid-view' );
} else {
Expand Down
3 changes: 3 additions & 0 deletions assets/src/less/store-lists.less
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@
background: rgba(0,0,0,0.45);
color: #fff;

&.default-store-banner {
background: transparent;
}
.store-data-container {
padding: 5px 20px;

Expand Down
2 changes: 1 addition & 1 deletion templates/store-lists-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
</div>

<div class="store-content">
<div class="store-content <?php echo ! $store_banner_id ? esc_attr( 'default-store-banner' ) : '' ?>">
<div class="store-data-container">
<div class="featured-favourite">
<?php if ( $is_store_featured ) : ?>
Expand Down

0 comments on commit 443c677

Please sign in to comment.