// BO: fixes to product page JS

This commit is contained in:
tDidierjean
2012-01-19 15:44:12 +00:00
parent 9f8e9fd61b
commit 2f40940e7e
3 changed files with 9 additions and 7 deletions
@@ -28,6 +28,9 @@
{block name="autoload_tinyMCE"} {block name="autoload_tinyMCE"}
// change each by click to load only on click // change each by click to load only on click
$("#product-tab-content-Informations").bind('loaded', function(){
$(".autoload_rte").each(function(e){ $(".autoload_rte").each(function(e){
tinySetup({ tinySetup({
mode :"exact", mode :"exact",
@@ -56,10 +59,11 @@
textarea.parent('div').find('span.counter').html(' '); textarea.parent('div').find('span.counter').html(' ');
} }
}); });
} }
}); });
}) });
});
$("#product-tab-content-Informations").trigger('loaded');
{/block} {/block}
{block name="defaultForm"} {block name="defaultForm"}
@@ -75,6 +79,8 @@
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var token = '{$token}';
var id_product = {if isset($product->id)}{$product->id}{else}0{/if};
var toload = new Array(); 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.'}'; 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(); $('#product-tab-content-wait').show();
@@ -25,7 +25,6 @@
*} *}
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$('input').keypress(function(e) { $('input').keypress(function(e) {
var code = null; var code = null;
@@ -40,9 +39,6 @@
<h4 class="tab">1. {l s='Info.'}</h4> <h4 class="tab">1. {l s='Info.'}</h4>
<h4>{l s='Product global information'}</h4> <h4>{l s='Product global information'}</h4>
<script type="text/javascript"> <script type="text/javascript">
var token = '{$token}';
var id_product = {if isset($product->id)}{$product->id}{else}0{/if};
{$combinationImagesJs} {$combinationImagesJs}
</script> </script>
<div class="separation"></div> <div class="separation"></div>
@@ -398,7 +398,7 @@
theme_advanced_buttons3 : "", theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "", theme_advanced_buttons4 : "",
}); });
}) });
{/block} {/block}
}); });
</script> </script>