Posted by gureev.d.e on October 20, 2012 at 12:14am
4 followers
Jump to:
| Project: | Open Deals Drupal Distribution |
| Version: | 7.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Item does not work "-All-"
When choosing the city is no problem, but when you can not display the materials in all cities.
Comments
#1
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.гуреев.рф/
#2
#3
Yes, I have this problem too...
#4
I confirm that the problem exists. We will fix that in a next version.
#5
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);
#6
#7
Automatically closed -- issue fixed for 2 weeks with no activity.