rem: var dialog = new PopupWin(this.editor, HTMLArea._lc("Table Properties", "TableOperations"), function(dialog, params) { TableOperations.processStyle(params, table); for (var i in params) { if(typeof params[i] == 'function') continue; var val = params[i]; switch (i) { case "f_caption": if (/\S/.test(val)) {  var caption = table.getElementsByTagName("caption")[0]; if (!caption) { caption = dialog.editor._doc.createElement("caption"); table.insertBefore(caption, table.firstChild); } caption.innerHTML = val; } else {  var caption = table.getElementsByTagName("caption")[0]; if (caption) { caption.parentNode.removeChild(caption); } } break; case "f_summary": table.summary = val; break; case "f_width": table.style.width = ("" + val) + params.f_unit; break; case "f_align": table.align = val; break; case "f_spacing": table.cellSpacing = val; break; case "f_padding": table.cellPadding = val; break; case "f_borders": table.border = val; break; case "f_frames": table.frame = val; break; case "f_rules": table.rules = val; break; } }   dialog.editor.forceRedraw(); dialog.editor.focusEditor(); dialog.editor.updateToolbar(); var save_collapse = table.style.borderCollapse; table.style.borderCollapse = "collapse"; table.style.borderCollapse = "separate"; table.style.borderCollapse = save_collapse; }, 
add: var _13=new PopupWin(this.editor,HTMLArea._lc("Table Properties","TableOperations"),function(_14,_15){ TableOperations.processStyle(_15,_12); for(var i in _15){ if(typeof _15[i]=="function"){ continue; } var val=_15[i]; switch(i){ case "f_caption": if(/\S/.test(val)){ var _18=_12.getElementsByTagName("caption")[0]; if(!_18){ _18=_14.editor._doc.createElement("caption"); _12.insertBefore(_18,_12.firstChild); } _18.innerHTML=val; }else{ var _18=_12.getElementsByTagName("caption")[0]; if(_18){ _18.parentNode.removeChild(_18); } } break; case "f_summary": _12.summary=val; break; case "f_width": _12.style.width=(""+val)+_15.f_unit; break; case "f_align": _12.align=val; break; case "f_spacing": _12.cellSpacing=val; break; case "f_padding": _12.cellPadding=val; break; case "f_borders": _12.border=val; break; case "f_frames": _12.frame=val; break; case "f_rules": _12.rules=val; break; } } _14.editor.forceRedraw(); _14.editor.focusEditor(); _14.editor.updateToolbar(); var _19=_12.style.borderCollapse; _12.style.borderCollapse="collapse"; _12.style.borderCollapse="separate"; _12.style.borderCollapse=_19; },function(_1a){ 
context: 	var dialog = new PopupWin(this.editor, HTMLArea._lc("Table Properties", "TableOperations"), function(dialog, params) {		TableOperations.processStyle(params, table);		for (var i in params) {      if(typeof params[i] == 'function') continue;			var val = params[i];			switch (i) {			    case "f_caption":				if (/\S/.test(val)) {					// contains non white-space characters					var caption = table.getElementsByTagName("caption")[0];					if (!caption) {						caption = dialog.editor._doc.createElement("caption");						table.insertBefore(caption, table.firstChild);					}					caption.innerHTML = val;				} else {					// search for caption and delete it if found					var caption = table.getElementsByTagName("caption")[0];					if (caption) {						caption.parentNode.removeChild(caption);					}				}				break;			    case "f_summary":				table.summary = val;				break;			    case "f_width":				table.style.width = ("" + val) + params.f_unit;				break;			    case "f_align":				table.align = val;				break;			    case "f_spacing":				table.cellSpacing = val;				break;			    case "f_padding":				table.cellPadding = val;				break;			    case "f_borders":				table.border = val;				break;			    case "f_frames":				table.frame = val;				break;			    case "f_rules":				table.rules = val;				break;			}		}		// various workarounds to refresh the table display (Gecko,		// what's going on?! do not disappoint me!)		dialog.editor.forceRedraw();		dialog.editor.focusEditor();		dialog.editor.updateToolbar();		var save_collapse = table.style.borderCollapse;		table.style.borderCollapse = "collapse";		table.style.borderCollapse = "separate";		table.style.borderCollapse = save_collapse;	},
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/table-operations.js/clean/packages/acs-templating/www/resources/xinha-nightly/plugins/TableOperations/table-operations.js