includes/clientside/tinymce/plugins/media/js/media.js
changeset 1193 e3b94bd055dc
parent 778 57ce13805b6f
equal deleted inserted replaced
1192:5882f0eebb34 1193:e3b94bd055dc
   216 			case "rmp":
   216 			case "rmp":
   217 				fe.className = "mceItemRealMedia";
   217 				fe.className = "mceItemRealMedia";
   218 				break;
   218 				break;
   219 		}
   219 		}
   220 
   220 
   221 		if (fe.width != f.width.value || fe.height != f.height.height)
   221 		if (fe.width != f.width.value || fe.height != f.height.value)
   222 			ed.execCommand('mceRepaint');
   222 			ed.execCommand('mceRepaint');
   223 
   223 
   224 		fe.title = serializeParameters();
   224 		fe.title = serializeParameters();
   225 		fe.width = f.width.value;
   225 		fe.width = f.width.value;
   226 		fe.height = f.height.value;
   226 		fe.height = f.height.value;
   467 
   467 
   468 function setBool(pl, p, n) {
   468 function setBool(pl, p, n) {
   469 	if (typeof(pl[n]) == "undefined")
   469 	if (typeof(pl[n]) == "undefined")
   470 		return;
   470 		return;
   471 
   471 
   472 	document.forms[0].elements[p + "_" + n].checked = pl[n];
   472 	document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';
   473 }
   473 }
   474 
   474 
   475 function setStr(pl, p, n) {
   475 function setStr(pl, p, n) {
   476 	var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n];
   476 	var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n];
   477 
   477 
   488 	var v = document.forms[0].elements[p + "_" + n].checked;
   488 	var v = document.forms[0].elements[p + "_" + n].checked;
   489 
   489 
   490 	tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
   490 	tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
   491 	fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
   491 	fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
   492 
   492 
   493 	return (v == d) ? '' : n + (v ? ':' + tv + ',' : ':' + fv + ',');
   493 	return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");
   494 }
   494 }
   495 
   495 
   496 function getStr(p, n, d) {
   496 function getStr(p, n, d) {
   497 	var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
   497 	var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
   498 	var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
   498 	var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;