change content if on product associated content

This commit is contained in:
Manuel Raynaud
2014-01-20 17:09:52 +01:00
parent 502b149d32
commit 87bc1a83aa
2 changed files with 4 additions and 2 deletions

View File

@@ -154,7 +154,9 @@ $(function() {
$('.nav-tabs a[data-href]').on('shown.bs.tab', function(ev) {
var $this = $(this);
$($this.attr('href')).load($this.data('href'), function(ev) {
eval($this.data('callback') + '();');
if($this.data('callback')) {
eval($this.data('callback') + '();');
}
});
});