Lines Matching refs:elm
24 setupTab : function(elm) { argument
25 Event.observe(elm,'click',this.activate.bindAsEventListener(this),false)
28 var elm = Event.findElement(ev, "a");
30 this.show(elm);
31 this.menu.without(elm).each(this.hide.bind(this));
33 hide : function(elm) { argument
34 $(elm).removeClassName('active-tab');
35 $(this.tabID(elm)).removeClassName('active-tab-body');
37 show : function(elm) { argument
38 $(elm).addClassName('active-tab');
39 $(this.tabID(elm)).addClassName('active-tab-body');
42 tabID : function(elm) { argument
43 return elm.href.match(/#(\w.+)/)[1];
48 var elm = this.menu.find(function(value) { return value.href.match(/#(\w.+)/)[1] == loc; });
49 return elm || this.menu.first();