//隐藏Widget的工具栏
widget.on('ready',function (widget) {
var usrName=prism.user.userName;
if(usrName!="admin")
{
var p = $(element).parent();
$('widget-header',p).hide();
}
})
dashboard.on('refreshend', function(se, ev){
if (prism.user.roles.consumer)
{
$('widget-header, .menu-btn').css('display','none');
}
})