// BO: fixes to product page JS
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
|
||||
{block name="autoload_tinyMCE"}
|
||||
// change each by click to load only on click
|
||||
|
||||
$("#product-tab-content-Informations").bind('loaded', function(){
|
||||
|
||||
$(".autoload_rte").each(function(e){
|
||||
tinySetup({
|
||||
mode :"exact",
|
||||
@@ -56,10 +59,11 @@
|
||||
textarea.parent('div').find('span.counter').html(' ');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
$("#product-tab-content-Informations").trigger('loaded');
|
||||
{/block}
|
||||
|
||||
{block name="defaultForm"}
|
||||
@@ -75,6 +79,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var token = '{$token}';
|
||||
var id_product = {if isset($product->id)}{$product->id}{else}0{/if};
|
||||
var toload = new Array();
|
||||
var empty_pack_msg = '{l s='Pack is empty. You need to add at least one product to the pack before you can save it.'}';
|
||||
$('#product-tab-content-wait').show();
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
$('input').keypress(function(e) {
|
||||
var code = null;
|
||||
@@ -40,9 +39,6 @@
|
||||
<h4 class="tab">1. {l s='Info.'}</h4>
|
||||
<h4>{l s='Product global information'}</h4>
|
||||
<script type="text/javascript">
|
||||
var token = '{$token}';
|
||||
var id_product = {if isset($product->id)}{$product->id}{else}0{/if};
|
||||
|
||||
{$combinationImagesJs}
|
||||
</script>
|
||||
<div class="separation"></div>
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_buttons4 : "",
|
||||
});
|
||||
})
|
||||
});
|
||||
{/block}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user