diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-27 22:55:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 22:55:46 +0100 |
commit | d046de8057d42d4653af6d7c6c7ff557319d1bae (patch) | |
tree | 0361d8515fa3b3d16b0222a27048158262d76376 /app/public/static/package_edit.js | |
parent | e85298d890a3fdaa3ac1919092aa495cf480a61f (diff) | |
parent | 05e536b1217633fd612b8ee94360e8afef3c527c (diff) | |
download | cheatdb-d046de8057d42d4653af6d7c6c7ff557319d1bae.tar.xz |
Merge pull request #78 from minetest/dev
Add meta packages, remove current dependencies
Diffstat (limited to 'app/public/static/package_edit.js')
-rw-r--r-- | app/public/static/package_edit.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/public/static/package_edit.js b/app/public/static/package_edit.js new file mode 100644 index 0000000..40fbe44 --- /dev/null +++ b/app/public/static/package_edit.js @@ -0,0 +1,11 @@ +// @author rubenwardy +// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later + +$(function() { + $("#type").change(function() { + $(".not_mod, .not_game, .not_txp").show() + $(".not_" + this.value.toLowerCase()).hide() + }) + $(".not_mod, .not_game, .not_txp").show() + $(".not_" + $("#type").val().toLowerCase()).hide() +}) |