Item does not work "-All-"
When choosing the city is no problem, but when you can not display the materials in all cities.

Comments

Version:7.x-1.4» 7.x-1.5
Priority:Major» Critical

hello
I think the problem will go after the upgrade to 7.x-1.5, but no.
Can I do something wrong?
1) Install
drupal dl opendeals
cp -a ope*/* .
cp -a ope*/.htaccess .
rm -rf ope*
drush site-install opendeals --db-url=mysql://user:pass@localhost/base
2) moves the block "Cities List" in the region "Top", Block title: <none>.
Cities are selected, but you can not select all of the city.
can see
See the example: http://deal2.гуреев.рф/

Priority:Critical» Normal

Yes, I have this problem too...

Assigned:gureev.d.e» Unassigned

I confirm that the problem exists. We will fix that in a next version.

I think I fixed it. I commited it to the new version (1.7).

If you don't want to download the new version and reinstall, just replace the code in profiles/opendeals/modules/opendeals_custom/opendeals_module/opendeals_module.js with this:

(function($){
  $(document).ready(function(){
deals_city = $.cookie('deals_city');
if(deals_city != '' && deals_city != null){
deals_city = '/all-deals/'+deals_city;
$('.view-cities-list select option').removeAttr('selected');
    $('.view-cities-list select option[value$="'+deals_city+'"]').attr('selected','selected');
}
$('.view-cities-list select').unbind().bind('change', function(){
if(this.value != '' && this.value != null) {
    parts = (this.value).split('::');
parts[1] = parts[1].split('/');
        customvalue = parts[1].pop(-1);
  $.cookie('deals_city', customvalue, { expires: 30, path: Drupal.settings.basePath});
  window.location.reload();
  return false;
  } else {
    $.cookie('deals_city', null, {expires: -10, path: Drupal.settings.basePath});
    window.location.reload();
    return false;
  }
});
  });
})(jQuery);

Status:Active» Fixed

Status:Fixed» Closed (fixed)

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