1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 09:30:28 +00:00

Fix problem with edit widget not refreshing

One symptom of this problem was that changing the type field of a
tiddler didn’t immediately switch to the bitmap editor
This commit is contained in:
Jermolene 2014-08-15 10:06:52 +01:00
parent 0aeb9d36a0
commit 18592fe8f8

View File

@ -83,7 +83,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
*/
EditWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index) {
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.editTitle]) {
this.refreshSelf();
return true;
} else {