feedback.js 616 Bytes

    var $ = require("jquery");
    require("../plugin/comment");
    require("../plugin/login");
    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
        });
        exports.updateLogin = function(){
            $(".comments-box").login("updateLoginState");
            $(".comments-box").comment("publishComment");
        }
    }