Merge branch 'develop' into hourly

This commit is contained in:
Shreesh Arora
2024-09-06 11:44:08 +05:30
34 changed files with 612 additions and 575 deletions

View File

@@ -356,9 +356,8 @@
file="controllers/products/textarea_lang.tpl"
languages=$languages
input_name='description_short'
class="autoload_rte"
input_value=$product->description_short
max=$PS_PRODUCT_SHORT_DESC_LIMIT}
maxlength=$PS_PRODUCT_SHORT_DESC_LIMIT}
</div>
</div>
<div class="form-group">

View File

@@ -86,16 +86,27 @@
{if isset($auto_select_children) && $auto_select_children == true}
$('#{$id|escape:'html':'UTF-8'}').find(':input[type=checkbox]').on('click', function(){
if ($(this).is(":checked")) {
$(this).closest('.tree-folder').find(':input[type=checkbox]').each(function(){
$(this).prop('checked', true);
$(this).parent().addClass('tree-selected');
});
} else {
$(this).closest('.tree-folder').find(':input[type=checkbox]').each(function(){
$(this).prop('checked', false);
$(this).parent().removeClass('tree-selected');
});
if ($(this).closest('.tree-item').length ==0) {
if ($(this).is(":checked")) {
$(this).closest('.tree-folder').find(':input[type=checkbox]').each(function(){
$(this).prop('checked', true);
$(this).parent().addClass('tree-selected');
});
} else {
$(this).closest('.tree-folder').find(':input[type=checkbox]').each(function(){
$(this).prop('checked', false);
$(this).parent().removeClass('tree-selected');
});
}
}
if ($(this).closest('.tree-item').length) {
if (!$(this).is(":checked")) {
$(this).parents('.tree-folder').find(':input[type=checkbox]:first').each(function(){
$(this).prop('checked', false);
$(this).parent().removeClass('tree-selected');
});
}
}
});
{/if}