Fix closing the title input when the title is not modified

pull/1/head
yflory 7 years ago
parent 9271b0c1a8
commit 79094aa4bb

@ -34,7 +34,7 @@ define(['jquery'], function ($) {
exp.updateTitle = function (newTitle, cb) {
cb = cb || $.noop;
if (newTitle === exp.title) { return; }
if (newTitle === exp.title) { return void cb(); }
metadataMgr.updateTitle(newTitle);
titleUpdated = cb;
};

Loading…
Cancel
Save