User:DodoMan/blockanddiscuss.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
m FuzzyBot moved page User:DodoMan~usurped/blockanddiscuss.js to User:DodoMan/blockanddiscuss.js: Part of translatable page "User:DodoMan~usurped" |
||
| (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">{{ |
.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 = '{{ |
template = '{{Blocked user|' + duration.replace(' ', '|') + '}}'; |
||
} |
} |
||
$('#' + textId).val( |
$('#' + textId).val( |
||