Initial commit.
This commit is contained in:
13
src/IDF/templates/js-hotkeys.html
Normal file
13
src/IDF/templates/js-hotkeys.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<script type="text/javascript" src="{media '/idf/js/jquery.hotkeys.js'}"></script>
|
||||
{if $project}
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
// <!--
|
||||
var hk_submit_issue = '{url 'IDF_Views_Issue::create', array($project.shortname)}';
|
||||
var hk_recent_issues = '{url 'IDF_Views_Issue::index', array($project.shortname)}';
|
||||
{literal}
|
||||
jQuery.hotkeys.add('Shift+a',function (){window.location.href=hk_submit_issue;});
|
||||
jQuery.hotkeys.add('Shift+r',function (){window.location.href=hk_recent_issues;});
|
||||
{/literal} //-->
|
||||
</script>
|
||||
|
||||
{/if}
|
Reference in New Issue
Block a user