Node.js based forum software built for the modern web
cleanup and fix for adding new rewards
psychobunnyc844400ab983
diff --git a/public/src/admin/extend/rewards.js b/public/src/admin/extend/rewards.jsindex 645f5b0d98..b57c1c4cee 100644--- a/public/src/admin/extend/rewards.js+++ b/public/src/admin/extend/rewards.js@@ -127,7 +127,7 @@ define('admin/extend/rewards', function() {.attr('data-rid', '');li.find('.inputs').html('');- li.find('[name="reward"]').val('');+ li.find('[name="rid"]').val('');li.find('.toggle').removeClass('btn-warning').addClass('btn-success').html('Enable');ul.append(li);diff --git a/src/rewards/admin.js b/src/rewards/admin.jsindex 8f5fc8b40c..dc1103f3ae 100644--- a/src/rewards/admin.js+++ b/src/rewards/admin.js@@ -149,33 +149,6 @@ function getActiveRewards(callback) {callback(err, activeRewards);});});--/*- callback(false, [- {- "id": 0,- "rid": "core:alert-user",- "condition": "postcount",- "conditional": "greaterthan",- "rewards": {- "title": "Here is a title",- "message": "here is a message"- },- "value": 100,- "disabled": false- },- {- "id": 1,- "rid": "core:add-to-group",- "condition": "lastLoggedIn",- "conditional": "lesserthan",- "rewards": {- "groupname": "group2"- },- "value": 10,- "disabled": true- }- ]);*/}module.exports = rewards;\ No newline at end of file