Fix closing the title input when the title is not modified

This commit is contained in:
yflory 2017-09-11 16:36:24 +02:00
parent 9271b0c1a8
commit 79094aa4bb

View file

@ -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;
};