don't make empty options
This commit is contained in:
parent
a3f6fe8843
commit
d64e06c12e
@ -379,7 +379,7 @@ define([
|
|||||||
|
|
||||||
var msg = "Propose an option";
|
var msg = "Propose an option";
|
||||||
Cryptpad.prompt(msg, "", function (option) {
|
Cryptpad.prompt(msg, "", function (option) {
|
||||||
if (option === null) { return; }
|
if (option === null || !option) { return; }
|
||||||
makeOption(module.rt.proxy, id, option).val(option).focus();
|
makeOption(module.rt.proxy, id, option).val(option).focus();
|
||||||
});
|
});
|
||||||
//makeOption(module.rt.proxy, id).focus();
|
//makeOption(module.rt.proxy, id).focus();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user