מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף

Resolve soft redirects, and force disambiguation
Forbid self references
שורה 636: שורה 636:
   var v = text.value ;
   var v = text.value ;
    
    
  if (!v || wgNamespaceNumber == 14 && v == wgTitle) {
    // Empty, or self reference.
    hotcat_cancel ();
    return;
  }
   if (hotcat_upload) {
   if (hotcat_upload) {
     hotcat_just_add (v) ; // Close the form
     hotcat_just_add (v) ; // Close the form