Commit 2062bbff authored by Nelson DINIS GONÇALVES's avatar Nelson DINIS GONÇALVES
Browse files

Bump ep_disable_change_author_name to 0.0.19

parent 028a557e
This diff is collapsed.
{
"name": "ep_disable_change_author_name",
"description": "A plugin to stop users from being able to change their names",
"version": "0.0.13",
"version": "0.0.19",
"author": {
"name": "johnyma22",
"email": "john@mclear.co.uk",
......@@ -10,7 +10,7 @@
"contributors": [],
"dependencies": {},
"engines": {
"node": ">= 0.4.1"
"node": ">=10.17.1"
},
"_id": "ep_disable_change_author_name@0.0.2",
"dist": {
......@@ -31,5 +31,36 @@
}
],
"directories": {},
"_shasum": "7a668717f83a7027ecd5316aa44833c4cc105ee8"
"_shasum": "7a668717f83a7027ecd5316aa44833c4cc105ee8",
"repository": {
"repository": {
"type": "git",
"url": "git://github.com/johnmclear/ep_disable_change_author_name.git"
}
},
"funding": {
"type": "individual",
"url": "http://etherpad.org/"
},
"devDependencies": {
"eslint": "^7.18.0",
"eslint-config-etherpad": "^1.0.24",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0"
},
"eslintConfig": {
"root": true,
"extends": "etherpad/plugin"
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix ."
},
"peerDependencies": {
"ep_etherpad-lite": ">=1.8.6"
}
}
var $ = require('ep_etherpad-lite/static/js/rjquery').$; // use jQuery
'use strict';
exports.postAceInit = function (hook_name, args, cb) {
$('#users input[type=text]').prop('disabled', true); // disable the text boxes in the users section.
$('#users input[type=text]').attr('Title', 'Name Change Disabled'); // disable the text boxes in the users section.
$('body').append("<style> \
#myusernameedit{background:lightgrey !important;} \
#myusernameedit:hover{background:lightgrey !important;color:#333 !important} \
</style>");
}
exports.postAceInit = (hookName, args, cb) => {
// disable the text boxes in the users section.
$('#users input[type=text]').prop('disabled', true);
$('#users input[type=text]').attr('Title', 'Name Change Disabled');
// disable the text boxes in the users section.
$('body').append(`<style>
#myusernameedit{background:lightgrey !important;}
#myusernameedit:hover{background:lightgrey !important;color:#333 !important}
</style>`);
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment