diff options
| author | 8chan <admin@8chan.co> | 2015-03-19 20:22:17 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-31 05:59:54 +0200 |
| commit | f26256f55a3a1c5c403cb6292018a369d47bc812 (patch) | |
| tree | 99ec221d7625d196b77a42252eedba75b040e632 /js | |
| parent | 6e84a25f9a882bc4c2cbd1e376416ac34ca9943b (diff) | |
Make file selector work, add to config
Conflicts:
inc/instance-config.php
templates/post_form.html
Diffstat (limited to 'js')
| -rw-r--r-- | js/file-selector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/file-selector.js b/js/file-selector.js index dbe8ea82..687920d0 100644 --- a/js/file-selector.js +++ b/js/file-selector.js @@ -5,7 +5,7 @@ * $config['additional_javascript'][] = 'js/jquery.min.js'; * $config['additional_javascript'][] = 'js/file-selector.js'; */ -function init_file_selector() { +function init_file_selector(max_images) { $(document).ready(function () { // add options panel item @@ -20,7 +20,7 @@ $(document).ready(function () { } }); - if (localStorage.file_dragdrop === 'undefined') localStorage.file_dragdrop = 'true'; + if (typeof localStorage.file_dragdrop === 'undefined') localStorage.file_dragdrop = 'true'; if (localStorage.file_dragdrop === 'true') $('#file-drag-drop>input').prop('checked', true); } }); |
