From c5a8074b1e5b9a73a2b74e8fc840ce88e16ef347 Mon Sep 17 00:00:00 2001 From: edsilv Date: Fri, 6 Feb 2015 13:58:13 +0000 Subject: [PATCH] ignore .idea files, added show/hide controls methods --- .gitignore | 1 + src/viewer.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 3ebd08b8..aaaabf8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build/ sftp-config.json coverage/ temp/ +.idea \ No newline at end of file diff --git a/src/viewer.js b/src/viewer.js index 60e64e8a..de7a3d49 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -826,6 +826,13 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, return this; }, + hideControls: function() { + beginControlsAutoHide(this); + }, + + showControls: function() { + abortControlsAutoHide(this); + }, /** * @function