don't make empty options

pull/1/head
ansuz 2016-08-19 12:14:20 +02:00
parent a3f6fe8843
commit d64e06c12e
1 changed files with 1 additions and 1 deletions

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();