Upgrade jQuery 1.7.1 and the latest version of jquery.hotkeys

This commit is contained in:
Simon Holywell
2012-03-06 22:36:00 +00:00
parent 9bd5912884
commit f4a6cd1cdb
6 changed files with 105 additions and 127 deletions

View File

@@ -31,6 +31,6 @@ class IDF_Template_HotKey extends Pluf_Template_Tag
function start($key, $view, $params=array(), $get_params=array())
{
$url = addslashes(Pluf_HTTP_URL_urlForView($view, $params, $get_params));
echo "jQuery.hotkeys.add('$key',{disableInInput: true},function (){window.location.href='$url';});";
echo "$(document).bind('keydown','$key',function (){window.location.href='$url';});";
}
}

View File

@@ -31,7 +31,7 @@
<![endif]-->
{block extraheader}{/block}
<title>{block pagetitle}{$page_title|strip_tags}{/block}{if $project} - {$project.shortdesc}{/if}</title>
<script type="text/javascript" src="{media '/idf/js/jquery-1.2.6.min.js'}"></script>
<script type="text/javascript" src="{media '/idf/js/jquery-1.7.1.min.js'}"></script>
{appversion}
</head>
<body>

View File

@@ -31,7 +31,7 @@
<![endif]-->
{block extraheader}{/block}
<title>{block pagetitle}{$page_title|strip_tags}{/block}</title>
<script type="text/javascript" src="{media '/idf/js/jquery-1.2.6.min.js'}"></script>
<script type="text/javascript" src="{media '/idf/js/jquery-1.7.1.min.js'}"></script>
{appversion}
</head>
<body>

View File

@@ -31,7 +31,7 @@
<![endif]-->
{block extraheader}{/block}
<title>{block pagetitle}{$page_title|strip_tags}{/block}{if $project} - {$project.shortdesc}{/if}</title>
<script type="text/javascript" src="{media '/idf/js/jquery-1.2.6.min.js'}"></script>
<script type="text/javascript" src="{media '/idf/js/jquery-1.7.1.min.js'}"></script>
{appversion}
</head>
<body>