Content deleted Content added
Fix page watching with quick responses. |
Change indentation |
||
Line 125:
//Response dropdown
let responseDropdown = new OO.ui.DropdownWidget({
previewCOI(responseDropdown.menu.findSelectedItem().getData(), responseText.value, responsePreview);
for (let i = 0; i < responseCOI.length; i++) {
let tempWidget = new OO.ui.MenuOptionWidget({
Line 148:
previewCOI(responseDropdown.menu.findSelectedItem().getData(), responseText.value, responsePreview);
}
responseText.$element[0].style = "margin:5px auto;";
$(responseCustom).append(responseText.$element);
Line 177:
}
let watchlistLayout = new OO.ui.HorizontalLayout();
value: watchValue,
watchlistLayout.addItems([watchlistDropdown]);
//Watchlist checkbox & label
Line 213:
let nickname = " " + mw.user.options.values.nickname;
if (nickname == " ") {//Create default signature if no nickname
}
let dateObj = new Date();
responseText = responseText + nickname + " " + timeNow + ", " + dateNow + " (UTC)";
responseText = responseText.replaceAll(/{{subst:/gi, "{{");
responseText = responseText.replaceAll(/\s*~~~~\s*/g, "");
$.post(restTransform, 'wikitext=' + encodeURIComponent(responseText) + '&body_only=true',
}
);
} else {
}
}
Line 331:
}
let apiParams = {
}
}
|