|
|
@ -129,11 +129,11 @@ define('admin/extend/rewards', function() {
|
|
|
|
|
|
|
|
|
|
|
|
function newReward() {
|
|
|
|
function newReward() {
|
|
|
|
var ul = $('#active'),
|
|
|
|
var ul = $('#active'),
|
|
|
|
id = parseInt($('#active li').last().attr('data-id'), 10);
|
|
|
|
id = $('#active li').last().attr('data-id');
|
|
|
|
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
var data = {
|
|
|
|
active: [{
|
|
|
|
active: [{
|
|
|
|
id: id ? id + 1 : 0,
|
|
|
|
id: id ? parseInt(id, 10) + 1 : 0,
|
|
|
|
disabled: true,
|
|
|
|
disabled: true,
|
|
|
|
value: ''
|
|
|
|
value: ''
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|