user selectable pagination

This commit is contained in:
Baris Soner Usakli
2014-02-10 14:15:54 -05:00
parent 93f5f320fe
commit 242927d702
10 changed files with 233 additions and 143 deletions

View File

@@ -7,7 +7,10 @@ define(['forum/accountheader'], function(header) {
$('#submitBtn').on('click', function() {
var settings = {
showemail: $('#showemailCheckBox').is(':checked') ? 1 : 0
showemail: $('#showemailCheckBox').is(':checked') ? 1 : 0,
usePagination: $('#usePaginationCheckBox').is(':checked') ? 1 : 0,
topicsPerPage: $('#topicsPerPage').val(),
postsPerPage: $('#postsPerPage').val()
};
socket.emit('user.saveSettings', settings, function(err) {