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';});";
}
}