//jQuery(document).ready(function() { //jQuery(document).on('click', '.tp-tab', function(e) { //var tab_id = jQuery(this).attr('data-liref'); //var action = jQuery('[data-index='+tab_id+']').find('[data-actions]').attr('data-actions'); //if (action.length > 0) { //action = JSON.parse(action); //if (undefined !== action[0]['url']) { //var url = action[0]['url']; //console.log(url); //window.location.replace(url); //jQuery(this).append('Посмотреть'); //} //} //}); });