cleanup and fix for adding new rewards

v1.18.x
psychobunny 10 years ago
parent 5f54de3b37
commit c844400ab9

@ -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);

@ -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;
Loading…
Cancel
Save