document upload-selection.js ( vichan-devel/Tinyboard#26 )

This commit is contained in:
czaks 2014-01-19 13:45:22 +01:00
parent 875a2df521
commit 2500f53701

View File

@ -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 <marcin@6irc.net>
*
* Usage:
* $config['additional_javascript'][] = 'js/jquery.min.js';
* $config['additional_javascript'][] = 'js/upload-selection.js';
* //$config['additional_javascript'][] = 'js/oekaki.js'; //WARNING: unsupported
*
*/
$(function(){ $(function(){
var enabled_file = true; var enabled_file = true;
var enabled_url = $("#upload_url").length > 0; var enabled_url = $("#upload_url").length > 0;