Commit 6e68f433 by NGUYEN HOANG SON

implement operation, templage select callback

parent 2a17032c
......@@ -102,8 +102,8 @@ SendMessage.templateSelectedCallback = function(template) {
*/
SendMessage.init = function () {
TEMPLATE.loadHearder("#includedHeader");
TEMPLATE.loadOperationSelect('#includeOperationSelect');
TEMPLATE.loadNotificationSelect('#includeTemplateModal');
TEMPLATE.loadOperationSelect('#includeOperationSelect', SendMessage.operationSelectedCallback);
TEMPLATE.loadNotificationSelect('#includeTemplateModal', SendMessage.templateSelectedCallback);
//load lang for elements none class lang
I18N.initi18n();
document.title = I18N.i18nText('sendMessageTitle');
......
......@@ -27,9 +27,9 @@ TEMPLATE.loadConfirmModal = function(elmentId) {
}
/** Template load operation select */
TEMPLATE.loadOperationSelect = function(elmentId) {
TEMPLATE.loadOperationSelect = function(elmentId, selectCallback) {
$(elmentId).load("operation-select.html", function() {
OperationSelect.init();
OperationSelect.init(selectCallback);
I18N.initi18n();
});
}
......@@ -44,9 +44,9 @@ TEMPLATE.loadOperationSelect = function(elmentId) {
};
/** Template load notification content*/
TEMPLATE.loadNotificationSelect = function(elmentId) {
TEMPLATE.loadNotificationSelect = function(elmentId, selectCallback) {
$(elmentId).load("notification-content.html", function() {
NotificationSelect.init();
NotificationSelect.init(selectCallback);
I18N.initi18n();
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment