Changes

Jump to navigation Jump to search
no edit summary
Line 187: Line 187:  
     wpPermissionUploadLbl:    'Permission:',
 
     wpPermissionUploadLbl:    'Permission:',
 
     wpCategoriesUploadLbl:    'Categories:',
 
     wpCategoriesUploadLbl:    'Categories:',
 +
    wpResourceLinkUploadLbl:  'Resource Link:',
 
     wpOtherVersionsUploadLbl:  'Other versions:',
 
     wpOtherVersionsUploadLbl:  'Other versions:',
 
     wpAdditionalInfoUploadLbl: 'Additional information:',
 
     wpAdditionalInfoUploadLbl: 'Additional information:',
Line 653: Line 654:  
     setHelp ('wpDate', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpDate', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpDesc', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpDesc', button_imgs, button_lk, max_width, is_reupload);
 +
    setHelp ('wpResourceLink', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpPermission', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpPermission', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpOtherVersions', button_imgs, button_lk, max_width, is_reupload);
 
     setHelp ('wpOtherVersions', button_imgs, button_lk, max_width, is_reupload);
Line 1,298: Line 1,300:  
     }
 
     }
 
     addInput (table, idx++, 'wpOtherVersions', null, 80, previous_form);
 
     addInput (table, idx++, 'wpOtherVersions', null, 80, previous_form);
 +
    addInput (table, idx++, 'wpResourceLink', null, 80, previous_form);
 
     addInput (table, idx++, 'wpPermission', null, 80, previous_form);
 
     addInput (table, idx++, 'wpPermission', null, 80, previous_form);
 
     new_field = document.createElement ('textarea');
 
     new_field = document.createElement ('textarea');
Line 1,399: Line 1,402:  
       var other      = document.getElementById ('wpPermission');
 
       var other      = document.getElementById ('wpPermission');
 
       var othervers  = document.getElementById ('wpOtherVersions');
 
       var othervers  = document.getElementById ('wpOtherVersions');
 +
      var resourceli  = document.getElementById ('wpResourceLink');
    
       desc_text = '\{\{Information\n'
 
       desc_text = '\{\{Information\n'
Line 1,405: Line 1,409:  
                   + '|Author        =' + (!author.disabled ? UploadForm.clean (author.value) : "") + '\n'
 
                   + '|Author        =' + (!author.disabled ? UploadForm.clean (author.value) : "") + '\n'
 
                   + '|Date          =' + (!date.disabled ? UploadForm.clean (date.value) : "") + '\n'
 
                   + '|Date          =' + (!date.disabled ? UploadForm.clean (date.value) : "") + '\n'
 +
                  + '|Resource_link          =' + (!resourceli.disabled ? UploadForm.clean (resourceli.value) : "") + '\n'
 
                   + ((other && !other.disabled && other.value != null)
 
                   + ((other && !other.disabled && other.value != null)
 
                       ? '|Permission    =' + UploadForm.clean (other.value) + '\n'
 
                       ? '|Permission    =' + UploadForm.clean (other.value) + '\n'
Line 1,498: Line 1,503:  
     var date      = document.getElementById ('wpDate');
 
     var date      = document.getElementById ('wpDate');
 
     var other    = document.getElementById ('wpPermission');
 
     var other    = document.getElementById ('wpPermission');
 +
    var resourceli = document.getElementById ('wpResourceLink');
 
     var othervers = document.getElementById ('wpOtherVersions');
 
     var othervers = document.getElementById ('wpOtherVersions');
 
     var moreInfo  = document.getElementById ('wpAdditionalInfo');
 
     var moreInfo  = document.getElementById ('wpAdditionalInfo');

Navigation menu