rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.map.setCenter(olCenter, yZoom - 1);
this.map.setCenter(olCenter, 16 - yZoom);
catchPanZoom: function(e) { var olCenter = this.getYMapCenter(); var yZoom = this.ymap.getZoomLevel(); this.map.setCenter(olCenter, yZoom - 1); },
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom);
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom, this.dragging); }
catchPanZoom: function(e) { var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom); },
Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el;
if (cal.currentDateEl) { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; }
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
cal.date = new Date(el.caldate);
cal.date.setDateOnly(el.caldate);
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
newdate = true;
var other_month = !(cal.dateClicked = !el.otherMonth); if (!other_month && !cal.currentDateEl) cal._toggleMultipleDate(new Date(date)); else newdate = !el.disabled;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
if (!(cal.dateClicked = !el.otherMonth))
if (other_month)
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
date = (el.navtype == 0) ? new Date() : new Date(cal.date);
date = new Date(cal.date); if (el.navtype == 0) date.setDateOnly(new Date());
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
"and send it back to <mishoo@infoiasi.ro> to get it into the distribution ;-)\n\n" +
"and send it back to <mihai_bazon@yahoo.com> to get it into the distribution ;-)\n\n" +
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
var current = el.firstChild.data;
var current = el.innerHTML;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
el.firstChild.data = newval;
el.innerHTML = newval;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
}
} else if (el.navtype == 0) newdate = closing = true;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
cal.callHandler();
ev && cal.callHandler();
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
cal.callCloseHandler();
ev && cal.callCloseHandler();
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.current...
this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px"; this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px";
if ((originPx != null) && (newPx != null)) { this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px"; this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px"; }
centerLayerContainer: function (lonlat) { var originPx = this.getViewPortPxFromLonLat(this.layerContainerOrigin); var newPx = this.getViewPortPxFromLonLat(lonlat); this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px"; this.layerContainerDiv.style.top = (originPx.y - newPx.y...
} else { log.debug("ignoring change event: tagName=" + tagName);
change: function(event) { var tagName = event.target.tagName.toLowerCase(); var type = event.target.type; if ('select' == tagName) { var label = event.target.options[event.target.selectedIndex].innerHTML; var value = "label=" + label; self.listener.addCommand("select", getLocator(window, ...
var name=child.getAttribute('name'); if (name) { newname=name.replace(/__lodel_wildcard/gi,index); child.setAttribute('id',newname); child.setAttribute('name',newname);
var content=child.innerHTML; if (content) { newcontent=content.replace(/__lodel_wildcard/gi,index); child.innerHTML = newcontent;
function changeNameAttributes(obj,index){ for(i=0; i<obj.childNodes.length; i++) { var child=obj.childNodes[i]; if (child.getAttribute) { var name=child.getAttribute('name'); if (name) { newname=name.replace(/__lodel_wildcard/gi,index); child.setAttribute('id',newname); child.setAttribute('name',newname); } ...
this.tmplist = new Array(); this.tmplist[CHANMODE_OP] = new Array(); this.tmplist[CHANMODE_OP][false] = new Array(); this.tmplist[CHANMODE_OP][true] = new Array(); this.tmplist[CHANMODE_VOICE] = new Array(); this.tmplist[CHANMODE_VOICE][false] = new Array(); this.tmplist[CHANMODE_VOICE][true] = new Array(); this.tmplis...
this.tmplist = new Object; this.tmplist[CHANMODE_OP] = new Object; this.tmplist[CHANMODE_OP][false] = new Object; this.tmplist[CHANMODE_OP][true] = new Object; this.tmplist[CHANMODE_VOICE] = new Object; this.tmplist[CHANMODE_VOICE][false] = new Object; this.tmplist[CHANMODE_VOICE][true] = new Object; this.tmplist[CHANM...
function ChanMode(chan,user) { this.tmplist = new Array(); this.tmplist[CHANMODE_OP] = new Array(); this.tmplist[CHANMODE_OP][false] = new Array(); //deop this.tmplist[CHANMODE_OP][true] = new Array(); //op this.tmplist[CHANMODE_VOICE] = new Array(); this.tmplist[CHANMODE_VOICE][false] = new Array(); //devoice this.tmp...
this.tmplist[CHANMODE_OP] = new Array;
this.tmplist[CHANMODE_OP] = new Object;
function ChanMode(chan,user) { this.tmplist = new Object; this.tmplist[CHANMODE_OP] = new Array; this.tmplist[CHANMODE_OP][false] = new Array; //deop this.tmplist[CHANMODE_OP][true] = new Array; //op this.tmplist[CHANMODE_VOICE] = new Array; this.tmplist[CHANMODE_VOICE][false] = new Array; //devoice this.tmplist[CHANMO...
this.tmplist[CHANMODE_VOICE] = new Array;
this.tmplist[CHANMODE_VOICE] = new Object;
function ChanMode(chan,user) { this.tmplist = new Object; this.tmplist[CHANMODE_OP] = new Array; this.tmplist[CHANMODE_OP][false] = new Array; //deop this.tmplist[CHANMODE_OP][true] = new Array; //op this.tmplist[CHANMODE_VOICE] = new Array; this.tmplist[CHANMODE_VOICE][false] = new Array; //devoice this.tmplist[CHANMO...
this.tmplist[CHANMODE_BAN] = new Array;
this.tmplist[CHANMODE_BAN] = new Object;
function ChanMode(chan,user) { this.tmplist = new Object; this.tmplist[CHANMODE_OP] = new Array; this.tmplist[CHANMODE_OP][false] = new Array; //deop this.tmplist[CHANMODE_OP][true] = new Array; //op this.tmplist[CHANMODE_VOICE] = new Array; this.tmplist[CHANMODE_VOICE][false] = new Array; //devoice this.tmplist[CHANMO...
this.match_list_mask=Channel_match_list_mask;
function Channel(nam) { this.nam=nam; this.mode=CHANMODE_NONE; this.topic=""; this.topictime=0; this.topicchangedby=""; this.arg = new Array; this.arg[CHANMODE_LIMIT] = 0; this.arg[CHANMODE_KEY] = ""; this.users=new Array; this.modelist=new Array; this.modelist[CHANLIST_OP]=new Array; this.modelist[CHANLIST_VOICE]=new...
this.arg = new Array;
this.arg = new Object;
function Channel(nam) { this.nam=nam; this.mode=CHANMODE_NONE; this.topic=""; this.topictime=0; this.topicchangedby=""; this.arg = new Array; this.arg[CHANMODE_LIMIT] = 0; this.arg[CHANMODE_KEY] = ""; this.users=new Array; this.modelist=new Array; this.modelist[CHANMODE_OP]=new Array; this.modelist[CHANMODE_VOICE]=new ...
this.users=new Array; this.modelist=new Array; this.modelist[CHANMODE_OP]=new Array; this.modelist[CHANMODE_VOICE]=new Array; this.modelist[CHANMODE_BAN]=new Array; this.bantime=new Array; this.bancreator=new Array;
this.users=new Object; this.modelist=new Object; this.modelist[CHANMODE_OP]=new Object; this.modelist[CHANMODE_VOICE]=new Object; this.modelist[CHANMODE_BAN]=new Array; this.bantime=new Object; this.bancreator=new Object;
function Channel(nam) { this.nam=nam; this.mode=CHANMODE_NONE; this.topic=""; this.topictime=0; this.topicchangedby=""; this.arg = new Array; this.arg[CHANMODE_LIMIT] = 0; this.arg[CHANMODE_KEY] = ""; this.users=new Array; this.modelist=new Array; this.modelist[CHANMODE_OP]=new Array; this.modelist[CHANMODE_VOICE]=new ...
this.limit=0; this.key="";
this.arg = new Array; this.arg[CHANMODE_LIMIT] = 0; this.arg[CHANMODE_KEY] = "";
function Channel(nam) { this.nam=nam; this.mode=CHANMODE_NONE; this.topic=""; this.topictime=0; this.topicchangedby=""; this.limit=0; this.key=""; this.users=new Array; this.modelist=new Array; this.modelist[CHANLIST_OP]=new Array; this.modelist[CHANLIST_VOICE]=new Array; this.modelist[CHANLIST_BAN]=new Array; this.ba...
this.modelist[CHANLIST_OP]=new Array; this.modelist[CHANLIST_VOICE]=new Array; this.modelist[CHANLIST_BAN]=new Array;
this.modelist[CHANMODE_OP]=new Array; this.modelist[CHANMODE_VOICE]=new Array; this.modelist[CHANMODE_BAN]=new Array;
function Channel(nam) { this.nam=nam; this.mode=CHANMODE_NONE; this.topic=""; this.topictime=0; this.topicchangedby=""; this.arg = new Array; this.arg[CHANMODE_LIMIT] = 0; this.arg[CHANMODE_KEY] = ""; this.users=new Array; this.modelist=new Array; this.modelist[CHANLIST_OP]=new Array; this.modelist[CHANLIST_VOICE]=new...
pushed = this.modelist[list_bit].push(tmp_nickid); return pushed-1;
var pushed = this.modelist[list_bit].push(tmp_nickid); return pushed;
function Channel_add_modelist(tmp_nickid,list_bit) { if (this.ismode(tmp_nickid,list_bit)) return 0; pushed = this.modelist[list_bit].push(tmp_nickid); return pushed-1;}
tmp_mode = "+"; tmp_extras = "";
var tmp_mode = "+"; var tmp_extras = "";
function Channel_chanmode(show_args) { tmp_mode = "+"; tmp_extras = ""; if (this.mode&CHANMODE_INVITE) tmp_mode += "i"; if (this.mode&CHANMODE_KEY) { tmp_mode += "k"; if(show_args) tmp_extras += " " + this.arg[CHANMODE_KEY]; } if (this.mode&CHANMODE_LIMIT) { tmp_mode += "l"; if(show_args) tmp_extras += " " + t...
tmp_extras += " " + this.key;
tmp_extras += " " + this.arg[CHANMODE_KEY];
function Channel_chanmode(show_args) { tmp_mode = "+"; tmp_extras = ""; if (this.mode&CHANMODE_INVITE) tmp_mode += "i"; if (this.mode&CHANMODE_KEY) { tmp_mode += "k"; if(show_args) tmp_extras += " " + this.key; } if (this.mode&CHANMODE_LIMIT) { tmp_mode += "l"; if(show_args) tmp_extras += " " + this.limit; } i...
tmp_extras += " " + this.limit;
tmp_extras += " " + this.arg[CHANMODE_LIMIT];
function Channel_chanmode(show_args) { tmp_mode = "+"; tmp_extras = ""; if (this.mode&CHANMODE_INVITE) tmp_mode += "i"; if (this.mode&CHANMODE_KEY) { tmp_mode += "k"; if(show_args) tmp_extras += " " + this.key; } if (this.mode&CHANMODE_LIMIT) { tmp_mode += "l"; if(show_args) tmp_extras += " " + this.limit; } i...
tmp_counter=0;
var tmp_counter=0;
function Channel_count_modelist(list_bit) { tmp_counter=0; for (tmp_count in this.modelist[list_bit]) { if (this.modelist[list_bit][tmp_count]) tmp_counter++; } return tmp_counter;}
tmp_counter=0;
var tmp_counter=0;
function Channel_count_users() { tmp_counter=0; for (tmp_count in this.users) { if (this.users[tmp_count]) tmp_counter++; } return tmp_counter;}
delete_index = this.locate_on_list(tmp_nickid,list_bit);
var delete_index = this.locate_on_list(tmp_nickid,list_bit);
function Channel_del_modelist(tmp_nickid,list_bit) { if (!this.ismode(tmp_nickid,list_bit)) return 0; delete_index = this.locate_on_list(tmp_nickid,list_bit); delete this.modelist[list_bit][delete_index]; return delete_index;}
for (this_ban in this.modelist[CHANLIST_BAN]) { if (match_irc_mask(banned_nuh,this.modelist[CHANLIST_BAN][this_ban]))
for (this_ban in this.modelist[CHANMODE_BAN]) { if (match_irc_mask(banned_nuh,this.modelist[CHANMODE_BAN][this_ban]))
function Channel_isbanned(banned_nuh) { for (this_ban in this.modelist[CHANLIST_BAN]) { if (match_irc_mask(banned_nuh,this.modelist[CHANLIST_BAN][this_ban])) return 1; } return 0;}
if (this.count_users() < parseInt(mask.slice(1)))
if (true_array_len(this.users) < parseInt(mask.slice(1)))
function Channel_match_list_mask(mask) { if (mask[0] == ">") { // Chan has more than X people? if (this.count_users() < parseInt(mask.slice(1))) return 0; } else if (mask[0] == "<") { // Chan has less than X people? if (this.count_users() >= parseInt(mask.slice(1))) return 0; } else if (mask[0].toUpperCase() == "...
if (this.count_users() >= parseInt(mask.slice(1)))
if (true_array_len(this.users) >= parseInt(mask.slice(1)))
function Channel_match_list_mask(mask) { if (mask[0] == ">") { // Chan has more than X people? if (this.count_users() < parseInt(mask.slice(1))) return 0; } else if (mask[0] == "<") { // Chan has less than X people? if (this.count_users() >= parseInt(mask.slice(1))) return 0; } else if (mask[0].toUpperCase() == "...
function Channel_matchnick(inline) {
function Channel_matchnick(nickpart) {
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
var partial=inline.toUpperCase();
var partial=nickpart.toUpperCase();
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf(" ")+1); }
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
tmp_str=tmp_str+" "+nick[i];
tmp_str=tmp_str+" "+this.nick[i];
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
if(count>1 && matched.length==partial.length) { screen.print_line(tmp_str+"\x01N\x01W"); return inline; }
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
return inline;
return null;
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
if(partial==inline.toUpperCase()) { if(count==1) { return nick_var+": "; } return nick_var;
if(count>1 && matched.length==partial.length) { screen.print_line(tmp_str+"\x01N\x01W"); return null;
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
if(count==1) { return start+nick_var+" "; } return start+nick_var;
return nick_var;
function Channel_matchnick(inline) { var i=0; var j=0; var count=0; var tmp_str="\x01N\x01BMatching Nicks:"; var nick_var=""; var partial=inline.toUpperCase(); var matched=""; var start=""; if(partial.lastIndexOf(" ")!=-1) { partial=partial.substr(partial.lastIndexOf(" ")+1); start=inline.slice(0,inline.lastIndexOf...
chan_occupants="";
var chan_occupants="";
function Channel_occupants() { chan_occupants=""; for(thisChannel_user in this.users) { Channel_user=Clients[this.users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER)) { if (chan_occupants) chan_occupants += " "; if (this.ismode(Channel_user.id,CHANLIST_OP)) chan_oc...
if (this.ismode(Channel_user.id,CHANLIST_OP))
if (this.ismode(Channel_user.id,CHANMODE_OP))
function Channel_occupants() { var chan_occupants=""; for(thisChannel_user in this.users) { var Channel_user=Clients[this.users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER)) { if (chan_occupants) chan_occupants += " "; if (this.ismode(Channel_user.id,CHANLIST_OP)) ...
if (this.ismode(Channel_user.id,CHANLIST_VOICE))
if (this.ismode(Channel_user.id,CHANMODE_VOICE))
function Channel_occupants() { var chan_occupants=""; for(thisChannel_user in this.users) { var Channel_user=Clients[this.users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER)) { if (chan_occupants) chan_occupants += " "; if (this.ismode(Channel_user.id,CHANLIST_OP)) ...
Channel_user=Clients[this.users[thisChannel_user]];
var Channel_user=Clients[this.users[thisChannel_user]];
function Channel_occupants() { var chan_occupants=""; for(thisChannel_user in this.users) { Channel_user=Clients[this.users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER)) { if (chan_occupants) chan_occupants += " "; if (this.ismode(Channel_user.id,CHANLIST_OP)) cha...
currentBouquet = document.channelselector.bouquet.selectedIndex;
function channelChange(){ currentChannel = document.channelselector.channel.selectedIndex; if (currentChannel >= 0) { var channel = document.channelselector.channel.options[currentChannel].value; switchChannel(channel, currentBouquet, currentChannel); }}
this.join(default_channel);
function Channels() { this.length=0; this.index=0; this.channel=new Array(); this.join=Channels_join; this.part=Channels_part; this.joined=Channels_joined; this.current getter=function() {return this.channel[this.index];}; this.join(default_channel); this.nick_change=Channels_nick_change; this.nick_quit=Channels_nick_...
this.channel[this.channel.length]=new Channel(cname);
function Channels_joined(cname) { this.channel[this.channel.length]=new Channel(cname); this.index=this.channel.length; this.length++;}
this.channel[this.channels.length]=new Channel(cname);
function Channels_joined(cname) { this.channel[this.channel.length]=new Channel(cname); this.index=this.channel.length; this.length++;}
this.channel[this.channels.length]=new Channel(cname);
this.channel[this.channel.length]=new Channel(cname);
function Channels_joined(cname) { this.index=this.channel.length; this.channel[this.channels.length]=new Channel(cname); this.length++;}
for(i=0;i<this.length;i++) {
for(i=0;i<this.channel.length;i++) {
function Channels_nick_change(from,to) { var i=0; var j=0; for(i=0;i<this.length;i++) { for(j=0;j<this.channel[i].nick.length;j++) { if(this.channel[i].nick[j].toUpperCase()==from.toUpperCase()) { this.channel[i].nick[j]=to; } } }}
if(this.index>=(length-1)) {
if(this.index>=(this.length-1)) {
function Channels_part(cname,message) { var i; if(this.current==undefined) { return; } cname=this.current.name; for(i=0;i<this.length;i++) { if(cname.toUpperCase()==this.channel[i].name) { this.channel[i].part(message); this.channel.splice(i,1); this.length -= 1; } } if(this.index>=(length-1)) { this.ind...
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Chatmenu(){ var width=27; this.items=new Array(); this.xpos=24; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add("|Multinode Chat","M",width); this.add("|Private Node to Node Chat","P",width); thi...
var objRegExp = /^\d\d*$/;
var objRegExp = /^\d+$/;
function check_and_replace_int( id, val ){ var objRegExp = /^\d\d*$/; if( value( id ) != '' && ( !objRegExp.test( value( id ) ) || parseInt( value( id ) ) < 1 ) ) return document.getElementById( id ).value = val; return document.getElementById( id ).value;}
} else if (p == false) { p = search_paths(header_name, PHP_EXTRA_INCLUDES, null);
function CHECK_HEADER_ADD_INCLUDE(header_name, flag_name, path_to_check, use_env){ if (use_env == null) { use_env = true; } if (path_to_check == null) { path_to_check = php_usual_include_suspects; } else { path_to_check += ";" + php_usual_include_suspects; } var p = search_paths(header_name, path_to_check, use_env ...
} else { if (false != search_paths(header_name, PHP_EXTRA_LIBS, null)) { ADD_FLAG("LIBS_" + target.toUpperCase(), libname); have = 1; }
function CHECK_LIB(libname, target, path_to_check){ if (path_to_check == null) { path_to_check = php_usual_lib_suspects; } else { path_to_check += ";" + php_usual_lib_suspects; } var p = search_paths(libname, path_to_check, "LIB"); var have = 0; if (typeof(p) == "string") { ADD_FLAG("LDFLAGS_" + target.toUpperCase(...
if (!p) { p = search_paths(subdir + "\\" + libname, path_to_check, "LIB"); if (p) { p += "\\" + subdir; } }
function CHECK_LIB(libnames, target, path_to_check){ if (target == null) { target = ""; } else { target = "_" + target.toUpperCase(); } if (path_to_check == null) { path_to_check = php_usual_lib_suspects; } else { path_to_check += ";" + php_usual_lib_suspects; } var have = 0; var p; var i; var libname; libnames = ...
if ( box.checked == false ) { box.checked = true;
if ( box ) { if ( box.checked == false ) { box.checked = true; } } else { alert("You cannot change the order of items, as an item in the list is `Checked Out`"); return;
function checkAll_button( n ) { for ( var j = 0; j <= n; j++ ) { box = eval( "document.adminForm.cb" + j ); if ( box.checked == false ) { box.checked = true; } }}
submitform('saveorder');
function checkAll_button( n ) { for ( var j = 0; j <= n; j++ ) { box = eval( "document.adminForm.cb" + j ); if ( box.checked == false ) { box.checked = true; } }}
document.removeEvent('mousemove', this.checkAndDrag.bindWithEvent(this)); document.addEvent('mousemove', this.drag.bindWithEvent(this));
document.removeEvent('mousemove', this.bound.checkAndDrag); document.addEvent('mousemove', this.bound.drag);
checkAndDrag: function(event){ var distance = Math.round(Math.sqrt(Math.pow(event.page.x - this.mouse.start.x, 2)+Math.pow(event.page.y - this.mouse.start.y, 2))); if (distance > this.options.snap){ document.removeEvent('mousemove', this.checkAndDrag.bindWithEvent(this)); document.addEvent('mousemove', this.drag...
if (/^chrome:\/\ self.isChrome = true; } else { self.isChrome = false; }
var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location ...
var text = inVal.replace(/^\s*(.*?)\s*$/, "$1");
var text = f_core.Trim(inVal);
Checker_trim: function(validator, inVal) { // Handle empty string if (inVal == "") { return inVal; } var text = inVal.replace(/^\s*(.*?)\s*$/, "$1"); validator.a_setObject(text); return text; },
if (loaded != this.url) {
if (!OpenLayers.Util.isEquivalentUrl(loaded, this.url)) {
checkImgURL: function () { // Sometimes our image will load after it has already been removed // from the map, in which case this check is not needed. if (this.layer) { var loaded = this.layer.alpha ? this.imgDiv.firstChild.src : this.imgDiv.src; if (loaded != this.url) ...
clearHideTimers();
clearHideTimers(popup_index);
function checkPopupCoord(x, y, popup_index){ var parent = (popup_index > 0 ? popups[popup_index - 1].name : "none"); if(popup_index < 0) return; p = popups[popup_index]; //setStatus("x:"+x+", y:"+y+", i:"+p.inside+", p:"+popup_index+ // ", p.x:"+p.x+", p.y:"+p.y+", p.w:"+p.w+", p.h:"+p.h+ // ", p.t:"...
p.hide_timer = setTimeout("clearToPopup('"+parent+"')", 500);
p.hide_timer = setTimeout("clearToPopup('"+parent+"')", p.properties.hide_delay);
function checkPopupCoord(x, y, popup_index){ var parent = (popup_index > 0 ? popups[popup_index - 1].name : "none"); if(popup_index < 0) return; p = popups[popup_index]; //setStatus("x:"+x+", y:"+y+", i:"+p.inside+", p:"+popup_index+ // ", p.x:"+p.x+", p.y:"+p.y+", p.w:"+p.w+", p.h:"+p.h+ // ", p.t:"...
if (newlen != fl.doclen) {
if (!newlen || (newlen != fl.doclen)) {
function checkSafariLoad(){ var allLoaded = true; for (var i = 0; i < FileLoader.cnt; i++) { var fl = FileLoader.elements[i]; if (fl.loaded == false) { var ifr = document.getElementById(fl.frameName); if (ifr.contentDocument.body != null) { // Since we don't know for sure when the new document has fi...
editor.view.refresh();
Editor.checkTimestamp = function() { editor.log.debug('checkTimestamp'); if (editor.testCase.checkTimestamp()) { if (window.confirm(Editor.getString('confirmReload'))) { var testCase = editor.currentFormat.loadFile(editor.testCase.file); if (testCase) { editor.setTestCase(testCase); editor.view.refresh(); ...
for (var i = 0; i < children.length; i++) { if (Element.Class.has(children[i], className)) {
for (var i = 0; i < children.length; i++) if (Element.Class.has(children[i], className))
childrenWith: function(element, className) { var children = $(element).getElementsByTagName('*'); var elements = new Array(); for (var i = 0; i < children.length; i++) { if (Element.Class.has(children[i], className)) { elements.push(children[i]); break; } } r...
break; } }
childrenWith: function(element, className) { var children = $(element).getElementsByTagName('*'); var elements = new Array(); for (var i = 0; i < children.length; i++) { if (Element.Class.has(children[i], className)) { elements.push(children[i]); break; } } r...
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
var classNameRegExp = new RegExp("(^|\\s)" + className + "(\\s|$)"); var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); }); if(!results) results = []; return results;
Element.childrenWithClassName = function(element, className, findFirst) { return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();}
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? c.className.match(classNameRegExp) : false; })].flatten();
var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); }); if(!results) results = []; return results;
Element.childrenWithClassName = function(element, className, findFirst) { var classNameRegExp = new RegExp("(^|\\s)" + className + "(\\s|$)"); return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? c.className.match(classNameRegExp) : false; })].flat...
return c.className ? Element.hasClassName(c, className) : false;
return c.className ? c.className.match(classNameRegExp) : false;
Element.childrenWithClassName = function(element, className, findFirst) { return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();}
if(system.matchuser(str,true) || system.trashcan(str))
if(system.matchuser(str,true)!=user.number || system.trashcan(str))
function chk_qwk_id(str){ if(str.length<2 || str.length>8) return(false); if(Number(str)>0 || Number(str)<0) return(false); /* I know this could be much smaller using regexp */ if(str.indexOf(' ')>=0) return(false); if(str.indexOf('.')>=0) return(false); if(str.indexOf(':')>=0) return(false); if(str.indexOf(';')>=...
document.getElementById("userExtensionsURL").value = "file:" + encodeURI(fp.file.path);
document.getElementById("userExtensionsURL").value = FileUtils.fileURI(fp.file);
function chooseUserExtensionsURL() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"] .createInstance(nsIFilePicker); fp.init(window, "Select user-extensions.js file", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterAll); var res = fp.sh...
s.send("QUIT\r\n"); s.close();
gnats.close();
function clean_exit(s,code){ s.send("QUIT\r\n"); s.close(); exit(code);}
var editClass = tinyMCE.getParam("noneditable_editable_class", "mceEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceNonEditable");
var editClass = tinyMCE.getParam("noneditable_editable_class", "mceItemEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceItemNonEditable");
cleanup : function(type, content, inst) { switch (type) { case "insert_to_editor_dom": var nodes = tinyMCE.getNodeTree(content, new Array(), 1); var editClass = tinyMCE.getParam("noneditable_editable_class", "mceEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceNonEditabl...
var imgs = content.getElementsByTagName("img"); for (var i=0; i<imgs.length; i++) {
var imgs = content.getElementsByTagName("img"), src, i; for (i=0; i<imgs.length; i++) {
cleanup : function(type, content) { switch (type) { case "insert_to_editor_dom": var imgs = content.getElementsByTagName("img"); for (var i=0; i<imgs.length; i++) { var onmouseover = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i], 'onmouseover')); var onmouseout = tinyMCE.cleanupEventStr(tinyMCE.ge...
for (var i = 0; i < element.childNodes.length; i++) { var node = element.childNodes[i];
var node = element.firstChild; while (node) { var nextNode = node.nextSibling;
cleanWhitespace: function(element) { element = $(element); for (var i = 0; i < element.childNodes.length; i++) { var node = element.childNodes[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) Element.remove(node); } return element; },
Element.remove(node);
element.removeChild(node); node = nextNode;
cleanWhitespace: function(element) { element = $(element); for (var i = 0; i < element.childNodes.length; i++) { var node = element.childNodes[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) Element.remove(node); } return element; },
var element = $(element);
element = $(element);
cleanWhitespace: function(element) { var element = $(element); for (var i = 0; i < element.childNodes.length; i++) { var node = element.childNodes[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) Element.remove(node); } }
}
},
cleanWhitespace: function(element) { var element = $(element); for (var i = 0; i < element.childNodes.length; i++) { var node = element.childNodes[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) Element.remove(node); } }
for (i = 0; i < arguments.length; i++)
for (var i = 0; i < arguments.length; i++)
clear: function() { for (i = 0; i < arguments.length; i++) $(arguments[i]).value = ''; },
console.ctrlkey_passthru=orig_passthru;
function clear_screen(){ /* * Called whenever a command needs to exit the menu for user interaction. * * If you'd like a header before non-menu stuff, this is the place to put * it. */ console.attributes=7; console.clear();}
bgh=mtop-ypos;
bgh=height;
function cleararea(xpos,ypos,width,height,eol_allowed){ /* * This function "clears" an area of the screen to the * background. * eol_allowed indicates that you can clear to eol without * breaking anything. */ var x; var y; if(use_bg) { var bgx; var bgy; var bgw; var bbh; var bgxo; var bgyo; var between; va...
if(height-(ypos-2)>BackGround.height) {
if(height+(ypos-2)>BackGround.height) {
function cleararea(xpos,ypos,width,height,eol_allowed){ /* * This function "clears" an area of the screen to the * background. * eol_allowed indicates that you can clear to eol without * breaking anything. */ var x; var y; if(use_bg) { if(ypos==1) { console.gotoxy(1,1); console.attributes=0x17; console.clea...
OpenLayers.Util.clearArray(row[iCol]);
row[iCol].destroy();
clearGrid:function() { if (this.grid) { for(var iRow=0; iRow < this.grid.length; iRow++) { var row = this.grid[iRow]; for(var iCol=0; iCol < row.length; iCol++) { OpenLayers.Util.clearArray(row[iCol]); } } } },
this.grid = [];
clearGrid:function() { if (this.grid) { for(var iRow=0; iRow < this.grid.length; iRow++) { var row = this.grid[iRow]; for(var iCol=0; iCol < row.length; iCol++) { OpenLayers.Util.clearArray(row[iCol]); } } } },
while(grid.length > 0) { var row = grid[0]; while(row.length > 0) { var tile = row[0]; tile.destroy(); row.remove(tile);
if (this.grid) { while(this.grid.length > 0) { var row = this.grid[0]; while(row.length > 0) { var tile = row[0]; tile.destroy(); row.remove(tile); } this.grid.remove(row);
clearGrid:function() { while(grid.length > 0) { var row = grid[0]; while(row.length > 0) { var tile = row[0]; tile.destroy(); row.remove(tile); } grid.remove(row); } }
grid.remove(row);
clearGrid:function() { while(grid.length > 0) { var row = grid[0]; while(row.length > 0) { var tile = row[0]; tile.destroy(); row.remove(tile); } grid.remove(row); } }
function clearHideTimers()
function clearHideTimers(from)
function clearHideTimers(){ for(var i = popups.length - 1; i >= 0; i--) if(popups[i].hide_timer) { clearTimeout(popups[i].hide_timer); popups[i].hide_timer = null; }}
for(var i = popups.length - 1; i >= 0; i--)
for(var i = from; i >= 0; i--)
function clearHideTimers(){ for(var i = popups.length - 1; i >= 0; i--) if(popups[i].hide_timer) { clearTimeout(popups[i].hide_timer); popups[i].hide_timer = null; }}
debug("clearQueryHistory: null historyNode");
debug.print("clearQueryHistory: null historyNode");
function clearQueryHistory() { var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("clearQueryHistory: null historyNode"); return; } removeChildNodes(historyNode);}
removeChildNodes(historyNode);
historyNode.removeChildNodes();
function clearQueryHistory() { var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("clearQueryHistory: null historyNode"); return; } removeChildNodes(historyNode);}
historyNode.removeChildNodes();
removeChildNodes(historyNode);
function clearQueryHistory() { var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("clearQueryHistory: null historyNode"); return; } historyNode.removeChildNodes();}
clearHideTimers();
clearHideTimers(popups.length - 1);
function clearToPopup(popup){ // Remove all hide timers clearHideTimers(); while(popups.length > 0 && popup != popups[popups.length - 1].name) { hide(popups[popups.length - 1].name); popups.length--; }}
var tagName = event.target.tagName.toLowerCase(); var type = event.target.type; if (event.target.hasAttribute("onclick") || event.target.hasAttribute("href") || (tagName == "input" && (type == "submit" || type == "button" || type == "image" || type == "radio" || type == "checkbox"))) { self.listener.addCommand("click",...
var clickable = findClickableElement(event.target); if (clickable) { self.listener.addCommand("click", getLocator(window, clickable), '', window);
click: function(event) { var tagName = event.target.tagName.toLowerCase(); var type = event.target.type; if (event.target.hasAttribute("onclick") || event.target.hasAttribute("href") || (tagName == "input" && (type == "submit" || type == "button" || type == "image" || type == "radio" || type...
}
},
click: function(event) { var tagName = event.target.tagName.toLowerCase(); var type = event.target.type; if (event.target.hasAttribute("onclick") || event.target.hasAttribute("href") || (tagName == "input" && (type == "submit" || type == "button" || type == "image" || type == "radio" || type...
HTMLAnchorElement.prototype.click = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); }
windowObject.HTMLAnchorElement.prototype.click = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); }
HTMLAnchorElement.prototype.click = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); }