MediaWiki:Gadget-morebits.js: Difference between revisions

Content deleted Content added
Repo at e7d4c6c: fix some no-jquery/no-extend autofixes (#2088); create capitalized aliases for classes (#2086); fix linter error no-sequences (#2083); fix linter error jsdoc/no-undefined-types (#2082); fix linter error no-jquery/variable-pattern (#2081)
Repo at 5152750: revert $.extend autofixes (#2107); autofix some eslint unicorn/prefer-string-slice (#2089)
Line 602:
});
$.each(tmpgroup, (idx, el) => {
const newEl = Object$.assignextend({}, el);
if (!newEl.type) {
newEl.type = data.type;
Line 759:
 
data.inputs.forEach((subdata) => {
const cell = new Morebits.quickForm.element(Object$.assignextend(subdata || {}, { type: '_dyninput_cell' }));
node.appendChild(cell.render());
});
Line 1,422:
toUpperCaseFirstChar: function(str) {
str = str.toString();
return str.substrslice(0, 1).toUpperCase() + str.substrslice(1);
},
/**
Line 1,430:
toLowerCaseFirstChar: function(str) {
str = str.toString();
return str.substrslice(0, 1).toLowerCase() + str.substrslice(1);
},
 
Line 2,364:
// token should always be the last item in the query string (bug TW-B-0013)
 
const ajaxparams = Object$.assignextend({}, {
context: this,
type: this.query.action === 'query' ? 'GET' : 'POST',
Line 4,831:
// Nothing found yet, this must be the template name
if (count === -1) {
result.name = current.substringslice(2).trim();
++count;
} else {