Content deleted Content added
MusikAnimal (talk | contribs) link to doc page |
MusikAnimal (talk | contribs) increase height, better summaries |
||
Line 64:
};
Dialog.prototype.getBodyHeight = function() {
return
};
Dialog.prototype.initialize = function() {
Line 213:
function assignPermission(summary, revId) {
permaLink = '[[Special:PermaLink/' + revId + '#User:' + userName + ']]';
return api.postWithToken( 'userrights', {
Line 220 ⟶ 219:
user: userName.replace(/ /g, '_'),
add: permissionNames[permission],
reason: '+' + permissionNames[permission] + '; ' + summary + '; ' + permaLink + tagLine
});
}
function markAsDone(closingRemarks) {
var sectionNode = document.getElementById('User:' + userName.replace(/ /g, '_')),
sectionNumber = $(sectionNode).siblings('.mw-editsection').find("a:not('.mw-editsection-visualeditor')").prop('href').match(/section=(\d+)/)[1];
Line 233 ⟶ 231:
title: mw.config.get('wgPageName'),
section: sectionNumber,
summary: '/* User:' + userName + ' */ done' + tagLine,
appendtext: closingRemarks
});
Line 239 ⟶ 237:
function issueTemplate(watch) {
var talkPage = 'User talk:' + userName.replace(/ /g, '_');
return api.postWithToken( 'edit', {
|