mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 16:21:07 +00:00
23 lines
660 B
JavaScript
23 lines
660 B
JavaScript
|
jQuery(document).ready(function() {
|
||
|
if (jQuery('.list-layouts').length > 0) {
|
||
|
jQuery('.list-layouts li img').each(function() {
|
||
|
jQuery(this).removeClass('selected');
|
||
|
})
|
||
|
|
||
|
var vCheck = jQuery('.list-layouts').find('input:checked');
|
||
|
vCheck.parent().find('img').addClass('selected');
|
||
|
|
||
|
jQuery('.list-layouts li img').live('click', function() {
|
||
|
jQuery('.list-layouts li img').each(function() {
|
||
|
jQuery(this).removeClass('selected');
|
||
|
jQuery(this).parent().find('input').prop('checked', true);
|
||
|
})
|
||
|
|
||
|
jQuery(this).addClass('selected');
|
||
|
jQuery(this).parent().find('input').prop('checked', true);
|
||
|
|
||
|
return false;
|
||
|
});
|
||
|
|
||
|
}
|
||
|
});
|