add new feature that let user can add hot and top or hidden status themselves
This commit is contained in:
1 parent
f91f598df7
commit
3b214e3519
15 files changed
+22365
-54
No files matched your search
+7134
File diff suppressed because it is too large.
Load diff
+4521
File diff suppressed because it is too large.
Load diff
@@ -22,17 +22,23 @@
|
||||
dataType : "json",
|
||||
type : "get"
|
||||
}).done(function(channels){
|
||||
$.each(channels.channels,function(index,channel){
|
||||
var ch = $("<div id='" + channel.key + "-channel' class='module cursor-pointer'><div class='lead muted'><i class='" + channel.app_icon + "'></i><br/><span style='font-size:14px;'>" + channel.title + "</span></div></div>");
|
||||
ch.on("click",function(){
|
||||
getFeedList(channel);
|
||||
})
|
||||
$("#channels").append(ch);
|
||||
})
|
||||
setTimeout(function(){
|
||||
displayLoading(false);
|
||||
setTimeout(function(){$("#channels").fadeIn();},500);
|
||||
},1000);
|
||||
if (channels != null){
|
||||
$.each(channels.channels,function(index,channel){
|
||||
var ch = $("<div id='" + channel.key + "-channel' class='module cursor-pointer'><div class='lead muted'><i class='" + channel.app_icon + "'></i><br/><span style='font-size:14px;'>" + channel.title + "</span></div></div>");
|
||||
ch.on("click",function(){
|
||||
getFeedList(channel);
|
||||
})
|
||||
$("#channels").append(ch);
|
||||
})
|
||||
setTimeout(function(){
|
||||
displayLoading(false);
|
||||
setTimeout(function(){$("#channels").fadeIn();},500);
|
||||
},1000);
|
||||
}
|
||||
else{
|
||||
alert('Feed not found')
|
||||
window.location.href = window.location.href
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user