zentaopms/module/doc/js/x.view.js
2023-05-16 10:47:08 +08:00

27 lines
917 B
JavaScript

$(function()
{
$('.main-actions-holder').css('height', '0px');
var xuanAction = "<div class='xuancard-actions fixed'>";
$('.main-col div.main-actions .btn-toolbar a').each(function(){
var $that = $(this);
if($that.attr('id') == 'back') return true;
var href = $that.attr('href');
var title = $that.attr('title') == undefined ? '' : " title='" + $that.attr('title') + "'";
var btnClass = " class='" + $that.attr('class') + "'";
var action = $that.html();
if(href.indexOf('edit') < 0) return true;
url = 'xxc:openUrlInDialog/' + encodeURIComponent(sysurl + href);
target = " target='_blank'";
xuanAction += "<a href='" + url + "'" + title + target + btnClass + '>' + action + "</a>";
});
xuanAction += '</div>';
$('body').append(xuanAction);
$('.xuancard-actions a.iframe').modalTrigger();
})