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

Properly handle input of a sort key (i.e., "Some category|Sortkey").
Minor bugfix: can't use hotcat_ok to force closing an open form as it is asynchronous. Use hotcat_closeform instead.
שורה 119: שורה 119:
   // First, make sure that if we have an open category input form, we close it.
   // First, make sure that if we have an open category input form, we close it.
   var input = document.getElementById ('hotcat_text');
   var input = document.getElementById ('hotcat_text');
   if (input != null) hotcat_ok ();
   if (input != null) hotcat_closeform ();


   var do_submit = true;
   var do_submit = true;