rsstootalizer/static/js/Dashboard.js

28 lines
681 B
JavaScript
Raw Normal View History

2017-04-22 18:55:50 +00:00
function TweetodonOnReady(){
2017-04-22 19:28:21 +00:00
$("form#addFeed").hide();
2017-04-22 18:55:50 +00:00
$("a.deleteFeed").on("click", function(){
var btn = $(this);
if (confirm("Really delete this feed?")){
var l = "index.pl?mode=Dashboard&delete="+btn.data("id");
document.location.href=l;
}
});
2017-04-22 19:28:21 +00:00
$("a.addFeed").on("click", function(){
var btn=$(this);
$("form#addFeed").show();
btn.hide();
});
$("a.enable").on("click", function(){
var btn = $(this);
var l = "index.pl?mode=Dashboard&enable="+btn.data("id");
document.location.href=l;
});
$("a.disable").on("click", function(){
var btn = $(this);
var l = "index.pl?mode=Dashboard&disable="+btn.data("id");
document.location.href=l;
});
2017-04-22 18:55:50 +00:00
}