Pāriet uz saturu

MediaWiki:Common.js

No ''Latvijas Nacionālā bibliotēka''
Versija 2025. gada 19. septembris, plkst. 18.33, kādu to atstāja Eboltris (diskusija | devums)

Piezīme: Lai redzētu izmaiņas, pēc publicēšanas var nākties iztīrīt sava pārlūka kešatmiņu.

  • Firefox / Safari: Pieturi Shift un klikšķini uz Pārlādēt vai nospied Ctrl-F5 vai Ctrl-R (⌘-R uz Mac)
  • Google Chrome: Nospied Ctrl-Shift-R (⌘-Shift-R uz Mac)
  • Internet Explorer / Edge: Pieturi Ctrl un klikšķini uz Pārlādēt vai nospied Ctrl-F5
  • Opera: Nospied Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */

mw.hook('wikipage.content').add(function ($content) {
  var $wrap = $content.find('#mw-createaccount-form .mw-htmlform-ooui');
  if (!$wrap.length) return;

  [
    '#mw-input-username',
    '#mw-input-password',
    '#mw-input-retype',
    '#mw-input-email',
    '#mw-input-realname',
    '#mw-input-captchaInfo',
    '#mw-input-captchaWord',
    '#mw-input-createaccount'
  ].forEach(function (sel) {
    var $el = $wrap.find(sel);
    if ($el.length) $el.appendTo($wrap); // move to end in desired sequence
  });
});