After install the module I found two issues:
1. All blocks are not shown, I change the settings for each block and the issue continue.
2. if I go to /admin/config/services/responsive-blocks the values for "resolution start point" do not change after save. the default value is always the same.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SwapS’s picture

Priority: Critical » Normal
Status: Active » Needs review
FileSize
1.66 KB

@maricontor,

Attached patch should resolve the issue .
Can you please check and confirm ; so that we can merge the changes and release it a required.

Thanks,
SwapS.

SwapS’s picture

Status: Needs review » Patch (to be ported)
Jieyyal’s picture

Need change below function

function _responsive_blocks_get_library_path() {
  if (function_exists('libraries_get_path')) {
    $library_path = libraries_get_path('mediaCheck');
    if (!$library_path) {
      $library_path = 'sites/all/libraries/mediacheck/mediaCheck.js';
    }
  }
  else {
    $library_path = 'sites/all/libraries/mediaCheck';
  }

  return $library_path;
}

To:

function _responsive_blocks_get_library_path() {
  if (function_exists('libraries_get_path')) {
    $library_path = libraries_get_path('mediaCheck');
    if (!$library_path) {
      $library_path = 'sites/all/libraries/mediacheck/mediaCheck.js';
    }
    else {
     $library_path .= "/mediaCheck.js";
   }
  }
  else {
    $library_path = 'sites/all/libraries/mediaCheck/mediaCheck.js';
  }

  return $library_path;
}

I want to say, the module does no help for site performance.
The block content render on each breakpoint anyway, just display none for specific device.

SwapS’s picture

Assigned: Unassigned » SwapS
Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.