atitit.vod search doc.doc 点播系统搜索功能设计文档
按键的enter事件1
Left rig事件1
Up down事件2
key_events.key_search = function(e, curr){
var value = $(‘.searchbox .textbox‘).text();
xhr.search_keyword(value, function(data){
render.movie_list_tiny(data);
//ati p89
$(".searchbox").hide();
search_finish();
});
};
按键的enter事件
key_events.key = function(e, curr){
var value = curr.html();
$(‘.searchbox .textbox‘).append(value);
};
key_events.key_space = function(e, curr){
$(‘.searchbox .textbox‘).append(‘ ‘);
};
key_events.key_backspace = function(e, curr){
var value = $(‘.searchbox .textbox‘).text();
$(‘.searchbox .textbox‘).html(value.substr(0, value.length-1));
};
Left rig事件
//ati addd recomm key evente all..code sh nad .n d only recomm
$(document).on(‘keydown‘, function(e){
var direction, next_hover;
//console.log(e.keyCode)
//paa add e.keyCode==8 backend
if (direction){
var curr_hover_obj=get_curr_hover();
var from_is_hv_tab = $(curr_hover_obj).hasClass(‘hv_tab‘);
next_hover = get_next_hover_by_dir(direction);
// get a next object by direction
function get_next_hover_by_dir(direction){
if (!direction) return;
var boundinglist = re_calc_bounding(), intersectedlist = [], n;
Up down事件
作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 )
汉字名:艾提拉(艾龙), EMAIL:[email protected]
转载请注明来源: http://www.cnblogs.com/attilax/
Atiend