diff options
author | Struan Donald <struan@exo.org.uk> | 2014-01-09 16:34:23 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2014-01-09 16:34:23 +0000 |
commit | 255d89d4eb3c241909621f891b750bcd6b5160fb (patch) | |
tree | 4163f241a1d88fc4fa5a7e629141ccd7d1ef48ab | |
parent | 1522030b151df1e362a9a992cacca11a3a32f837 (diff) |
If help is visible then the back button hides it
Fixes #158
-rw-r--r-- | src/js/views/fms.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/views/fms.js b/src/js/views/fms.js index a6019c2..6b92e10 100644 --- a/src/js/views/fms.js +++ b/src/js/views/fms.js @@ -14,7 +14,9 @@ }, back: function(e) { - if ( this._back ) { + if ( $('#help').is(':visible') ) { + FMS.helpHide(); + } else if ( this._back ) { this._back(e); } else if ( this.prev ) { this.onClickButtonPrev(e); |