mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-28 16:10:05 +08:00
fix newtask loop
This commit is contained in:
@@ -230,7 +230,7 @@ define(
|
||||
/** Finish editing an item **/
|
||||
close: function () {
|
||||
var value = this.$('.edit:first').val().trim();
|
||||
if (this.model.get('content')!=value)
|
||||
if (this.model.get('content')!=value && value!=='')
|
||||
this.model.save({content: value});
|
||||
this.$el.removeClass('editing');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user