rem: editor._popupDialog("plugin: if (!param) { return false; } var hr = rule; if (!hr) { var hrule = "<hr"; for (var field in param) { var value = param[field]; if(value == "") continue; switch (field) { case "f_width" : if(param["f_widthUnit"]=="%")hrule += " width='" + value+"%'"; else hrule += " width='" + value +"'"; break; case "f_size" : hrule += " size='" + value +"'"; break; case "f_align" : hrule += " align='" + value +"'"; break; case "f_color" : hrule += " color='" + value +"'"; break; case "f_noshade" : hrule += (value)? " noshade":""; break; } } hrule += ">"; editor.insertHTML(hrule); } else { for (var field in param) { var value = param[field]; switch (field) { case "f_size"    : hr.size  = value; break; case "f_width"   : hr.width   = (param["f_widthUnit"]=="%")?value+"%":value; break; case "f_align"   : hr.align   = value; break; case "f_color"   : hr.color   = value; break; case "f_noshade" : hr.noShade = value; break; } } } }, outparam); 
add: editor._popupDialog("plugin: if(!_d){ return false; } var hr=_8; if(!hr){ var _f=editor._doc.createElement("hr"); for(var _10 in _d){ var _11=_d[_10]; if(_11==""){ continue; } switch(_10){ case "f_width": if(_d["f_widthUnit"]=="%"){ _f.style.width=_11+"%"; }else{ _f.style.width=_11+"px"; } break; case "f_size": _f.style.height=_11+"px"; break; case "f_align": _f.style.textAlign=_11; switch(_11){ case "left": _f.style.marginLeft="0"; break; case "right": _f.style.marginRight="0"; break; case "center": _f.style.marginLeft="auto"; _f.style.marginRight="auto"; break; } break; case "f_color": _f.style.backgroundColor=_11; break; case "f_noshade": _f.style.border="0"; break; } } if(Xinha.is_gecko){ editor.execCommand("inserthtml",false,Xinha.getOuterHTML(_f)); }else{ editor.insertNodeAtSelection(_f); } }else{ for(var _10 in _d){ var _11=_d[_10]; switch(_10){ case "f_width": if(_d["f_widthUnit"]=="%"){ hr.style.width=_11+"%"; }else{ hr.style.width=_11+"px"; } break; case "f_size": hr.style.height=_11+"px"; break; case "f_align": hr.style.textAlign=_11; switch(_11){ case "left": hr.style.marginLeft="0"; hr.style.marginRight=null; break; case "right": hr.style.marginRight="0"; hr.style.marginLeft=null; break; case "center": hr.style.marginLeft="auto"; hr.style.marginRight="auto"; break; } break; case "f_color": hr.style.backgroundColor=_11; break; case "f_noshade": break; } hr.style.border=(_d["f_noshade"])?"0":null; } } },_b); 
context: 	editor._popupDialog("plugin://HorizontalRule/edit_horizontal_rule.html", function(param) {		if (!param) {	// user pressed Cancel			return false;		}		var hr = rule;		if (!hr) {		  var hrule = "<hr";			for (var field in param) {				var value = param[field];				if(value == "") continue;				switch (field) { 				case "f_width" :				if(param["f_widthUnit"]=="%")hrule += " width='" + value+"%'";					else hrule += " width='" + value +"'"; break;				case "f_size" :				hrule += " size='" + value +"'"; break;				case "f_align" :				hrule += " align='" + value +"'"; break;				case "f_color" :				hrule += " color='" + value +"'"; break;				case "f_noshade" :				hrule += (value)? " noshade":""; break;				}			}			hrule += ">";			editor.insertHTML(hrule);		} else {			for (var field in param) {			  var value = param[field];			  switch (field) {				  case "f_size"    : hr.size  = value; break;				  case "f_width"   : hr.width   = (param["f_widthUnit"]=="%")?value+"%":value; break;				  case "f_align"   : hr.align   = value; break;				  case "f_color"   : hr.color   = value; break;				  case "f_noshade" : hr.noShade = value; break;			  }			}		}	}, outparam);
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/horizontal-rule.js/buggy/packages/acs-templating/www/resources/xinha-nightly/plugins/HorizontalRule/horizontal-rule.js