diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-30 23:10:52 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-30 23:10:52 +0400 |
commit | 6e550af150958d0c88bf21f206c2309dc0b5c78d (patch) | |
tree | 7adc91913bde98879e27dde8633863cf7c6ea036 /app/assets/javascripts/shortcuts.js.coffee | |
parent | 0f84833c33174e4c8cd72690e93bba5444d9e25f (diff) |
Show shotcut dialog on ?
Diffstat (limited to 'app/assets/javascripts/shortcuts.js.coffee')
-rw-r--r-- | app/assets/javascripts/shortcuts.js.coffee | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/shortcuts.js.coffee b/app/assets/javascripts/shortcuts.js.coffee new file mode 100644 index 00000000000..e7e40a066ec --- /dev/null +++ b/app/assets/javascripts/shortcuts.js.coffee @@ -0,0 +1,11 @@ +class Shortcuts + constructor: -> + if $('#modal-shortcuts').length > 0 + $('#modal-shortcuts').modal('show') + else + $.ajax( + url: '/help/shortcuts', + dataType: "script" + ) + +@Shortcuts = Shortcuts |