diff --git a/README.md b/README.md index f027840f0d5b9a45560163a72525bcb636ed4e2c..500c9b8bbf9e7f17e95fb93dd2d0a2e3ff5a53ea 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ A web interface for Synchronet BBS ; Enable or disable keyboard navigation in message threads keyboard_navigation = false ; Display upvote/downvote buttons in message threads (3.17) - vote_buttons = true + vote_functions = true ; Refresh nodelist, vote counts, etc. this often (in milliseconds) refresh_interval = 60000 ``` diff --git a/web/root/pages/001-forum.ssjs b/web/root/pages/001-forum.ssjs index 236f8b20437d2d66877bf2658701a59905553e09..36a4299e6ff46189d3aaca5531db4956285d8ba5 100644 --- a/web/root/pages/001-forum.ssjs +++ b/web/root/pages/001-forum.ssjs @@ -10,7 +10,7 @@ var strings = { open : '<script type="text/javascript">', thread_navigation : 'threadNav();', interval : 'setInterval(function () { %s }, %s);', - vote_buttons : 'enableVoteButtonHandlers("%s");', + vote_functions : 'enableVoteButtonHandlers("%s");', vote_refresh_thread : 'getVotesInThread("%s", %s)', vote_refresh_threads : 'getVotesInThreads("%s")', get_group_unread : 'getGroupUnreadCount("%s")', @@ -188,7 +188,7 @@ if (typeof http_request.query.sub !== 'undefined' && writeln(strings.message.header.voting.open); if (!(msgBase.cfg.settings&SUB_NOVOTING) && - (typeof settings.vote_buttons === 'undefined' || settings.vote_buttons) && + (typeof settings.vote_functions === 'undefined' || settings.vote_functions) && !(header.attr&MSG_POLL) ) { writeln( @@ -382,7 +382,7 @@ if (typeof http_request.query.sub !== 'undefined' && writeln(strings.script.open); if (settings.keyboard_navigation) writeln(strings.script.thread_navigation); if (user.alias != settings.guest || user.security.restrictions&UFLAG_V) { - writeln(format(strings.script.vote_buttons, http_request.query.sub[0])); + writeln(format(strings.script.vote_functions, http_request.query.sub[0])); } writeln( format( @@ -443,7 +443,7 @@ if (typeof http_request.query.sub !== 'undefined' && writeln(strings.thread_list.item.badges.open); if (!(msg_area.sub[http_request.query.sub[0]].settings&SUB_NOVOTING) && - settings.vote_buttons && + settings.vote_functions && (thread.votes.up > 0 || thread.votes.down > 0) ) { writeln(