ok you can edit nodes with whitespace now

This commit is contained in:
Devin Howard 2013-02-07 18:55:10 -05:00
parent e1f454c4f4
commit 87d74fd3c2

View file

@ -50,9 +50,10 @@ function add_name_form(edge) {
$('#edit_synapse_name').attr('data-url', '/synapses/' + edge.getData("id"));
$('#edit_synapse_name').html(edge.getData("desc"));
$('#edit_synapse_name').click(function() {
});
//if edge data is blank or just whitespace, populate it with data_nil
if ($('#edit_synapse_name').html().trim() == '') {
$('#edit_synapse_name').html(data_nil);
}
$('#edit_synapse_name').bind("ajax:success", function() {
var desc = $(this).html();