* fix for sidebar not showing I believe this fixes #3223 * add explaining comment * ... and fix indentation.
This commit is contained in:
parent
aab408109f
commit
5626148202
|
@ -193,6 +193,7 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
|
|||
Called by refresh() to dynamically show or hide the content
|
||||
*/
|
||||
RevealWidget.prototype.updateState = function() {
|
||||
var self = this;
|
||||
// Read the current state
|
||||
this.readState();
|
||||
// Construct the child nodes if needed
|
||||
|
@ -213,8 +214,12 @@ RevealWidget.prototype.updateState = function() {
|
|||
$tw.anim.perform(this.openAnimation,domNode);
|
||||
} else {
|
||||
$tw.anim.perform(this.closeAnimation,domNode,{callback: function() {
|
||||
domNode.setAttribute("hidden","true");
|
||||
}});
|
||||
//make sure that the state hasn't changed during the close animation
|
||||
self.readState()
|
||||
if(!self.isOpen) {
|
||||
domNode.setAttribute("hidden","true");
|
||||
}
|
||||
}});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue