MediaWiki:Gadget-editSummary.js: различия между версиями
м O0o___o0O |
м O_o |
||
| Строка 47: | Строка 47: | ||
function insertSummary(text) { | function insertSummary(text) { | ||
var sum = document.getElementById('wpSummary'); | if(wgSkin == 'monobook') { | ||
var sum = document.getElementById('wpTextbox1'); | |||
}else{ | |||
var sum = document.getElementById('wpSummary'); | |||
} | |||
if (sum.value.indexOf(text) != -1) return ; | if (sum.value.indexOf(text) != -1) return ; | ||
if (sum.value.match(/[^,; \/]$/)) sum.value += ','; | if (sum.value.match(/[^,; \/]$/)) sum.value += ','; | ||