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

@@ -105,7 +105,7 @@
<td class="actions">
<div class="btn-group">
{loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"}
<a class="btn btn-default btn-xs delete-content" title="{intl l='Delete this content'}" href="#delete_content_dialog" data-id="{$ID}" data-toggle="modal">
<a class="btn btn-default btn-xs delete-content" title="{intl l='Delete this content'}" href="#delete_content_dialog" data-id="{$CONTENT_ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}

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') + '();');
}
});
});