feedback.js
548 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',
thirdLogin: true
});
exports.updateLogin = function() {
$(".comments-box").login("updateLoginState");
$(".comments-box").comment("publishComment");
}
}