don't make empty options

This commit is contained in:
ansuz 2016-08-19 12:14:20 +02:00
parent a3f6fe8843
commit d64e06c12e

View File

@ -379,7 +379,7 @@ define([
var msg = "Propose an 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).focus();