Sha256: 948835c1d2ad3ee56bc56a52d60eb419f149bfa24b874d3d3943c3451d52f192
Contents?: true
Size: 1.23 KB
Versions: 16
Compression:
Stored size: 1.23 KB
Contents
<script type="text/javascript"> function handlePageEvent(event) { if (event.altKey && event.shiftKey && event.charCode == 110) { window.location = '<%=url_for(:controller => 'periods', :action => :new)%>'; } else if (event.altKey && event.ctrlKey && event.charCode == 110) { window.location = '<%=url_for(:controller => 'backlogs', :action => :new ) %>'; } else if (event.altKey && event.charCode == 110) { window.location = '<%=url_for(:controller => 'tasks', :action => :new, :task => {:backlog_id => (@backlog ? @backlog.id : nil), :period_id => (@period ? @period.id : nil)} ) %>'; } else if (event.altKey && event.ctrlKey && event.charCode == 103) { window.location = '<%=url_for(:controller => 'groups', :action => :new ) %>'; } else if (event.shiftKey && event.altKey && event.charCode == 100) { window.location = '<%=url_for(:controller => 'works', :action => :daily_work_sheet ) %>'; } else if (event.shiftKey && event.altKey && event.charCode == 119) { window.location = '<%=url_for(:controller => 'works', :action => :weekly_work_sheet ) %>'; } else { //alert("shift: " + event.shiftKey + ", alt: " + event.altKey + ", ctrl: " + event.ctrlKey + ", " + event.charCode + ", " + event.keyCode); } } </script>
Version data entries
16 entries across 16 versions & 1 rubygems