From 2500f53701cda14f424409bd8d21b1f706c6c636 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 19 Jan 2014 13:45:22 +0100 Subject: [PATCH] document upload-selection.js ( vichan-devel/Tinyboard#26 ) --- js/upload-selection.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/upload-selection.js b/js/upload-selection.js index fb3d9131..80a684d0 100644 --- a/js/upload-selection.js +++ b/js/upload-selection.js @@ -1,3 +1,17 @@ +/* + * upload-selection.js - makes upload fields in post form more compact + * https://github.com/vichan-devel/Tinyboard/blob/master/js/watch.js + * + * Released under the MIT license + * Copyright (c) 2014 Marcin Ɓabanowski + * + * Usage: + * $config['additional_javascript'][] = 'js/jquery.min.js'; + * $config['additional_javascript'][] = 'js/upload-selection.js'; + * //$config['additional_javascript'][] = 'js/oekaki.js'; //WARNING: unsupported + * + */ + $(function(){ var enabled_file = true; var enabled_url = $("#upload_url").length > 0;