loading mock data
parent
0e7c3be9d3
commit
2bebac964e
@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
/* global define, app, socket, bootbox */
|
||||
|
||||
define('admin/extend/rewards', function() {
|
||||
var rewards = {};
|
||||
|
||||
|
||||
var available,
|
||||
active;
|
||||
|
||||
rewards.init = function() {
|
||||
available = JSON.parse($('#rewards').val());
|
||||
active = JSON.parse($('#active').val());
|
||||
|
||||
$('[data-selected]').each(function() {
|
||||
$(this).val($(this).attr('data-selected'));
|
||||
});
|
||||
};
|
||||
|
||||
return rewards;
|
||||
});
|
Loading…
Reference in New Issue