Difference between revisions of "MediaWiki:Common.js/sources.js"

m
m
Line 4: Line 4:
 
if (isTesting && window.jQuery) {
 
if (isTesting && window.jQuery) {
 
     jQuery(document).ready(function() {
 
     jQuery(document).ready(function() {
         var text = jQuery('#wpUploadDescription').value();
+
         jQuery('#wpUploadDescription').value('hello');
        if (text) alert(text);
 
 
     });
 
     });
 
}
 
}
  
 
//</source>
 
//</source>

Revision as of 16:27, 17 April 2010

/* Any JavaScript here will be loaded for all users on the upload page. */
//<source lang="javascript">

if (isTesting && window.jQuery) {
    jQuery(document).ready(function() {
        jQuery('#wpUploadDescription').value('hello');
    });
}

//</source>