Thread:UltimateSupreme/@comment-4347751-20160430162823/@comment-4347751-20160501105208

I've decided to go a different route. I just want something to appear in the box, which I've accomplished with half your code, however, I cannot get the licensing verification to work? if (mw.config.get('wgCanonicalSpecialPageName') === 'MultipleUpload' || 'Upload') { jQuery(function ($) {       'use strict';        var $desc = $('#wpUploadDescription');        if ($desc.val) {            return; // If not empty then don't do anything (i.e. error message confirm page)        }         $desc.val( ''       );        function verifyLicense {		if (!$('#wpLicense').val) {                  window.alert('Licensing must be complete.');                  return false;               }             $description.closest('form').submit(verifyLicense);	}    });

}