[*] Project : Jquery 1.7.2

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14792 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2012-04-20 15:45:43 +00:00
parent d788baee35
commit d22fde6176
20 changed files with 106 additions and 265 deletions
+5 -4
View File
@@ -24,15 +24,15 @@
$('.select_box input[type=checkbox]').click(function(e)
{
select_entity($(this).attr('checked'), $(this).parent().parent());
select_entity($(this).prop('checked'), $(this).parent().parent());
e.stopImmediatePropagation();
});
$('.select_box').click(function()
{
var checkbox = $(this).find('input[type=checkbox]');
checkbox.attr('checked', !checkbox.attr('checked'));
select_entity(checkbox.attr('checked'), $(this).parent());
checkbox.attr('checked', !checkbox.prop('checked'));
select_entity(checkbox.prop('checked'), $(this).parent());
});
});
@@ -237,4 +237,5 @@
</form>
<?php endif; ?>
</body>
</html>
</html>
+4 -4
View File
@@ -14,7 +14,7 @@ $(document).ready(function()
'dbPassword': $('#dbPassword').val(),
'dbEngine': $('#dbEngine').val(),
'db_prefix': $('#db_prefix').val(),
'clear': $('#db_clear').attr('checked') ? '1' : '0'
'clear': $('#db_clear').prop('checked') ? '1' : '0'
},
dataType: 'json',
cache: false,
@@ -38,12 +38,12 @@ $(document).ready(function()
});
// Check mails configuration
if (!$('#set_stmp').attr('checked'))
if (!$('#set_stmp').prop('checked'))
$("div#mailSMTPParam").hide();
$("#set_stmp").click(function()
{
if ($("input#set_stmp").attr('checked'))
if ($("input#set_stmp").prop('checked'))
$("div#mailSMTPParam").slideDown('slow');
else
$("div#mailSMTPParam").slideUp('slow');
@@ -64,7 +64,7 @@ $(document).ready(function()
'smtpPassword': $('#smtpPassword').val(),
'testEmail': $('#smtpSrv').val(),
'testEmail': $('#testEmail').val(),
'smtpChecked': ($('#set_stmp').attr('checked') ? 'true' : 'false')
'smtpChecked': ($('#set_stmp').prop('checked') ? 'true' : 'false')
},
dataType: 'json',
cache: false,
+2 -2
View File
@@ -9,7 +9,7 @@ $(document).ready(function()
});
// Desactivate next button if licence checkbox is not checked
if (!$('#set_license').attr('checked'))
if (!$('#set_license').prop('checked'))
{
$('#btNext').addClass('disabled').attr('disabled', true);
}
@@ -17,7 +17,7 @@ $(document).ready(function()
// Activate / desactivate next button when licence checkbox is clicked
$('#set_license').click(function()
{
if ($(this).attr('checked'))
if ($(this).prop('checked'))
$('#btNext').removeClass('disabled').attr('disabled', false);
else
$('#btNext').addClass('disabled').attr('disabled', true);
+2 -1
View File
@@ -82,4 +82,5 @@
<li <?php if ($this->isStepFinished($step)): ?>class="ok"<?php endif; ?>><?php echo $this->l('menu_'.$this->step) ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>