diff options
author | Satoshi Sahara <sahara.satoshi@gmail.com> | 2020-07-24 09:09:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 09:09:05 +0900 |
commit | 23a8b8f814821853bb3075cb411a68db2ae97e3f (patch) | |
tree | eb66f7652701f5834f4d57c95f350cf025178b9e /lib/scripts | |
parent | feee32dc5882f2ec122feaa7f6096a5897af1ddc (diff) | |
parent | 499d9bcd9036da8a75b9ab35154ad4eb820d21a0 (diff) | |
download | dokuwiki-23a8b8f814821853bb3075cb411a68db2ae97e3f.tar.gz dokuwiki-23a8b8f814821853bb3075cb411a68db2ae97e3f.zip |
Merge branch 'master' into form
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/media.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/scripts/media.js b/lib/scripts/media.js index 6f36d3b2e..fda64635c 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -696,6 +696,14 @@ var dw_mediamanager = { prepare_content: function ($content) { // hide syntax example $content.find('div.example:visible').hide(); + // toggle list of allowed mime types + $content.find('a.allowedmime').on('click', function (event) { + event.preventDefault(); + $toggle = jQuery(this); + $list = $toggle.next('span'); + $list.toggle(); + }).next('span').hide(); + }, /** |