User:DodoMan/blockanddiscuss.js: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 27: Line 27:
.end()
.end()
.find('.oo-ui-fieldLayout-field')
.find('.oo-ui-fieldLayout-field')
.replaceWith($('<textarea id="' + textId + '" rows="10">{{Averto-3||}}~~' + '~~</textarea>'))
.replaceWith($('<textarea id="' + textId + '" rows="10">{{Blocked user}}~~' + '~~</textarea>'))
.end()
.end()
.appendTo($watchBlock.parent())
.appendTo($watchBlock.parent())
Line 62: Line 62:
var template = '{{Vandale banni}}';
var template = '{{Vandale banni}}';
if (duration != 'indéfiniment') {
if (duration != 'indéfiniment') {
template = '{{Averto-3|' + duration.replace(' ', '|') + '}}';
template = '{{Blocked user|' + duration.replace(' ', '|') + '}}';
}
}
$('#' + textId).val(
$('#' + textId).val(