feedback320.js 678 Bytes
/*
 * @description: 意见反馈
 * @author: chenglong.wang@yoho.cn
 * @date: 2015/1/13
 */

var $ = require("jquery");

        require("../plugin/login");
        require("../plugin/comment");

exports.init = function() {
    $('.about-nav .feedback').addClass('current');
    $(".comments-box").comment({
        cid:'0',
        commentPageUrl:'/feedback/default/list',
        publishUrl:'/feedback/default/publish',
        deleteUrl:'/feedback/default/delete',
        isFeedback:true,
        isMobile:true
    });
    exports.updateLogin = function(){
        $(".comments-box").login("updateLoginState");
        $(".comments-box").comment("publishComment");
    };
};