މީޑިއާވިކީ:Common.js/edit.js

ވިކިޕީޑިއާ އިންވިކިޕީޑިއާ

ނޯޓް: މިސަފްހާ އަށް އުނި އިތުރު ގެންނެވުމަށްފަހު ގެންނެވި ބަދަލު ފެނިވަޑައިގަންނަވާނީ ތިޔަބޭފުޅާގެ ބްރައުޒަރގެ ކޭޗް ކްލިއަރ ކުރެއްވުމުންނެވެ.

  • ފަޔަރފޮކްސް/ސަފާރީ: ނަމަ ޕޭޖް ރިފްރެޝް ކުރެއްވާ އިރު Shift އަށް ފިއްތަވާ. ނުވަތަ Ctrl-F5 އަށް ފިއްތަވާ
//fix edit summary prompt for undo
//this code fixes the fact that the undo function combined with the "no edit summary prompter" causes problems if leaving the
//edit summary unchanged
//this was added by [[User:Deskana]], code by [[User:Tra]]
//see bug 8912
$(function () {
    if (document.location.search.indexOf("undo=") != -1
        && document.getElementsByName('wpAutoSummary')[0]) {
        document.getElementsByName('wpAutoSummary')[0].value='1';
    }
});

// Turn on spellchecking in the edit summary field, for Firefox. 
// Temporary until [[bugzilla:21604]] is deployed
$( function() {
  var wpSummary = document.getElementById( "wpSummary" );
  if ( wpSummary && typeof wpSummary.spellcheck != undefined )
    wpSummary.spellcheck = true;
} );