Thread:UltimateSupreme/@comment-4347751-20160430162823/@comment-4731838-20160502093516

Messed up some brackets and a variable name: if (mw.config.get('wgCanonicalSpecialPageName') === '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;               }        }        $desc.closest('form').submit(verifyLicense);    });

}