Files
EasySoft-ZenTaoPMS/module/my/js/common.js
T
2021-11-05 10:17:24 +08:00

15 lines
575 B
JavaScript

$(function()
{
if(typeof mode === 'string')
{
$('#subNavbar li[data-id=' + mode + ']').addClass('active');
if(typeof rawMethod === 'string' && rawMethod == 'work') $('#subNavbar li[data-id=' + mode + '] a').append('<span class="label label-light label-badge">' + total + '</span>');
}
var $scp = $('[data-id="changePassword"] a');
if($scp.length > 0)
{
var sign = config.requestType == 'GET' ? '&' : '?';
$scp.attr('href', $scp.attr('href') + sign + 'onlybody=yes').modalTrigger({width:500, type:'iframe'});
}
});