mirror of
https://github.com/apankrat/nullboard.git
synced 2025-01-17 04:38:27 +01:00
save a bit extra info to support older versions
This commit is contained in:
parent
9ad3340bb3
commit
a5455dc169
@ -1399,7 +1399,8 @@ x- white-space: pre-wrap;
|
||||
meta.history = rebuild;
|
||||
}
|
||||
|
||||
ok_meta = this.setJson('board.' + board.id + '.meta', meta);
|
||||
ok_meta = this.setJson('board.' + board.id + '.meta', meta) &&
|
||||
this.setJson('board.' + board.id, meta.revision); // for older versions
|
||||
|
||||
board.history = meta.history; // restore
|
||||
|
||||
@ -1488,7 +1489,8 @@ x- white-space: pre-wrap;
|
||||
|
||||
meta.current = revision;
|
||||
|
||||
return this.setJson('board.' + board_id + '.meta', meta);
|
||||
return this.setJson('board.' + board_id + '.meta', meta) &&
|
||||
this.setJson('board.' + board_id, revision); // for older versions
|
||||
}
|
||||
|
||||
setBoardUiSpot(board_id, ui_spot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user