turn off some unwanted behaviour
This commit is contained in:
parent
4c5cb79c20
commit
ebff304602
@ -435,7 +435,7 @@ define([
|
|||||||
|
|
||||||
var msg = Messages.poll_addUser;
|
var msg = Messages.poll_addUser;
|
||||||
Cryptpad.prompt(msg, "", function (name) {
|
Cryptpad.prompt(msg, "", function (name) {
|
||||||
if (name === null) { return; }
|
if (!(name && name.trim())) { return; }
|
||||||
makeUser(module.rt.proxy, id, name).val(name);
|
makeUser(module.rt.proxy, id, name).val(name);
|
||||||
makeUserEditable(id, true).focus();
|
makeUserEditable(id, true).focus();
|
||||||
});
|
});
|
||||||
@ -782,14 +782,16 @@ define([
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (!readOnly && module.viewHash) {
|
if (!readOnly && module.viewHash) {
|
||||||
/* add a 'links' button */
|
/* add a 'links' button
|
||||||
var $links = Cryptpad.createButton('readonly', true, {viewHash: module.viewHash})
|
var $links = Cryptpad.createButton('readonly', true, {viewHash: module.viewHash})
|
||||||
.text(Messages.getViewButton)
|
.text(Messages.getViewButton)
|
||||||
.removeAttr('style')
|
.removeAttr('style')
|
||||||
.attr('class', 'action button readonly');
|
.attr('class', 'action button readonly');
|
||||||
$toolbar.append($links);
|
$toolbar.append($links);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* Import/Export buttons */
|
/* Import/Export buttons */
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user