Atitit.vod Search Doc.doc -on- demand system searching function design document
of the button Enter event 1
Left rig event 1
Up-down event 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 event for key
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 event
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 event
author:: Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui)
Kanji Name: Etila ( Ayron) , email:[email protected]
reprint Please indicate source: http://www.cnblogs.com/attilax/
Atiend
Atitit.vod Search Doc.doc-on-demand system searching function design document