File: /www/wwwroot/oa.sanjiangapp.com/app/sys/message/js/admin.js
$(document).ready(function()
{
/* Set active menu. */
$('#menu li.active').removeClass('active');
$("#menu a[href*='type=" + v.type + "']").parent().addClass('active');
$('.pre').click(function()
{
var selector = $(this);
bootbox.confirm($(this).data('confirm'), function(result)
{
if(result)
{
selector.text(v.lang.deleteing);
$.getJSON(selector.attr('href'), function(data)
{
if(data.result=='success')
{
location.reload();
}
else
{
alert(data.message);
}
});
}
});
return false;
});
$('.pass').click(function()
{
var selector = $(this);
selector.text(v.lang.doing);
$.getJSON(selector.attr('href'), function(data)
{
if(data.result=='success')
{
location.reload();
}
else
{
alert(data.message);
}
});
return false;
});
});