diff --git a/static/sdk.js b/static/sdk.js index 6ecf765..d5e7cca 100644 --- a/static/sdk.js +++ b/static/sdk.js @@ -122,35 +122,7 @@ var contented = (function($, currentScriptPath) { } - /* - var onLoad = function() { - var form = document.getElementById("form"); - var input = document.getElementById("form-upload"); - var label = document.getElementById("form-label"); - - var makeCaptionText = function( files ) { - return files.length > 1 ? ( input.getAttribute( 'data-multiple-caption' ) || '' ).replace( '{count}', files.length ) : files[ 0 ].name; - }; - - var refreshCaption = function() { - onStateChange( makeCaptionText( input.files ) ); - }; - input.addEventListener('change', refreshCaption); - - // - document.getElementById("classic-uploader").addEventListener("click", function() { - form.classList.remove("supports-drag"); - }); - - // Handle uploads - - form.addEventListener('drop', function(e) { - - }); - - }; - */ - + // return { 'supportsDrop': contented_SupportsDrop, 'init': contented_EnableDrop