// Blocklayered: Fix bug with new Jquery version

This commit is contained in:
mDeflotte
2012-04-26 16:15:54 +00:00
parent d2ef2becfa
commit cbbebbbc14
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -77,7 +77,7 @@ $(document).ready(function()
}, 500, this));
});
$('.radio').live('click', function() {
$('#layered_block_left .radio').live('click', function() {
var name = $(this).attr('name');
$.each($(this).parent().parent().find('input[type=button]'), function (it, item) {
if ($(item).hasClass('on') && $(item).attr('name') != name) {
@@ -88,9 +88,12 @@ $(document).ready(function()
});
// Click on label
$('label a').live({
$('#layered_block_left label a').live({
click: function() {
if ($(this).parent().parent().find('input').attr('disabled') == '')
var disable = $(this).parent().parent().find('input').attr('disabled');
if (disable == ''
|| typeof(disable) == 'undefined'
|| disable == false)
{
$(this).parent().parent().find('input').click();
reloadContent();