src/Topxia/AdminBundle/Resources/public/js/controller/group/thread.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
define(function(require, exports, module) {
var Notify = require('common/bootstrap-notify');
exports.run = function() {
var $table = $('#thread-table');
require('../../util/batch-select')($('#thread-form'));
$('#thread-delete-btn').on('click', function() {
if ($table.find(":checkbox:checked").length < 1) {
alert(Translator.trans('admin.group.thread_delete_pick_hint'));
return false;
}
if (!confirm(Translator.trans('admin.group.thread_delete_hint'))) {
return false;
}
$.post($('#batchDeleteThread').attr('value'), $("#thread-form").serialize(), function(status) {
window.location.reload();
});
});
$table.on('click', '.delete-thread,.close-thread,.open-thread', function() {
var $trigger = $(this);
if (!confirm(Translator.trans('admin.group.operating_hint',{trigger:$(this).attr('title')}))) {
return;
}
$.post($(this).data('url'), function(html) {
if (html == "success") {
Notify.success(Translator.trans('admin.group.operating_success_hint',{trigger:$trigger.attr('title')}));
setTimeout(function() {
window.location.reload();
}, 1500);
}
Notify.success(Translator.trans('admin.group.operating_success_hint',{trigger:$trigger.attr('title')}));
var $tr = $(html);
$('#' + $tr.attr('id')).replaceWith(html);
}).error(function() {
Notify.danger(Translator.trans('admin.group.operating_fail_hint',{trigger:$trigger.attr('title')}));
});
})
$table.on('click', ".promoted-label", function() {
var $self = $(this);
var postUrl = $self.data('url');
$.post(postUrl, function(html) {
var $tr = $(html);
$('#' + $tr.attr('id')).replaceWith(html);
});
});
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。