add method
This commit is contained in:
parent
72ec664c0f
commit
59b42a96c0
@ -17,6 +17,10 @@ $.ajax({
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
var lastIndex = response.length - 1;
|
var lastIndex = response.length - 1;
|
||||||
|
var i;
|
||||||
|
for(i in response){
|
||||||
|
$('.sidebar').append($('<div>').append(i));
|
||||||
|
}
|
||||||
|
|
||||||
if (response[lastIndex]['hasCode'] == true)
|
if (response[lastIndex]['hasCode'] == true)
|
||||||
loadScript('content/js/' + response[lastIndex]['date'] + '.js');
|
loadScript('content/js/' + response[lastIndex]['date'] + '.js');
|
||||||
|
Loading…
Reference in New Issue
Block a user