All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.modules.sys.innermsg.ctrl.innermsg.reply.js Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
define(function(require) {
	var Config = require('config');
	var Core = require('core/core');
	var InnerMsgWrite = require('../ctrl/innermsg.write');
	var ReplyTemplate = require('text!../reply.template.html');
	var Mustache = require('plugins/mustache.min');
	
	// 回复消息
	var InnerMsgReply = InnerMsgWrite.extend(function() {
		
		// @override
		this.load = function(panel, data) {
			data.receive = data.sender;
			data.msgContent = Mustache.render(ReplyTemplate, data);
			data.msgTitle = "回复:" + data.msgTitle;
			delete data.sender;
		
			panel.find('form').form('disableValidation')
				.form('load', data)
				.form('readonly', 'receive')
				.form('focus');
		};
		
	});
	
	return InnerMsgReply;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy