template.js 1002 Bytes
Newer Older
NGO THI HONG committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/**
 * Header js 
 * @since cms:1.4.3.2&1.4.3.3 web:1.0
 */
var TEMPLATE = {};


/** load common data */
TEMPLATE.loadCommon = function() {
    $("#includedHeader").load("../common/header.html" , function() {
        I18N.initi18n();
    }); 
    $("#includedDashboardSetting").load("dashboard-setting.html", function() {
        DashboardSetting.init();
        I18N.initi18n();
    }); 
    $("#includedConfirmModal").load("../common/confirm-modal.html", function() {
        I18N.initi18n();
    }); 
}

TEMPLATE.loadHearder = function() {
    $("#includedHeader").load("../common/header.html" , function() {
        I18N.initi18n();
    }); 
}


TEMPLATE.loadDashboardSetting = function() {
    $("#includedDashboardSetting").load("dashboard-setting.html", function() {
        DashboardSetting.init();
        I18N.initi18n();
    }); 
}


TEMPLATE.loadConfirmModal = function() {
    $("#includedConfirmModal").load("../common/confirm-modal.html", function() {
        I18N.initi18n();
    }); 
}