Skip to content
Snippets Groups Projects
Commit a7250b1d authored by echicken's avatar echicken :chicken:
Browse files

Renamed vote_buttons setting to vote_functions

parent e104be61
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ A web interface for Synchronet BBS ...@@ -51,7 +51,7 @@ A web interface for Synchronet BBS
; Enable or disable keyboard navigation in message threads ; Enable or disable keyboard navigation in message threads
keyboard_navigation = false keyboard_navigation = false
; Display upvote/downvote buttons in message threads (3.17) ; 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 nodelist, vote counts, etc. this often (in milliseconds)
refresh_interval = 60000 refresh_interval = 60000
``` ```
......
...@@ -10,7 +10,7 @@ var strings = { ...@@ -10,7 +10,7 @@ var strings = {
open : '<script type="text/javascript">', open : '<script type="text/javascript">',
thread_navigation : 'threadNav();', thread_navigation : 'threadNav();',
interval : 'setInterval(function () { %s }, %s);', interval : 'setInterval(function () { %s }, %s);',
vote_buttons : 'enableVoteButtonHandlers("%s");', vote_functions : 'enableVoteButtonHandlers("%s");',
vote_refresh_thread : 'getVotesInThread("%s", %s)', vote_refresh_thread : 'getVotesInThread("%s", %s)',
vote_refresh_threads : 'getVotesInThreads("%s")', vote_refresh_threads : 'getVotesInThreads("%s")',
get_group_unread : 'getGroupUnreadCount("%s")', get_group_unread : 'getGroupUnreadCount("%s")',
...@@ -188,7 +188,7 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -188,7 +188,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln(strings.message.header.voting.open); writeln(strings.message.header.voting.open);
if (!(msgBase.cfg.settings&SUB_NOVOTING) && 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) !(header.attr&MSG_POLL)
) { ) {
writeln( writeln(
...@@ -382,7 +382,7 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -382,7 +382,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln(strings.script.open); writeln(strings.script.open);
if (settings.keyboard_navigation) writeln(strings.script.thread_navigation); if (settings.keyboard_navigation) writeln(strings.script.thread_navigation);
if (user.alias != settings.guest || user.security.restrictions&UFLAG_V) { 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( writeln(
format( format(
...@@ -443,7 +443,7 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -443,7 +443,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln(strings.thread_list.item.badges.open); writeln(strings.thread_list.item.badges.open);
if (!(msg_area.sub[http_request.query.sub[0]].settings&SUB_NOVOTING) && 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) (thread.votes.up > 0 || thread.votes.down > 0)
) { ) {
writeln( writeln(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment