Delete js/showmodded.js
This commit is contained in:
parent
2f15ccb5e3
commit
1479e3fb31
@ -1,21 +0,0 @@
|
|||||||
$(document).ready(function() {
|
|
||||||
function updateShowModded() {
|
|
||||||
var isChecked = $("#showModded").is(":checked");
|
|
||||||
if (isChecked) {
|
|
||||||
$("#moddedButtons").show();
|
|
||||||
} else {
|
|
||||||
$("#moddedButtons").hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function updateButtons() {
|
|
||||||
$(".modded-buttons").each(function() {
|
|
||||||
var url = $(this).data("url");
|
|
||||||
$(this).attr("href", url);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$("#showModded").on("change", function() {
|
|
||||||
updateShowModded();
|
|
||||||
updateButtons();
|
|
||||||
});
|
|
||||||
updateShowModded();
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user