src/Topxia/AdminBundle/Resources/public/js/controller/educloud/attachment-setting.js
(开头部分) 1007B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
define(function(require, exports, module) {
var Validator = require('bootstrap.validator');
require('common/validator-rules').inject(Validator);
var Notify = require('common/bootstrap-notify');
exports.run = function() {
$("input[name='enable']").on('click', function() {
if ($(this).val() == 1) {
$('.attachement_detail').removeClass('hidden');
} else {
$('.attachement_detail').addClass('hidden');
}
});
var validator = new Validator({
element: '#cloud-attachment'
});
validator.addItem({
element: '[name="fileSize"]',
required: true,
rule: 'positive_integer fileSize',
});
Validator.addRule("fileSize", function(options) {
var element = $(options.element);
return element.val() <= 2 * 1024;
}, Translator.trans('validate_old.server_upload_attachment_limit.message'));
}
});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。