rem:  return false; 
context: function ajaxFetchComments(cids, get_max_cid) {	if (cids && !cids.length)		return;	var params = [];	params['op']              = 'comments_fetch';	if (cids) {		params['cids']    = cids;	} else {		cids              = [];		if (get_max_cid)			params['max_cid'] = max_cid;		else			params['cids']    = noshow_comments;	}	params['cid']             = root_comment;	params['discussion_id']   = discussion_id;	params['reskey']          = reskey_static;	var abbrev = {};	for (var i = 0; i < cids.length; i++) {		if (abbrev_comments[cids[i]] >= 0)			abbrev[cids[i]] = abbrev_comments[cids[i]];	}	params['abbreviated'] = $H(abbrev);	params['abbreviated'] = toHash(params['abbreviated']);	params['pieces'] = $H(cids ? fetch_comments_pieces : pieces_comments);	params['pieces'] = toHash(params['pieces']);	var handlers = {		onComplete: function (transport) {			var response = eval_response(transport);			var update = response.update_data;			if (update && update.new_cids_order) {				var root;				var pids = {};				for (var i = 0; i < update.new_cids_order.length; i++) {					var this_cid = update.new_cids_order[i];					if (i == (update.new_cids_order.length-1) && this_cid) {						max_cid = this_cid;					}					cids.push(this_cid);					addComment(this_cid, update.new_cids_data[i]);					if (!comments[this_cid]['pid']) {						root = 1;					} else {						pids[comments[this_cid]['pid']] = 1;					}				}				// for some reason the modification done in addComment				// invalidates the linkage fetchEl() uses to get				// an element, so we need to refetch them				if (is_firefox) {					// this is the worst ... not sure what else to do					if (root) {						var commlist = fetchEl('commentlisting');						loadAllElements('span', commlist);						loadAllElements('div', commlist);						loadAllElements('li', commlist);						loadAllElements('a', commlist);					} else {						for (var pid in pids) {							var tree = fetchEl('tree_' + pid);							loadAllElements('span', commlist);							loadAllElements('div', commlist);							loadAllElements('li', commlist);							loadAllElements('a', commlist);						}					}				}			}			json_update(response);			for (var i = 0; i < cids.length; i++) {				// this is needed for Firefox				// better way to do automatically?				if (is_firefox) {					loadNamedElement('comment_link_' + cids[i]);					loadNamedElement('comment_shrunk_' + cids[i]);					loadNamedElement('comment_sig_' + cids[i]);					loadNamedElement('comment_otherdetails_' + cids[i]);					loadNamedElement('comment_sub_' + cids[i]);				}				setShortSubject(cids[i]);			}			if (update && update.new_cids_order) {				for (var i = 0; i < update.new_cids_order.length; i++) {					var this_cid = update.new_cids_order[i];					updateDisplayMode(this_cid, 'full', 1);					updateComment(this_cid, 'full');				}				if (!commentIsInWindow(update.new_cids_order[0])) {					scrollWindowTo(update.new_cids_order[0]);				}			}			if (update && update.new_thresh_totals) {				for (var thresh in update.new_thresh_totals) {					for (var hthresh in update.new_thresh_totals[thresh]) {						for (var mode in update.new_thresh_totals[thresh][hthresh]) {							thresh_totals[thresh][hthresh][mode] += update.new_thresh_totals[thresh][hthresh][mode];						}					}				}				$('titlecountnum').innerHTML = thresh_totals[6][6][1]; // total				updateTotals();			}			updateHiddens(cids);			boxStatus(0);		}	};	boxStatus(1);	ajax_update(params, '', handlers);	if (cids) {		for (var cid in fetch_comments_pieces) {			pieces_comments[cid] = 0;		}		var remove = [];		for (var i = 0; i < cids.length; i++) {			// no Array.indexOf in Safari etc.			for (var j = 0; j < noshow_comments.length; j++) {				if (cids[i] == noshow_comments[j]) {					remove.push(j);				}			}		}		for (var i = 0; i < remove.length; i++) {			noshow_comments.splice(remove[i], 1, 0);		}		// remove zeroes added above		for (var i = (noshow_comments.length-1); i >= 0; i--) {			if (noshow_comments[i] == 0)				noshow_comments.splice(i, 1);		}	} else {		noshow_comments = [];		pieces_comments = [];	}	return false;}
meta: 3253	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3253/3500f87e1cfc982e1bcb191e7830e8096fcead32/comments.js/buggy/themes/slashcode/htdocs/images/comments.js