Bug 216564 Editor does not remove blank image title r=brade sr=rbs
git-svn-id: svn://10.0.0.236/trunk@146865 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
deb559b045
commit
adebe0653d
@ -524,7 +524,11 @@ function ValidateImage()
|
||||
var src = TrimString(gDialog.srcInput.value);
|
||||
globalElement.setAttribute("src", src);
|
||||
|
||||
globalElement.setAttribute("title", TrimString(gDialog.titleInput.value));
|
||||
var title = TrimString(gDialog.titleInput.value);
|
||||
if (title)
|
||||
globalElement.setAttribute("title", title);
|
||||
else
|
||||
globalElement.removeAttribute("title");
|
||||
|
||||
// Force user to enter Alt text only if "Alternate text" radio is checked
|
||||
// Don't allow just spaces in alt text
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user